theme: some love for headings #92

This commit is contained in:
Sören Weber 2021-09-29 01:12:29 +02:00
parent 80a3cb9756
commit a632d4b505
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 36 additions and 32 deletions

View file

@ -167,51 +167,56 @@ h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover
/* Redfines headers style */ /* Redfines headers style */
h2, h3, h4, h5, h6 {
font-weight: 400;
line-height: 1.1;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: inherit; font-weight: inherit;
} }
h2 { #body h2 {
font-size: 2.5rem; font-size: 2.2rem;
line-height: 110% !important; font-weight: 400;
margin: 2.5rem 0 1.5rem 0; margin-top: 2rem;
} }
h3 { #body h3 {
font-size: 2rem; font-size: 1.8rem;
line-height: 110% !important; font-weight: 400;
margin: 2rem 0 1rem 0; margin-top: 2rem;
} }
h4 { #body h4 {
font-size: 1.5rem; font-size: 1.85rem;
line-height: 110% !important; font-weight: 200;
margin: 1.5rem 0 0.75rem 0; margin-top: 2rem;
} }
h5 { #body h5 {
font-size: 1rem; font-size: 1.6rem;
line-height: 110% !important; font-weight: 200;
margin: 1rem 0 0.2rem 0; margin-top: 2rem;
} }
h6 { #body h6 {
font-size: 0.5rem; font-size: 1.3rem;
line-height: 110% !important; font-weight: 200;
margin: 0.5rem 0 0.2rem 0; margin-top: 2rem;
} }
figcaption h4 { #body h1 + h2,
font-weight: 300 !important; #body h1 + h3,
opacity: .85; #body h1 + h4,
font-size: 1em; #body h1 + h5,
text-align: center; #body h1 + h6,
margin-top: -1.5em; #body h2 + h3,
#body h2 + h4,
#body h2 + h5,
#body h2 + h6,
#body h3 + h4,
#body h3 + h5,
#body h3 + h6,
#body h4 + h5,
#body h4 + h6,
#body h5 + h6 {
margin-top: 1rem;
} }
.select-style { .select-style {

View file

@ -436,7 +436,6 @@ h2, h3, h4, h5, h6 {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
color: #5e5e5e; color: #5e5e5e;
font-weight: 400;
letter-spacing: -1px; letter-spacing: -1px;
} }
h1 { h1 {