From 6df5c7f2692f7892dfd134cd4d71e8144b305e83 Mon Sep 17 00:00:00 2001 From: James Nash Date: Tue, 23 Jul 2019 10:58:58 +0100 Subject: [PATCH] refactor: removes clear() SASS mixin affects: @buildit/gravity-ui-web Gravity's provided a clearfix mixin called "clear()" so far but it was never used anywhere. Also, it didn't follow Gravity's naming conventions. This change therefore removes it. BREAKING CHANGE: The clear() SASS mixin has been removed. Replace any usage of it with your own CSS clearfix. --- packages/gravity-ui-web/src/sass/01-tools/_clear.scss | 11 ----------- .../gravity-ui-web/src/sass/01-tools/_tools.all.scss | 1 - 2 files changed, 12 deletions(-) delete mode 100644 packages/gravity-ui-web/src/sass/01-tools/_clear.scss diff --git a/packages/gravity-ui-web/src/sass/01-tools/_clear.scss b/packages/gravity-ui-web/src/sass/01-tools/_clear.scss deleted file mode 100644 index f036ef9c..00000000 --- a/packages/gravity-ui-web/src/sass/01-tools/_clear.scss +++ /dev/null @@ -1,11 +0,0 @@ -@mixin clear($pseudo: 'before') { - @if (not $pseudo == 'before' or not $pseudo == 'after') { - @error 'pseudo class #{$pseudo} not valid'; - } - - &::#{$pseudo} { - content: ''; - display: table; - clear: both; - } -} diff --git a/packages/gravity-ui-web/src/sass/01-tools/_tools.all.scss b/packages/gravity-ui-web/src/sass/01-tools/_tools.all.scss index 692f81d5..5ff86f5f 100644 --- a/packages/gravity-ui-web/src/sass/01-tools/_tools.all.scss +++ b/packages/gravity-ui-web/src/sass/01-tools/_tools.all.scss @@ -3,7 +3,6 @@ // Must not output any CSS. @import 'breakpoints'; @import 'container'; -@import 'clear'; @import 'color-schemes'; @import 'decorations'; @import 'font-face';