summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorNinoReichardt <nino.reichardt@oakk.nl>2026-11-17 18:55:41 +0100
committerNinoReichardt <nino.reichardt@oakk.nl>2026-11-17 18:55:41 +0100
commit515ea0d3be867842a6755afd112925e629c1a96c (patch)
treec665d420d31d49dd28fb1867fc6a54a13c29b01a /assets
parente40e00b28f62874bd101034fc764fbffeac1e3be (diff)
downloadnire-web-515ea0d3be867842a6755afd112925e629c1a96c.tar.gz
nire-web-515ea0d3be867842a6755afd112925e629c1a96c.zip
refactor: cleaner css and html
Diffstat (limited to 'assets')
-rw-r--r--assets/main.css87
1 files changed, 50 insertions, 37 deletions
diff --git a/assets/main.css b/assets/main.css
index cae7aed..b9625c1 100644
--- a/assets/main.css
+++ b/assets/main.css
@@ -7,41 +7,47 @@
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
-html {
- background: #eeeeee
-}
+:root {
+ --font-body: "Inter", system-ui, sans-serif;
-#renderer {
- position: fixed;
- padding: 0;
- margin: 0;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: -5;
+ --color-background: #eee;
+ --color-text: #333;
+ --color-muted: #666;
+ --color-heading: #000;
+
+
+ --text-sm: 0.875rem;
+ --text-base: 1rem;
+ --text-section: 1.25rem;
+ --text-title: 2rem;
}
-* {
- font-family: "Inter", sans-serif;
- font-optical-sizing: auto;
- font-weight: 400;
- font-style: normal;
+*, *::before, *::after {
+ box-sizing: border-box;
+}
- --text-dim: #666;
- --text-normal: #333;
- --text-highlighted: #000;
+html {
+ background: var(--color-background)
+}
- --text-md: 16px;
- --text-sm: 13px;
+body {
+ margin: 0;
+ font-family: var(--font-body);
+ font-size: var(--text-base);
+ font-weight: 400;
+ line-height: 1.6;
+ color: var(--color-text);
}
-p, ul {
- font-weight: 500;
- color: var(--text-normal);
- font-size: var(--text-md);
+h1, h2 {
+ color: var(--color-heading);
+ font-weight: 600;
+ line-height: 1.2;
}
+h1 { font-size: var(--text-title); }
+h2 { font-size: var(--text-section); }
+
ul li {
padding-block: 0.25rem;
}
@@ -50,13 +56,11 @@ hr {
margin-block: 1.25rem;
opacity: 0.5;
border: 0;
- border-top: 1px solid var(--text-dim);
+ border-top: 1px solid var(--color-muted);
}
-b, a {
- font-weight: 700;
- color: var(--text-highlighted)
-}
+small { font-size: var(--text-sm); }
+b, strong { font-weight: 700; }
.padding-x-md {
padding-inline: 0.75rem
@@ -66,12 +70,21 @@ b, a {
padding-block: 0.75rem
}
-.content-width {
- max-width: 30rem;
- width: 100vw;
+.page {
+ width: 100%;
+ max-width: 32rem;
+ margin-inline: auto;
+ padding: 1.5rem 1rem;
}
-.center {
- display: flex;
- justify-content: center;
+
+#renderer {
+ position: fixed;
+ padding: 0;
+ margin: 0;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ z-index: -5;
}