Elegant Business: Make sure the first block has margin-top: 0
This commit is contained in:
parent
5a937f822a
commit
191b80c441
3 changed files with 12 additions and 6 deletions
|
@ -11,11 +11,11 @@
|
|||
margin: $size__vertical-spacing-unit auto;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
> &:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
> &:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -3340,12 +3340,12 @@ body.page .main-navigation {
|
|||
}
|
||||
}
|
||||
|
||||
.entry .entry-content > *:first-child,
|
||||
> .entry .entry-content > *:first-child, >
|
||||
.entry .entry-summary > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.entry .entry-content > *:last-child,
|
||||
> .entry .entry-content > *:last-child, >
|
||||
.entry .entry-summary > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
@ -3440,6 +3440,9 @@ body.page .main-navigation {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure the first block has margin-top: 0
|
||||
*/
|
||||
.entry:not(.has-post-thumbnail) .entry-content > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
|
@ -3346,12 +3346,12 @@ body.page .main-navigation {
|
|||
}
|
||||
}
|
||||
|
||||
.entry .entry-content > *:first-child,
|
||||
> .entry .entry-content > *:first-child, >
|
||||
.entry .entry-summary > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.entry .entry-content > *:last-child,
|
||||
> .entry .entry-content > *:last-child, >
|
||||
.entry .entry-summary > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
@ -3452,6 +3452,9 @@ body.page .main-navigation {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure the first block has margin-top: 0
|
||||
*/
|
||||
.entry:not(.has-post-thumbnail) .entry-content > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue