fix styling to improve heading spacing fixes #102036 (#102427)

* updating styling to make headings look better

* be consistent and use em
This commit is contained in:
Jason Williams 2020-07-14 01:40:38 +01:00 committed by GitHub
parent f4d766ca55
commit b8e773ebed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,22 @@ html, body {
word-wrap: break-word;
}
body {
padding-top: 1em;
}
/* Reset margin top for elements */
h1, h2, h3, h4, h5, h6,
p, ol, ul, pre {
margin-top: 0;
}
h2, h3, h4, h5, h6 {
font-weight: normal;
margin-bottom: 0.2em;
}
#code-csp-warning {
position: fixed;
top: 0;
@ -112,6 +128,20 @@ textarea:focus {
outline-offset: -1px;
}
p {
margin-bottom: 1.5em;
}
/* don't space 2 paragraphs too far apart */
p + p {
margin-top: -0.8em;
}
ul,
ol {
margin-bottom: 1.5em;
}
hr {
border: 0;
height: 2px;
@ -123,10 +153,8 @@ h1 {
line-height: 1.2;
border-bottom-width: 1px;
border-bottom-style: solid;
}
h1, h2, h3 {
font-weight: normal;
margin-bottom: 1.5em;
}
table {