UX: h1, h2, etc css reset should give them a bottom margin

This commit is contained in:
Neil Lalonde
2017-05-24 10:38:25 -04:00
parent ee23ce5acc
commit 0756602dfa
3 changed files with 6 additions and 5 deletions

View File

@@ -45,6 +45,11 @@ html {
}
body {
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
background-attachment: fixed;
background-size: cover;
min-height: 100%;

View File

@@ -44,7 +44,7 @@
}
// global styles for the cooked HTML content in posts (and preview)
.cooked, .d-editor-preview, #banner-content {
.cooked, .d-editor-preview {
word-wrap: break-word;
h1, h2, h3, h4, h5, h6 { margin: 30px 0 10px; }
h1 { line-height: 1em; } /* normalize.css sets h1 font size but not line height */

View File

@@ -144,10 +144,6 @@ body {
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
/* page not found styles */
h1.page-not-found {
line-height: 30px;