From 13d26542598bdb909aa5d6bd4225c1c1428b2bb7 Mon Sep 17 00:00:00 2001 From: Nuclear Ape Date: Fri, 18 Jan 2019 12:34:25 +0000 Subject: [PATCH] Tidy up _clearings.scss refactoring this code to make it easier to read and reduce number of lines required. --- sass/modules/_clearings.scss | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/sass/modules/_clearings.scss b/sass/modules/_clearings.scss index 444b6b60..3c4a30e1 100644 --- a/sass/modules/_clearings.scss +++ b/sass/modules/_clearings.scss @@ -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; + } }