From 77188f8dfbad6a36aae79426f9e649018730b027 Mon Sep 17 00:00:00 2001 From: -k Date: Fri, 5 Apr 2024 12:04:50 -0700 Subject: [PATCH] fix: update style rulesets --- sass/_base.scss | 46 +++++++++++++++++++++++++++++++++----------- sass/_search.scss | 2 +- sass/_site.scss | 18 ++++++++++------- sass/_utilities.scss | 8 +++----- templates/index.html | 4 ++-- 5 files changed, 52 insertions(+), 26 deletions(-) diff --git a/sass/_base.scss b/sass/_base.scss index 907d56a..09248e7 100644 --- a/sass/_base.scss +++ b/sass/_base.scss @@ -104,27 +104,27 @@ h6 { } h1 { - font-size: 2em; + font-size: 1.6em; } h2 { - font-size: 1.25em; + font-size: 1em; } h3 { - font-size: 1.1em; + font-size: 0.86em; } h4 { - font-size: 1em; + font-size: 0.8em; } h5 { - font-size: 0.9em; + font-size: 0.72em; } h6 { - font-size: 0.8em; + font-size: 0.65em; } figure { @@ -137,7 +137,7 @@ figure { figcaption { margin-bottom: 0.5em; color: lighten($black, 40); - font-size: 0.85em; + font-size: 12px; width: 100%; text-align: center; } @@ -223,6 +223,14 @@ cite { font-size: 0.85em; } +ul > li { + list-style: square; +} + +ol > li { + list-style: inside decimal; +} + dt { border: 1px solid darken($white, 7%); padding: 0.5em; @@ -280,6 +288,18 @@ td:last-child { } } +sup, sub { + font-size: 75%; +} + +sup { + top: -0.6em +} + +sub { + bottom: -0.2em +} + var { font-weight: bold; } @@ -334,10 +354,13 @@ figure > table { pre, kbd { overflow-x: auto; - padding: 1rem; - line-height: 1.5; + padding: 0.9rem; margin: 0; } + +pre > code { + font-size: 13px; +} p > code, a > code, @@ -345,8 +368,8 @@ li > code, figcaption > code, td > code, kbd { - padding: 0.1rem 0.2rem; - font-size: 0.9em; + padding: 0.1rem 0.15rem; + font-size: 12px; background-color: darken($white, 15%); font-family: $base-font; } @@ -361,6 +384,7 @@ footer { margin-bottom: 23px; text-align: center; font-size: 12px; + line-height: 17px; width: 100%; > a { color: $shamrock-green; diff --git a/sass/_search.scss b/sass/_search.scss index 13d12a6..c6e569a 100644 --- a/sass/_search.scss +++ b/sass/_search.scss @@ -11,7 +11,7 @@ -webkit-appearance:none; -webkit-border-radius: 0; border-radius: 0; - padding: 0.5rem; + padding: 0.4rem; width: 100%; } } diff --git a/sass/_site.scss b/sass/_site.scss index 578d4f6..b3bf8aa 100644 --- a/sass/_site.scss +++ b/sass/_site.scss @@ -97,7 +97,7 @@ nav.nav-bar li.nav-active { nav.nav-bar li a { display: flex; - padding: 0.5rem; + padding: 0.4rem; color: $black; } @@ -270,10 +270,9 @@ a.zola-anchor { } } ul { - list-style-type: none; text-decoration: none; filter: drop-shadow(0 1px 7px); - font-size: 1em; + font-size: 0.8em; display: flex; flex-wrap: wrap; gap: 10px; @@ -290,6 +289,7 @@ a.zola-anchor { position: relative; transition-property: color; transition-duration: 0.2s; + list-style: none; &:before { content: ""; position: absolute; @@ -426,6 +426,7 @@ a.zola-anchor { margin-bottom: 18px; } p { + font-size: 16px; color: darken($white, 40); } .date { @@ -617,6 +618,7 @@ a.zola-anchor { .date-highlight { text-align: center; + font-size: 16px; margin: 0 0 50px; color: $overlay-color; display: -webkit-box; @@ -667,6 +669,7 @@ a.zola-anchor { > li { margin-bottom: 14px; padding-left: 20px; + list-style-type: none; } } .tags { @@ -675,6 +678,7 @@ a.zola-anchor { padding-left: 0; > li { text-transform: lowercase; + list-style-type: none; } } .tags:is(.project-tags) > ul { @@ -708,7 +712,7 @@ a.zola-anchor { overflow: auto; } .block-right { - overflow-y: inherit; + overflow-y: unset; } } @@ -763,7 +767,7 @@ a.zola-anchor { } } table { - font-size: 0.90rem; + font-size: 14px; } } @@ -817,9 +821,9 @@ a.zola-anchor { margin-top: 1em; &_pager { display: inline-block; - padding: 0.75em; + padding: 0.32em 0.1em; min-width: 5.5em; - font-size: 0.8em; + font-size: 16px; font-weight: 400; background-color: darken($white, 5%); color: darken($white, 35%) !important; diff --git a/sass/_utilities.scss b/sass/_utilities.scss index 297220d..28b27a8 100644 --- a/sass/_utilities.scss +++ b/sass/_utilities.scss @@ -24,9 +24,9 @@ .btn { display: inline-block; - padding: 0.5rem 0.75rem; + padding: 0.4rem 0.7rem; margin-bottom: 0.5rem; - font-size: 0.7rem; + font-size: 0.5rem; font-weight: 400; background-color: darken($white, 7%); color: lighten($black, 20%); @@ -115,9 +115,7 @@ } @mixin notice($notice-color) { - margin: 2rem 0 !important; - padding: 1rem; - font-size: 12px !important; + padding: 0.75rem; text-indent: initial; background-color: mix(#ddd, $notice-color, 73%); border-radius: 0; diff --git a/templates/index.html b/templates/index.html index d868a80..08691eb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,10 +5,10 @@
{% if config.extra.home.logo.enabled == true %}{% endif %}

- {{ config.extra.home.title | safe }} + {{ config.extra.home.title | safe }}

- {{ config.extra.home.subtitle | safe }} + {{ config.extra.home.subtitle | safe }}


{% include "partials/social-links.html" %}