summaryrefslogtreecommitdiffhomepage
path: root/src/style.css
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-23 00:08:10 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-23 00:08:10 +0100
commitae12883d1e99627583a6b782b194b72ed9b98500 (patch)
tree02a5a6f19cb5f9ef0c2b0e5ce28abc7ed36dfe41 /src/style.css
parent1fea2c7f5e576766b08502572c799270b4bea3ef (diff)
Add www/
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css
new file mode 100644
index 0000000..cdde775
--- /dev/null
+++ b/src/style.css
@@ -0,0 +1,79 @@
+*, *::before, *::after {
+ box-sizing: border-box;
+}
+
+:root {
+ color-scheme: light dark;
+}
+
+body {
+ text-align: justify;
+ width: min(800px, 90%);
+ margin-inline: auto;
+}
+
+blockquote > p:first-child::before { content: '‘'; }
+blockquote > p:last-child::after { content: '’'; }
+blockquote.de > p:first-child::before { content: '„'; }
+blockquote.de > p:last-child::after { content: '“'; }
+blockquote + figcaption::before { content: '— '; }
+
+blockquote,
+blockquote + figcaption {
+ font-style: italic;
+}
+
+@media (prefers-color-scheme: light) {
+ .quote {
+ border-left: 4px solid black;
+ }
+}
+
+@media (prefers-color-scheme: dark) {
+ .quote {
+ border-left: 4px solid white;
+ }
+}
+
+.quote {
+ padding: .4rem .8rem;
+ margin-inline: 1rem 0;
+ margin-block: 2rem;
+}
+
+.quote blockquote {
+ margin-inline-start: 1rem;
+}
+.quote blockquote,
+.quote blockquote p {
+ margin-block: .5rem;
+}
+
+.quote figcaption {
+ margin-inline-start: 2rem;
+ margin-block: .5rem;
+}
+
+header > div menu {
+ display: flex;
+ gap: 2ch;
+}
+
+header > div li {
+ list-style: none;
+}
+
+header div.head {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+header div.head menu {
+ display: flex;
+ gap: 2ch;
+}
+
+header div.head li {
+ list-style: none;
+}