From 1b8b2cbce78e634b36145b530c8505f2d0c5a007 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 16 Mar 2023 18:02:42 +0800 Subject: [PATCH] Update list layout and style Not only does this make some proper RTL styling but also make it more responsive. The nice separators are gone though. :( --- assets/scss/layout.scss | 30 ++++++++++------------ assets/scss/main.scss | 7 ----- layouts/partials/components/post-meta.html | 12 ++++----- layouts/partials/footer.html | 6 ++--- layouts/partials/header.html | 10 +++++--- 5 files changed, 28 insertions(+), 37 deletions(-) diff --git a/assets/scss/layout.scss b/assets/scss/layout.scss index 9c01b75..72c13bb 100644 --- a/assets/scss/layout.scss +++ b/assets/scss/layout.scss @@ -26,28 +26,24 @@ footer[aria-label="Site footer"] { .list { display: inline-flex; + align-items: baseline; flex-flow: row wrap; + gap: 0.75em; + justify-content: space-around; list-style: none; margin: 0; padding: 0; - - & > *:not(:last-child) { - border-right: 1px solid var(--base02); - margin-right: 0.5em; - padding-right: 0.5em; - } } .site__title { - --size: 2rem; - display: inline-block; - font-size: var(--size); - margin-bottom: unset; - margin-right: 0.5rem; + font-size: 2rem; } -.site__links { - @include header-link-hover-style; +.site__nav-header { + display: flex; + align-items: baseline; + flex-flow: row wrap; + gap: 0.5em; } .site__languages { @@ -55,8 +51,9 @@ footer[aria-label="Site footer"] { } .site__socials { - @include header-link-hover-style; + display: flex; font-style: unset; + gap: 1em; } .site__social-icon { @@ -171,9 +168,10 @@ footer[aria-label="Site footer"] { font-size: 0.9em; margin-top: 0.5em; - & > * { + &-icon-label { + gap: 0.25em; display: inline-flex; - align-items: center; + align-items: normal; } .post--single & { diff --git a/assets/scss/main.scss b/assets/scss/main.scss index b140cf4..3bca88b 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -28,13 +28,6 @@ padding: 0; } -@mixin header-link-hover-style { - > *:hover { - color: var(--accent-color); - text-decoration: none; - } -} - @import "base"; @import "layout"; @import "extend"; diff --git a/layouts/partials/components/post-meta.html b/layouts/partials/components/post-meta.html index 502e185..7791a2a 100644 --- a/layouts/partials/components/post-meta.html +++ b/layouts/partials/components/post-meta.html @@ -5,18 +5,18 @@ {{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }}