diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 17:50:01 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 17:50:01 +0100 |
| commit | 339874c0f349801e4f030f421b733a65b017590f (patch) | |
| tree | 0ca53086a4a6a1859fc148c047137011edee0327 | |
| parent | d949d7aa8b877c25dbd31f09ceb0ddd03e0d055d (diff) | |
| download | lettnytt-339874c0f349801e4f030f421b733a65b017590f.tar.xz lettnytt-339874c0f349801e4f030f421b733a65b017590f.zip | |
feat: Add more styling
| -rw-r--r-- | src/wwwroot/index.css | 89 |
1 files changed, 73 insertions, 16 deletions
diff --git a/src/wwwroot/index.css b/src/wwwroot/index.css index 2c5ac3f..b1cc611 100644 --- a/src/wwwroot/index.css +++ b/src/wwwroot/index.css @@ -71,7 +71,7 @@ select { body { min-height: 100vh; text-rendering: optimizeSpeed; - line-height: 1.5; + line-height: 150%; display: flex; flex-direction: column; padding: 5vh clamp(1rem, 5vw, 3rem) 1rem; @@ -95,13 +95,9 @@ main { footer { margin-top: auto; padding-top: var(--layout-spacing); -} - -footer p { - border-top: 1px solid #ccc; - padding-top: 0.25em; - font-size: 0.9rem; - color: #767676; + display: flex; + flex-direction: column; + flex-wrap: nowrap; } :is(h1, h2, h3) { @@ -117,27 +113,88 @@ article * + * { } .quote-text { - padding: 5px 15px 0 0; + padding: 0 25px; font-style: italic; - background: #e9e9e9; } .quote-source { - padding-left: 20px; + padding-left: 50px; +} + +.reset { + all: unset; } .news-link { - margin-bottom: 8px; + margin-bottom: 1vw; display: flex; - flex-direction: column + flex-direction: column; + border-bottom: 1px solid dimgray; } .news-link h2 { font-size: 18px; } +.news-link .bar { + font-size: 14px !important; + display: flex; + justify-content: space-between; +} + +.news-link .bar .from-the-right { + justify-content: end; + display: flex; +} + .news-link .source-link { - font-size: 14px; + width: fit-content; +} + +#top-bar nav { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; +} + +#top-bar nav .left { display: flex; - justify-content: end -}
\ No newline at end of file + gap: 0 15px; + flex-direction: row +} + +#top-bar a { + color: blue; +} + +#top-bar a.active { + font-weight: 600; + color: black; +} + +a, +.link { + color: blue; + text-decoration: none; + cursor: pointer; +} + +a:visited { + color: blueviolet; +} + +@media (prefers-color-scheme: dark) { + body { + color: #eee; + background: #151515; + } + + a, .link { + color: #4d4dff !important; + } + + a:visited { + color: #ad6beb !important; + } +} |
