mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
first-child removes whitespace from top of posts
MUST REMOVE SCRIPT METAMORPH FROM COOKED FOR THIS TO WORK!
This commit is contained in:
parent
a001232ff3
commit
6689f72dfd
1 changed files with 8 additions and 3 deletions
|
@ -539,9 +539,6 @@
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@include border-radius-top(4px);
|
@include border-radius-top(4px);
|
||||||
p:nth-of-type(1) {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
.calc {
|
.calc {
|
||||||
background-color: $highlight;
|
background-color: $highlight;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@ -583,9 +580,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.topic-body {
|
.topic-body {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
// this removes the topmost margin;
|
||||||
|
// if we don't have this, all posts would have extra space at the top
|
||||||
|
.cooked > *:first-child {
|
||||||
|
margin-top: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// set up proper header margins in posts
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin: 20px 0 10px;
|
margin: 20px 0 10px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue