summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-06 22:17:56 -0800
committerPreston Pan <ret2pop@nullring.xyz>2026-03-06 22:17:56 -0800
commitddd67489f291db60e6eead35a77b84a91f9aaa37 (patch)
tree02a865ef311a2a833b65c98532d6f5dc2ffef17f
parent0400fa407895d0cfa2fe0ab19d2d1a07631ded1d (diff)
parentd8f8ee32a996a4d8b8c1ac252243ae9fe009873e (diff)
Merge branch 'chore/perfect-css'
-rw-r--r--flake.nix2
-rw-r--r--mindmap/lrc_circuit.pngbin3229 -> 0 bytes
m---------nix0
-rw-r--r--style.css121
4 files changed, 114 insertions, 9 deletions
diff --git a/flake.nix b/flake.nix
index af8b06b..ff8bc14 100644
--- a/flake.nix
+++ b/flake.nix
@@ -222,6 +222,8 @@ mkdir -p $out/fonts
cp -L ${pkgs.lora}/share/fonts/truetype/*.ttf $out/fonts/
cp -L ${pkgs.inconsolata}/share/fonts/truetype/inconsolata/*.ttf $out/fonts
cp ${garamond}/ttf/CormorantGaramond-Medium.ttf $out/fonts/
+cp ${garamond}/ttf/CormorantGaramond-MediumItalic.ttf $out/fonts/
+cp ${garamond}/ttf/CormorantGaramond-Bold.ttf $out/fonts/
cp -r $HOME/website_html/. $out/
cp ${topology}/main.svg $out/img/topology.svg
diff --git a/mindmap/lrc_circuit.png b/mindmap/lrc_circuit.png
deleted file mode 100644
index 56d7d05..0000000
--- a/mindmap/lrc_circuit.png
+++ /dev/null
Binary files differ
diff --git a/nix b/nix
-Subproject 4bd24f067dab059c5754fc46f496da450f2208d
+Subproject 589f94a13d2ef53ec56c3f29df4fd988e290fda
diff --git a/style.css b/style.css
index 452a13b..bda5c63 100644
--- a/style.css
+++ b/style.css
@@ -19,6 +19,20 @@
src: url('./fonts/CormorantGaramond-Medium.ttf') format('truetype');
}
+@font-face {
+ font-family: 'CormorantGaramond';
+ font-style: normal;
+ font-weight: 700;
+ src: url('./fonts/CormorantGaramond-Bold.ttf') format('truetype');
+}
+
+@font-face {
+ font-family: 'CormorantGaramond';
+ font-style: italic;
+ font-weight: 500;
+ src: url('./fonts/CormorantGaramond-MediumItalic.ttf') format('truetype');
+}
+
:root {
--bg-main: #FBF8F1;
--text-main: #4A3F35;
@@ -41,6 +55,16 @@
background: #ff4081;
}
+:not(pre) > code {
+ font-family: var(--font-mono), monospace;
+ background: var(--code-bg);
+ color: var(--code-text);
+ padding: 0.15em 0.4em;
+ border-radius: 4px;
+ font-size: 0.85em;
+ white-space: nowrap; /* Keeps small code snippets from breaking across lines */
+}
+
body {
background:
radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
@@ -99,9 +123,21 @@ figcaption {
margin-top: 0.5rem;
}
+p, ul, ol {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
+}
+
h1, h2, h3 {
line-height: 1.2;
- font-family: var(--font-serif);
+ font-family: var(--font-header);
+}
+
+h4, h5, h6 {
+ font-family: var(--font-mono);
+ line-height: 1.3;
+ margin-top: 1.5rem;
+ margin-bottom: 0.5rem;
}
h1, h2 {
@@ -112,16 +148,10 @@ h1, h2 {
position: relative;
}
-p, ul, ol {
- margin-top: 1rem;
- margin-bottom: 1rem;
-}
-
h1 {
font-size: 2.3rem;
margin-top: 3rem;
margin-bottom: 1rem;
- font-family: var(--font-header);
font-weight: 600;
letter-spacing: 0;
line-height: 1.3;
@@ -141,8 +171,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);
}
img, blockquote {
@@ -462,6 +514,57 @@ header, .title + p, .subtitle + p {
display: block;
}
+.preamble {
+ font-family: var(--font-mono);
+ font-size: 0.85rem;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ margin-top: 10px;
+ color: color-mix(in srgb, var(--text-main) 50%, transparent);
+ a {
+ color: var(--text-main);
+ text-decoration: none;
+ padding: 4px 8px;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+ &:hover {
+ background: color-mix(in srgb, var(--accent) 15%, transparent);
+ color: var(--link-color);
+ }
+ }
+
+ & + hr {
+ border: none;
+ height: 1px;
+ background: linear-gradient(to right, var(--accent), transparent);
+ margin-bottom: 2.5rem;
+ opacity: 0.5;
+ }
+}
+
+.todo {
+ font-family: var(--font-mono);
+ font-size: 0.75em;
+ font-weight: bold;
+ letter-spacing: 1px;
+ padding: 2px 8px;
+ border-radius: 4px;
+ vertical-align: middle;
+ margin-right: 6px;
+}
+
+.todo.TODO {
+ color: var(--link-color);
+ background-color: color-mix(in srgb, var(--accent) 20%, transparent);
+ border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
+}
+
+.todo.DONE {
+ color: #4f8a10;
+ background-color: #dff2bf;
+ border: 1px solid color-mix(in srgb, #4f8a10 50%, transparent);
+}
+
#table-of-contents {
height: 100vh;
width: 250px;
@@ -499,7 +602,7 @@ header, .title + p, .subtitle + p {
width: 100%;
padding: 10px 16px 10px 32px;
box-sizing: border-box;
- font-size: 13px;
+ font-size: 15px;
font-family: var(--font-mono);
white-space: nowrap;
overflow: hidden;
@@ -524,7 +627,7 @@ header, .title + p, .subtitle + p {
a {
padding-left: 48px;
opacity: 0.55;
- font-size: 12px;
+ font-size: 13px;
&:hover {
padding-left: 38px;