diff options
author | mms <michal@sapka.me> | 2023-11-29 11:39:18 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-29 11:39:18 +0100 |
commit | c595e8349e47306668bf7abf84499f59ed23a2c0 (patch) | |
tree | ebd62d5a150aacfac7590812371187f90d361cd3 /static | |
parent | 946c12e6b1ee831120fbaf77c2d2ac0ca6433b79 (diff) |
feat: move topnav into header
Diffstat (limited to 'static')
-rw-r--r-- | static/style.css | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/static/style.css b/static/style.css index f50b4bc..545bbf9 100644 --- a/static/style.css +++ b/static/style.css @@ -21,18 +21,23 @@ --font-size: 1.2em; --mobile-font-size: 1hem; - --h1-size: 1.2em; --header-font-size: 0.9em; --site-font: monospace; --header-font: arial; - --star-trek-logo-bg-color: #3e7dc0; + --star-trek-highlight-color: #3e7dc0; + --star-trek-logo-bg-color: var(--star-trek-highlight-color); + --star-trek-1-color: var(--star-trek-highlight-color); - --site-info-logo-bg-color: #9ba89a; + --site-info-hightlight-color: #9ba89a; + --site-info-logo-bg-color: var(--site-info-hightlight-color); + --site-info-h1-color: var(--site-info-hightlight-color); - --bsd-logo-bg-color: #ab2b28; + --bsd-highlight-color: #ab2b28; + --bsd-logo-bg-color: var(--bsd-highlight-color); + --bsd-h1-color: var(--bsd-highlight-color); } @media (prefers-color-scheme: dark) { @@ -128,24 +133,41 @@ header > .name { header > .name > nav { position: absolute; - bottom: 0px; + bottom: -10px; padding: 10px; - } h1 { font-size: inherit; margin: 0; + text-decoration: none; } +/* - star trek */ body.star-trek > header > .logo { background-color: var(--star-trek-logo-bg-color); } +body.star-trek > header > .logo > img.stbadge { + position: absolute; + bottom: -12px; + right: -6px; + transform: scale(0.8); +} + +body.star-trek h1{ + color: var(--star-trek-1-color); +} + +/* site-info */ body.site-info > header > .logo { background-color: var(--site-info-logo-bg-color); } +body.site-info h1{ + color: var(--site-info-h1-color); +} +/* bsd */ body.bsd > header > .logo { background-color: var(--bsd-logo-bg-color); } @@ -157,12 +179,10 @@ body.bsd > header > .logo > img.beastie { transform: scale(1.1); } -body.star-trek > header > .logo > img.stbadge { - position: absolute; - bottom: -12px; - right: -6px; - transform: scale(0.8); +body.bsd h1 { + color: var(--bsd-h1-color); } + /* ---------- Main */ main { margin-top: 30px; |