mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 09:45:41 +08:00
make h1 margins specific to .cooked, and preview
This commit is contained in:
parent
f2d61496af
commit
cb6b9ccc6d
@ -355,6 +355,13 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
bottom: 48px;
|
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 {
|
#wmd-input, #wmd-preview {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
@ -365,6 +372,11 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|
||||||
|
// set up proper header margins in post preview
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
margin: 20px 0 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#wmd-input {
|
#wmd-input {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -590,9 +590,11 @@
|
|||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set up proper header margins in posts
|
.cooked {
|
||||||
h1, h2, h3, h4, h5, h6 {
|
// set up proper header margins in posts
|
||||||
margin: 20px 0 10px;
|
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
|
// this is the little pointy bit of the speech bubble on the post, on the left side
|
||||||
|
Loading…
x
Reference in New Issue
Block a user