From 96cd49d16613548f3078c06f30430b2c962d9b91 Mon Sep 17 00:00:00 2001 From: Malasaur Date: Mon, 2 Feb 2026 22:42:00 +0100 Subject: [PATCH] Set custom.css to use classes --- src/custom.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/custom.css b/src/custom.css index 6971c75..ea74e35 100644 --- a/src/custom.css +++ b/src/custom.css @@ -1,4 +1,4 @@ -h1 { +.h1 { scroll-margin-top: 5rem; text-align: center; font-size: 2.25rem; @@ -8,7 +8,7 @@ h1 { text-wrap: balance; } -h2 { +.h2 { scroll-margin-top: 5rem; margin-top: 2.5rem; border-bottom: 1px solid var(--border); @@ -20,11 +20,11 @@ h2 { transition: color 0.2s ease; } -h2:first-child { +.h2:first-child { margin-top: 0; } -h3 { +.h3 { scroll-margin-top: 5rem; margin-top: 2rem; font-size: 1.5rem; @@ -33,7 +33,7 @@ h3 { letter-spacing: -0.025em; } -h4 { +.h4 { scroll-margin-top: 5rem; margin-top: 1.5rem; font-size: 1.25rem; @@ -42,33 +42,33 @@ h4 { letter-spacing: -0.025em; } -p { +.p { line-height: 1.75rem; } -p:not(:first-child) { +.p:not(:first-child) { margin-top: 1.5rem; } -blockquote { +.blockquote { margin-top: 1.5rem; border-left: 2px solid var(--border); padding-left: 1.5rem; font-style: italic; } -ul { +.ul { margin-top: 1.5rem; margin-bottom: 1.5rem; margin-left: 1.5rem; list-style-type: disc; } -ul > li { +.ul > li { margin-top: 0.5rem; } -code { +.code { position: relative; border-radius: var(--radius-sm); background-color: var(--muted);