From 55e29f03ac3b537843f85892a1323e1f46321675 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 11 Apr 2026 13:14:04 -0700 Subject: new articles and snippets --- style.scss | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'style.scss') diff --git a/style.scss b/style.scss index 9204cd3..fcce985 100644 --- a/style.scss +++ b/style.scss @@ -460,26 +460,35 @@ h1.title { vertical-align: middle } -.theorem, .proof { +.theorem, +.lemma, +.corollary, +.definition { display: block; font-style: normal; background: color-mix(in srgb, var(--accent) 8%, transparent); border-left: 3px solid var(--accent); padding: 1rem 1.3rem; margin-top: 2rem; + margin-bottom: 20px; margin-left: 10px; - &::before { float: left; font-weight: bold; } + + &::before { + float: left; + font-weight: bold; + } } -.theorem { margin-bottom: 20px; &::before { content: "Theorem.\00a0\00a0"; } } +.theorem::before { content: "Theorem.\00a0\00a0"; } +.lemma::before { content: "Lemma.\00a0\00a0"; } +.corollary::before { content: "Corollary.\00a0\00a0"; } +.corollary::before { content: "Definition.\00a0\00a0"; } .proof { position: relative; margin-bottom: 30px; padding-right: 1.2em; - &::before { - content: "Proof.\00a0\00a0"; - } + &::before { content: "Proof.\00a0\00a0"; } &::after { content: ""; position: absolute; -- cgit v1.3 From be9877a7dce57de246f8c51ccc4e89ee9633fa8f Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 11 Apr 2026 13:32:49 -0700 Subject: fix some css --- style.scss | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'style.scss') diff --git a/style.scss b/style.scss index fcce985..2756da1 100644 --- a/style.scss +++ b/style.scss @@ -469,20 +469,17 @@ h1.title { background: color-mix(in srgb, var(--accent) 8%, transparent); border-left: 3px solid var(--accent); padding: 1rem 1.3rem; - margin-top: 2rem; - margin-bottom: 20px; - margin-left: 10px; - + margin: 2rem 0 20px 10px; &::before { - float: left; font-weight: bold; + margin-right: 0.4em; } } -.theorem::before { content: "Theorem.\00a0\00a0"; } -.lemma::before { content: "Lemma.\00a0\00a0"; } -.corollary::before { content: "Corollary.\00a0\00a0"; } -.corollary::before { content: "Definition.\00a0\00a0"; } +.theorem::before { content: "Theorem."; } +.lemma::before { content: "Lemma."; } +.corollary::before { content: "Corollary."; } +.definition::before { content: "Definition."; } .proof { position: relative; -- cgit v1.3 From c14ef78dce285fe5e22c5f20c4e7f437680ad69a Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 11 Apr 2026 13:45:42 -0700 Subject: fix style finally --- style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'style.scss') diff --git a/style.scss b/style.scss index 2756da1..467af9d 100644 --- a/style.scss +++ b/style.scss @@ -463,7 +463,8 @@ h1.title { .theorem, .lemma, .corollary, -.definition { +.definition, +.proof { display: block; font-style: normal; background: color-mix(in srgb, var(--accent) 8%, transparent); -- cgit v1.3