Skip to content

Commit

Permalink
css: Only use Raleway font for <h1>
Browse files Browse the repository at this point in the history
Raleway has very different metrics to the default fonts of some Linux
distros resulting in <h2> being smaller than <h3>, which is very
confusing. <h1> is larger and often underlined, so we can keep it there.
  • Loading branch information
liskin authored and slotThe committed Oct 27, 2021
1 parent 0b70fcb commit d288bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ a:hover { color: black; }
#navbarText > ul > li > a:hover { color: #000; }
.btn-primary { background-color: #900; border-color: #900; }
.btn-primary:hover { background-color: #000; border-color: #000; }
h1, h2 { font-family: Raleway, var(--bs-font-sans-serif); font-weight: 500; }
h1 { font-family: Raleway, var(--bs-font-sans-serif); font-weight: 500; }
code { padding: .2rem .4rem; background-color: #f8f8f8; border-radius: .25rem; }
pre code { padding: 0; background-color: transparent; border-radius: 0; }
pre { padding: 0.5rem 0.5rem; background-color: #f8f8f8; border-radius: .5rem; }
Expand Down

0 comments on commit d288bd7

Please sign in to comment.