diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-03-14 15:51:01 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-03-14 15:51:01 -0300 |
| commit | a76cadc34f4e3a2d48816d3d01968fc3283e1af0 (patch) | |
| tree | 2c2eaa2b224ce9ece93f1de361acf58e15a951ef /src/static | |
| parent | 28471913b2da726ab07b7549310d976c1b31bb54 (diff) | |
content, css: track banners preview
Diffstat (limited to 'src/static')
| -rw-r--r-- | src/static/css/site.css | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css index 6b969b8d..299b093b 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -96,11 +96,15 @@ body::before, .wallpaper-part { transition: --banner-shine 0.8s; } -#banner:hover { +#banner:not(.dim, .collapsed):hover { --banner-shine: 35%; transition-delay: 0.3s; } +#banner.dim, #banner.collapsed { + --banner-shine: 0%; +} + #banner::after, #banner::before { content: ""; position: absolute; @@ -347,7 +351,6 @@ body::before, .wallpaper-part { #banner { background: black; - background-color: var(--dim-color); border-bottom: 1px solid var(--primary-color); } @@ -366,8 +369,29 @@ body::before, .wallpaper-part { pointer-events: none; } +#banner { + background-color: var(--abyss-color); +} + #banner.dim img { - opacity: 0.8; + opacity: 0.32; +} + +#banner.short, #banner.short img { + /* 1100px -> 72.5px, 900px -> 60px + * 12.5px height per 200px width + * Viewport maxes at 1124px, so: + * Start from 72.5px + * Get width below maximum: + * (1124px - min(1124px, 100vw)) + * Multiply by rate of change: + * (12.5 / 200) + */ + max-height: calc(72.5px - (1124px - min(1124px, 100vw)) * (12.5 / 200)); +} + +#banner.short img { + object-position: 0 var(--short-banner-alignment, 50%); } #header, |