From f9cc3f9926b81a67835f96b8433891ace2bf0f87 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 30 Jun 2023 07:28:00 +0200 Subject: css font tweaks --- assets/base.css | 3 ++- assets/header.css | 7 +++---- assets/home.css | 4 ---- layouts/404.html | 3 +-- layouts/_default/baseof.html | 5 ++--- 5 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 assets/home.css diff --git a/assets/base.css b/assets/base.css index ae3d0c0..94cfb9c 100644 --- a/assets/base.css +++ b/assets/base.css @@ -77,6 +77,7 @@ html { background-color: var(--bg-0); color: var(--fg-0); + font-size: 150%; } body { background-color: var(--bg-1); @@ -86,7 +87,7 @@ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; + system-ui, sans-serif; font-feature-settings: "kern" 1; font-kerning: normal; diff --git a/assets/header.css b/assets/header.css index c725b06..f52a863 100644 --- a/assets/header.css +++ b/assets/header.css @@ -14,8 +14,7 @@ header nav ol { } header nav ol li a { display: block; - font-size: 1.25rem; - padding: 4px 16px 14px 16px; + padding: 4px 12px 14px 12px; text-align: center; text-decoration: none; } @@ -34,7 +33,7 @@ header nav ol li a:hover { background-color: var(--bg-1); } #title { - font-weight: 700; + font-weight: bold; text-transform: uppercase; } #themes { @@ -42,7 +41,7 @@ header nav ol li a:hover { border: none; color: var(--fg-1); display: none; - font-size: 1.25rem; + font-size: 100%; margin: 0; padding: 0; } diff --git a/assets/home.css b/assets/home.css deleted file mode 100644 index 7e91c20..0000000 --- a/assets/home.css +++ /dev/null @@ -1,4 +0,0 @@ -.home-page p { - font-size: 1.25rem; - font-weight: 300; -} diff --git a/layouts/404.html b/layouts/404.html index c0242ed..a0c2c94 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -13,10 +13,9 @@ {{- $code := resources.Get "code.css" -}} {{- $footer := resources.Get "footer.css" -}} {{- $header := resources.Get "header.css" -}} - {{- $home := resources.Get "home.css" -}} {{- $pagination := resources.Get "pagination.css" -}} {{- $responsive := resources.Get "responsive.css" -}} - {{- $allCss := slice $base $code $footer $header $home $pagination $responsive | resources.Concat "static/all.css" | fingerprint | minify -}} + {{- $allCss := slice $base $code $footer $header $pagination $responsive | resources.Concat "static/all.css" | fingerprint | minify -}} {{ range .AlternativeOutputFormats -}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c05ed38..c1d6ae4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ - + {{ template "_internal/opengraph.html" . }} @@ -13,10 +13,9 @@ {{- $code := resources.Get "code.css" -}} {{- $footer := resources.Get "footer.css" -}} {{- $header := resources.Get "header.css" -}} - {{- $home := resources.Get "home.css" -}} {{- $pagination := resources.Get "pagination.css" -}} {{- $responsive := resources.Get "responsive.css" -}} - {{- $allCss := slice $base $code $footer $header $home $pagination $responsive | resources.Concat "static/all.css" | fingerprint | minify -}} + {{- $allCss := slice $base $code $footer $header $pagination $responsive | resources.Concat "static/all.css" | fingerprint | minify -}} {{ range .AlternativeOutputFormats -}} -- cgit v1.2.3