make h1 margins specific to .cooked, and preview

This commit is contained in:
Jeff Atwood 2013-03-28 17:07:57 -07:00
parent f2d61496af
commit cb6b9ccc6d
2 changed files with 17 additions and 3 deletions

View File

@ -355,6 +355,13 @@
position: absolute;
top: 50px;
bottom: 48px;
// this removes the topmost margin;
// if we don't have this, all posts would have extra space at the top
#wmd-preview > *:first-child {
margin-top: 0px !important;
}
#wmd-input, #wmd-preview {
box-sizing: border-box;
-moz-box-sizing: border-box;
@ -365,6 +372,11 @@
margin: 0;
background-color: $white;
word-wrap: break-word;
// set up proper header margins in post preview
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 10px;
}
}
#wmd-input {
position: absolute;

View File

@ -590,9 +590,11 @@
margin-top: 0px !important;
}
// set up proper header margins in posts
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 10px;
.cooked {
// set up proper header margins in posts
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 10px;
}
}
// this is the little pointy bit of the speech bubble on the post, on the left side