mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
normalize topic post first element top-margins:0
This commit is contained in:
@@ -140,3 +140,12 @@ div.ac-wrap {
|
|||||||
top: 20%;
|
top: 20%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this removes the topmost margin from the first element in the topic post
|
||||||
|
// if we don't do this, all posts would have extra space at the top
|
||||||
|
#wmd-preview > *:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.cooked > *:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -173,3 +173,12 @@ kbd
|
|||||||
|
|
||||||
* * { display: none; }
|
* * { display: none; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we assume blockquotes have their own margins, so all blockquotes
|
||||||
|
// will remove margins from first (top) and last (bottom) child elements
|
||||||
|
blockquote > *:first-child {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
||||||
|
blockquote > *:last-child {
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
|
|||||||
@@ -349,11 +349,6 @@
|
|||||||
bottom: 48px;
|
bottom: 48px;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
|
|
||||||
// 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: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wmd-input, #wmd-preview-scroller, #wmd-preview {
|
#wmd-input, #wmd-preview-scroller, #wmd-preview {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@@ -243,8 +243,8 @@ nav.post-controls {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topic-avatar {
|
.topic-avatar {
|
||||||
width: 45px;
|
padding-left: 15px;
|
||||||
padding-left: 15px;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// bottom means "reply expansion" below a post
|
// bottom means "reply expansion" below a post
|
||||||
@@ -646,16 +646,6 @@ blockquote {
|
|||||||
a.mention {background: darken(scale-color-diff(), 10%);}
|
a.mention {background: darken(scale-color-diff(), 10%);}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we assume blockquotes have their own margins, so all blockquotes
|
|
||||||
// will remove margins from first (top) and last (bottom) child elements
|
|
||||||
blockquote > *:first-child {
|
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
|
||||||
blockquote > *:last-child {
|
|
||||||
margin-bottom: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* quotes with attribution */
|
/* quotes with attribution */
|
||||||
.quote {
|
.quote {
|
||||||
&>blockquote {
|
&>blockquote {
|
||||||
|
|||||||
@@ -423,15 +423,6 @@ blockquote {
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we assume blockquotes have their own margins, so all blockquotes
|
|
||||||
// will remove margins from first (top) and last (bottom) child elements
|
|
||||||
blockquote > *:first-child {
|
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
|
||||||
blockquote > *:last-child {
|
|
||||||
margin-bottom: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gutter { display: none; }
|
.gutter { display: none; }
|
||||||
|
|
||||||
.posts-wrapper { position: relative; }
|
.posts-wrapper { position: relative; }
|
||||||
|
|||||||
Reference in New Issue
Block a user