From 5668c6fd514198b3df8d686fa753d7e9c164564c Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Wed, 12 Jul 2023 11:17:20 -0700 Subject: [PATCH] Minor styling changes --- src/css/Components/_card.scss | 5 +++-- src/css/Components/_code.scss | 6 ++++++ src/css/Components/_headings.scss | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/css/Components/_card.scss b/src/css/Components/_card.scss index 61e6b0b..9e6ee82 100644 --- a/src/css/Components/_card.scss +++ b/src/css/Components/_card.scss @@ -4,12 +4,13 @@ display: flex; flex-direction: column; padding: 1rem; - margin-bottom: 1rem; + margin-top: 0.5rem; + margin-bottom: 0.5rem; border: solid 1px var(--primary-border-color); border-radius: var(--main-border-radius); h1, h2, h3, h4, h5, h6 { - margin-bottom: 0; + margin: 0; } .card-links { diff --git a/src/css/Components/_code.scss b/src/css/Components/_code.scss index 5c10228..66710d8 100644 --- a/src/css/Components/_code.scss +++ b/src/css/Components/_code.scss @@ -19,6 +19,7 @@ code { } pre { + font-size: 0.9em; background: var(--code-background); padding: 1em; border: solid 1px var(--primary-border-color); @@ -30,6 +31,11 @@ pre { border: unset; border-radius: unset; } + + &[class*=language-] { + font-size: 0.9em; + margin-bottom: 1em; + } } .token.keyword { diff --git a/src/css/Components/_headings.scss b/src/css/Components/_headings.scss index 01f21c1..cd4c8c1 100644 --- a/src/css/Components/_headings.scss +++ b/src/css/Components/_headings.scss @@ -1,8 +1,8 @@ h1, h2, h3, h4, h5, h6 { font-weight: 500; - margin-top: 0; } h1 { font-size: 3em; + margin-top: 0; }