aboutsummaryrefslogtreecommitdiffstats
path: root/src/wwwroot/index.css
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-15 06:20:30 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-15 06:20:30 +0100
commitaa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a (patch)
tree4abce617ce12dea1ebe9f030d93ebb5f4407cad8 /src/wwwroot/index.css
parentadd94527050dc311c4ad117e25dd5e4517b3b887 (diff)
downloadlettnytt-aa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a.tar.xz
lettnytt-aa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a.zip
refactor: Add some styling
Diffstat (limited to 'src/wwwroot/index.css')
-rw-r--r--src/wwwroot/index.css56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/wwwroot/index.css b/src/wwwroot/index.css
index e69de29..0296036 100644
--- a/src/wwwroot/index.css
+++ b/src/wwwroot/index.css
@@ -0,0 +1,56 @@
+body {
+ display: flex;
+ flex-direction: column;
+ min-height: 100vh;
+ padding: 5vh clamp(1rem, 5vw, 3rem) 1rem;
+ font-family: system-ui, sans-serif;
+ line-height: 1.5;
+ color: #222;
+ background: white;
+}
+
+body > * {
+ --layout-spacing: max(8vh, 3rem);
+ --max-width: 70ch;
+ width: min(100%, var(--max-width));
+ margin-left: auto;
+ margin-right: auto;
+}
+
+main {
+ margin-top: var(--layout-spacing);
+}
+
+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;
+}
+
+:is(h1, h2, h3) {
+ line-height: 1.2;
+}
+
+:is(h2, h3):not(:first-child) {
+ margin-top: 2em;
+}
+
+article * + * {
+ margin-top: 1em;
+}
+
+.quote-text {
+ padding: 5px 15px 0 0;
+ font-style: italic;
+ background: #e9e9e9;
+}
+
+.quote-source {
+ padding-left: 20px;
+} \ No newline at end of file