summaryrefslogtreecommitdiff
path: root/style.scss
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-10 17:12:53 -0700
committerPreston Pan <ret2pop@nullring.xyz>2026-03-10 17:12:53 -0700
commitb88e8b4f8259267ebb0d068df9cd65fd36ca5477 (patch)
tree43d42eee59206789792f5cca655341b69969663f /style.scss
parent9ed3176a5f627f488ee3804cfcca248620ad299b (diff)
prepare for CSP header generation
Diffstat (limited to 'style.scss')
-rw-r--r--style.scss27
1 files changed, 15 insertions, 12 deletions
diff --git a/style.scss b/style.scss
index db04896..dc90ab0 100644
--- a/style.scss
+++ b/style.scss
@@ -102,6 +102,11 @@ body {
flex-direction: column;
align-items: center;
min-height: 100vh;
+
+ @media (max-width: 1250px) {
+ padding-left: 0;
+ font-size: 20px;
+ }
}
h1, h2, h3 { line-height: 1.2; font-family: var(--font-header), serif; }
@@ -123,7 +128,14 @@ h1 {
line-height: 1.3;
}
-h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0.6rem; }
+h2 {
+ font-size: 1.6rem;
+ margin-top: 2.5rem;
+ margin-bottom: 0.6rem;
+
+ @media (max-width: 768px) { font-size: 1.5rem; }
+}
+
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.4rem; letter-spacing: 0.02em; }
h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
h5 { font-size: 1rem; font-weight: 700; color: var(--link-color); }
@@ -616,23 +628,14 @@ pre {
}
h2 { display: none !important; }
+
+ @media (max-width: 1250px) { display: none !important; }
}
#postamble { text-align: center; }
-@media (max-width: 1250px) {
- body {
- padding-left: 0;
- font-size: 20px;
- }
- #table-of-contents { display: none !important; }
- h1 { font-size: 1.8rem; }
- h2 { font-size: 18px; }
-}
@media (max-width: 768px) {
- h2 { font-size: 1.5rem; }
-
blockquote, .src, .example {
max-width: 100%;
width: 100%;