From 35f14736db2e25a6d47e0315d70a109aa1ae50cc Mon Sep 17 00:00:00 2001 From: Vrifox Date: Sun, 7 Mar 2021 16:06:50 +0100 Subject: [PATCH] simplified the navigation even more; hopefully uncluttered the links and using standard heading sizes --- assets/style.scss | 15 +++++---------- layouts/partials/nav.html | 8 -------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index c4089da..0941d38 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -40,16 +40,12 @@ body { a { color: var(--text); text-decoration: underline; - text-underline-offset: 6px; text-decoration-color: var(--vrifox-red); - &:hover { text-decoration: underline; } + text-underline-offset: 3px; + transition: text-decoration-color .2s; + &:hover { text-decoration-color: var(--text); } } -h1 { font-size: 1.5em; } -h2 { font-size: 1.3em; } -h3 { font-size: 1.1em; } -h4 { font-size: 0.9em; } - hr { border-color: var(--text); color: var(--text); @@ -72,10 +68,9 @@ header, footer { padding: 17.6px 15px; text-decoration-color: var(--background); text-decoration-thickness: 2px !important; - transition: text-decoration-color .2s; + text-underline-offset: 6px; margin: 0 15px; &:hover { text-decoration-color: var(--vrifox-red); } - &.active { text-decoration-color: var(--text); } } } header { @@ -104,7 +99,7 @@ footer { // - main - // -------- main { - margin: 60px auto; + margin: 20px auto; max-width: 720px; padding: 30px; width: 100%; diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 556a346..262799d 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,19 +1,11 @@ {{- $currentPage := . }}
{{- range .Site.Menus.name }} - {{- if $currentPage.IsMenuCurrent "name" . }} -

{{ .Name }}

- {{- else }}

{{ .Name }}

- {{- end }} {{- end }}