summaryrefslogtreecommitdiff
path: root/style.scss
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-05-11 11:19:18 -0700
committerPreston Pan <ret2pop@nullring.xyz>2026-05-11 11:19:18 -0700
commit5315bcdf371a4310018fb9599f7d78f93f9aedcb (patch)
tree0d028553d6a47ae6363efd3482093d7532dcdfef /style.scss
parent2e4742b9289bd3f84af8474ca33f497a20122f36 (diff)
final
Diffstat (limited to 'style.scss')
-rw-r--r--style.scss69
1 files changed, 55 insertions, 14 deletions
diff --git a/style.scss b/style.scss
index 6808857..a2c358c 100644
--- a/style.scss
+++ b/style.scss
@@ -9,6 +9,23 @@ $fonts: (
('CormorantGaramond', 'CormorantGaramond-MediumItalic', 700, italic),
);
+@font-face {
+ font-family: 'Lora-Fallback';
+ src: local('serif');
+ size-adjust: 98%;
+ ascent-override: 105%;
+ descent-override: 35%;
+}
+
+@font-face {
+ font-family: 'Lora-Fallback';
+ src: local('Times New Roman'), local('Times'), local('serif');
+ size-adjust: 95%;
+ ascent-override: 90%;
+ descent-override: 25%;
+ line-gap-override: 30%;
+}
+
$breakpoints: (
'mobile': 768px,
'toc': 1250px
@@ -104,7 +121,7 @@ $isa: (
--code-text: #cdd6f4;
--code-radius: 6px;
- --font-serif: "Lora", serif;
+ --font-serif: "Lora", "Lora-Fallback", serif;
--font-mono: "Inconsolata", monospace;
--font-header: "CormorantGaramond", serif;
--font-math: "STIX Two Math",'Latin Modern Math', serif;
@@ -175,7 +192,7 @@ main, header, footer {
}
h1, h2, h3 { line-height: 1.2; font-family: var(--font-header), serif; }
-h4, h5, h6 { font-family: var(--font-mono), monospace; line-height: 1.3; margin-top: 1.5rem; margin-bottom: 0.5rem; }
+h4, h5, h6 { font-family: var(--font-serif), serif; line-height: 1.3; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h1, h2 {
padding-bottom: 8px;
@@ -202,9 +219,30 @@ h2 {
}
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); }
-h6 { font-size: 0.85rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; color: color-mix(in srgb, var(--text-main) 60%, transparent); }
+
+h4 {
+ font-size: 0.95rem;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ color: var(--text-main);
+ -webkit-font-smoothing: auto;
+}
+
+h5 {
+ font-size: 1rem;
+ font-weight: 500;
+ font-style: italic;
+ color: var(--text-main);
+}
+
+h6 {
+ font-size: 0.82rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ color: color-mix(in srgb, var(--text-main) 50%, transparent);
+}
h1, h2, h3, h4, h5, h6 {
[class^="section-number-"] {
@@ -374,7 +412,6 @@ math {
}
}
-.outline-text-2 > p:first-of-type::first-letter,
#text-1 > p:first-of-type::first-letter {
float: left;
font-size: 3.5rem;
@@ -526,10 +563,10 @@ h1.title {
}
}
-.theorem::before { content: "Theorem."; }
-.lemma::before { content: "Lemma."; }
-.corollary::before { content: "Corollary."; }
-.definition::before { content: "Definition."; }
+.theorem::before { content: "Theorem:"; }
+.lemma::before { content: "Lemma:"; }
+.corollary::before { content: "Corollary:"; }
+.definition::before { content: "Definition:"; }
.proof {
position: relative;
@@ -553,7 +590,11 @@ h1.title {
@include bp('mobile') { columns: 1; }
}
-.org-svg { width: 100%; max-width: none; }
+img.org-svg, .org-svg {
+ max-width: 80%;
+ margin: 2rem auto;
+ display: block;
+}
.verse {
width: fit-content;
@@ -767,12 +808,12 @@ h1.title {
top: 0;
left: 0;
padding-top: 0;
- background: var(--toc-bg);
- border-right: 1px solid var(--accent);
+ // background: color-mix(in srgb, var(--toc-bg) 15%, transparent);
+ // border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
overflow-y: auto;
overflow-x: hidden;
- @include hide-scrollbar;
+ @include custom-scrollbar;
ul {
list-style-type: none;