3 Commits

  1. 11
      CHANGELOG.md
  2. 2
      assets/css/_ok.css
  3. 14
      assets/css/app.css
  4. 6
      lib/mirage_web/templates/layout/root.html.leex
  5. 2
      mix.exs

11
CHANGELOG.md

@ -5,6 +5,17 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.94.2](https://git.inhji.de/inhji/mirage/compare/v0.94.1...v0.94.2) (2021-03-28)
### Bug Fixes:
* better dark theme
* improve navigation
## [v0.94.1](https://git.inhji.de/inhji/mirage/compare/v0.94.0...v0.94.1) (2021-03-28)

2
assets/css/_ok.css

@ -94,7 +94,7 @@
--ok-tc-1: #ababab;
--ok-tc-2: #929292;
--ok-bg-0: #000000;
--ok-bg-0: #101010;
--ok-bg-1: #212121;
--ok-bg-2: #3e3e3e;

14
assets/css/app.css

@ -27,6 +27,8 @@ Variables
--gray: #6c757d;
--gray-dark: #343a40;
--gray-light: #cccccc;
--black: #111;
--black-dark: #010101;
--primary: var(--blue);
--secondary: var(--gray);
@ -45,6 +47,10 @@ Variables
@media (--smol) {
--width-sidebar: 3rem;
}
@media (prefers-color-scheme: dark) {
--background-navigation: var(--black);
}
}
/* ==========================================================================
@ -85,7 +91,7 @@ main {
top: 0;
z-index: 1000;
background: var(--dark);
background: var(--background-navigation);
color: var(--light);
nav {
@ -96,10 +102,10 @@ main {
a {
color: var(--light);
font-weight: 400;
}
&:first-child {
font-weight: 600;
}
.light {
font-weight: 200;
}
@media (--smol) {

6
lib/mirage_web/templates/layout/root.html.leex

@ -17,13 +17,13 @@
<header id="main-header">
<nav role="navigation">
<%= live_patch(@_s.header_title.value, to: "/") %> / <%= live_patch("About", to: "/about") %> / <%= live_patch("Blog", to: "/blog") %> / <%= live_patch("Search", to: "/search") %>
<%= live_patch("Home", to: "/") %> <span class="light">/</span> <%= live_patch("About", to: "/about") %> <span class="light">/</span> <%= live_patch("Blog", to: "/blog") %> <span class="light">/</span> <%= live_patch("Search", to: "/search") %>
<%= if not Mirage.Accounts.has_user? do %>
/ <%= live_patch "Register", to: Routes.user_registration_path(@conn, :new) %>
<span class="light">/</span> <%= live_patch "Register", to: Routes.user_registration_path(@conn, :new) %>
<% end %>
<%= unless @current_user do %>
/ <%= live_patch "Log in", to: Routes.user_session_path(@conn, :new) %>
<span class="light">/</span> <%= live_patch "Log in", to: Routes.user_session_path(@conn, :new) %>
<% end %>
</nav>
</header>

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.94.1"
@version "0.94.2"
def project do
[

Loading…
Cancel
Save