mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-26 00:14:20 -05:00
blockquote, *:first-child and *:last-child spacing
This commit is contained in:
parent
d379012dbc
commit
d2cf921791
2 changed files with 21 additions and 7 deletions
|
@ -670,18 +670,23 @@ blockquote {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
a.mention {background: darken(scale-color-diff(), 10%);}
|
a.mention {background: darken(scale-color-diff(), 10%);}
|
||||||
p:first-of-type {margin-top: 0;}
|
|
||||||
p:last-of-type {margin-bottom: 0;}
|
|
||||||
h1:first-of-type, h2:first-of-type, h3:first-of-type { margin-top: 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;
|
||||||
|
}
|
||||||
|
blockquote > *:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* quotes with attribution */
|
/* quotes with attribution */
|
||||||
.quote {
|
.quote {
|
||||||
&>blockquote {
|
&>blockquote {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
p:first-of-type {margin:0;}
|
|
||||||
h1:first-of-type, h2:first-of-type, h3:first-of-type { margin-top: 0;}
|
|
||||||
.onebox-result {
|
.onebox-result {
|
||||||
background-color: scale-color-diff();
|
background-color: scale-color-diff();
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,6 +479,15 @@ 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;
|
||||||
|
}
|
||||||
|
blockquote > *:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.quote-controls {
|
.quote-controls {
|
||||||
float: right;
|
float: right;
|
||||||
color: $primary;
|
color: $primary;
|
||||||
|
|
Loading…
Reference in a new issue