diff --git a/static/css/hugo-theme.css b/static/css/hugo-theme.css index 31cf7ea506..d5ded71556 100644 --- a/static/css/hugo-theme.css +++ b/static/css/hugo-theme.css @@ -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 { diff --git a/static/css/theme.css b/static/css/theme.css index ce0b388a2a..f48bc6ef2a 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -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 {