hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit c8fe1bcd9787d7515cacca0430210f2897d555db
parent 3101ed2362f14e0771bd43eb6a53e81f95178196
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu, 14 Oct 2021 19:45:28 -0400

Set sans-serif font to the headings and the navigation & co

Diffstat:
Msrc/css/atoms/typography/quotes.css | 4++++
Msrc/css/atoms/typography/titles.css | 6++++++
Msrc/css/global/base.css | 8+++++---
Msrc/css/modules/go-to.css | 1+
Msrc/css/modules/hcard.css | 2++
Msrc/css/modules/nav.css | 1+
6 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/css/atoms/typography/quotes.css b/src/css/atoms/typography/quotes.css @@ -6,6 +6,10 @@ blockquote { padding: 1em 1em 1em 1rem; } +blockquote p { + font-style: italic; +} + /* @media screen and (min-width: 48rem) { */ /* blockquote { */ /* font-size: calc(var(--base-font-size) + 2px); */ diff --git a/src/css/atoms/typography/titles.css b/src/css/atoms/typography/titles.css @@ -11,6 +11,12 @@ margin-bottom: 0; } +.title-h1, h1, +.title-h2, h2, +.title-h3, h3 { + font-family: sans-serif; +} + .title-h1:first-child, h1:first-child, .title-h2:first-child, h2:first-child, .title-h3:first-child, h3:first-child, diff --git a/src/css/global/base.css b/src/css/global/base.css @@ -93,13 +93,15 @@ pre { font-size: .85rem; overflow: auto; padding: 1rem; +} - code { - background: transparent; - } +pre > code, +pre > samp { + background: transparent; } code, +samp, kbd { background: var(--base-snippet-bg); color: var(--base-snippet-fg); diff --git a/src/css/modules/go-to.css b/src/css/modules/go-to.css @@ -4,6 +4,7 @@ background: var(--base-darkest); color: var(--base-brightest); display: flex; + font-family: sans-serif; font-weight: 700; justify-content: flex-start; padding-right: 2rem; diff --git a/src/css/modules/hcard.css b/src/css/modules/hcard.css @@ -1,11 +1,13 @@ /* @module hcard */ #hs.hcard h1 { + font-family: var(--base-font-family); font-size: 1rem; font-weight: 400; } #hs.hcard .p-name { + font-family: sans-serif; font-size: 1.25rem; } diff --git a/src/css/modules/nav.css b/src/css/modules/nav.css @@ -2,6 +2,7 @@ .nav { background: var(--base-fg); + font-family: sans-serif; margin: 0; }