Tidy up _clearings.scss

refactoring this code to make it easier to read and reduce number of lines required.
This commit is contained in:
Nuclear Ape 2019-01-18 12:34:25 +00:00 committed by GitHub
parent c3a4a7f860
commit 13d2654259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 21 deletions

View File

@ -1,23 +1,15 @@
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
@include clearfix;
}
.clear,
.entry-content,
.comment-content,
.site-header,
.site-content,
.site-footer {
&::before,
&::after {
@include clearfix;
}
.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
@include clearfix-after;
&::after {
@include clearfix-after;
}
}