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 */
h2, h3, h4, h5, h6 {
font-weight: 400;
line-height: 1.1;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: inherit;
}
h2 {
font-size: 2.5rem;
line-height: 110% !important;
margin: 2.5rem 0 1.5rem 0;
#body h2 {
font-size: 2.2rem;
font-weight: 400;
margin-top: 2rem;
}
h3 {
font-size: 2rem;
line-height: 110% !important;
margin: 2rem 0 1rem 0;
#body h3 {
font-size: 1.8rem;
font-weight: 400;
margin-top: 2rem;
}
h4 {
font-size: 1.5rem;
line-height: 110% !important;
margin: 1.5rem 0 0.75rem 0;
#body h4 {
font-size: 1.85rem;
font-weight: 200;
margin-top: 2rem;
}
h5 {
font-size: 1rem;
line-height: 110% !important;
margin: 1rem 0 0.2rem 0;
#body h5 {
font-size: 1.6rem;
font-weight: 200;
margin-top: 2rem;
}
h6 {
font-size: 0.5rem;
line-height: 110% !important;
margin: 0.5rem 0 0.2rem 0;
#body h6 {
font-size: 1.3rem;
font-weight: 200;
margin-top: 2rem;
}
figcaption h4 {
font-weight: 300 !important;
opacity: .85;
font-size: 1em;
text-align: center;
margin-top: -1.5em;
#body h1 + h2,
#body h1 + h3,
#body h1 + h4,
#body h1 + h5,
#body h1 + h6,
#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 {

View file

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