diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-01-24 23:51:36 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-01-24 23:51:36 +0300 |
commit | 6466a0461a8a2ee278497b78f2ed42d63fffe4de (patch) | |
tree | 8eff99871c9c579051e9acfd62055c9430425a7e /scss | |
parent | 2749bf34ded626efa434f2006cbcc36b26b08af5 (diff) |
Deprecate float mixins (#28104)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/mixins/_float.scss | 3 | ||||
-rw-r--r-- | scss/utilities/_float.scss | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/scss/mixins/_float.scss b/scss/mixins/_float.scss index 48fa8b6d59..adff88e790 100644 --- a/scss/mixins/_float.scss +++ b/scss/mixins/_float.scss @@ -2,10 +2,13 @@ @mixin float-left { float: left !important; + @include deprecate("The `float-left` mixin", "v4.3.0", "v5"); } @mixin float-right { float: right !important; + @include deprecate("The `float-right` mixin", "v4.3.0", "v5"); } @mixin float-none { float: none !important; + @include deprecate("The `float-none` mixin", "v4.3.0", "v5"); } diff --git a/scss/utilities/_float.scss b/scss/utilities/_float.scss index 01655e9a52..54250844ff 100644 --- a/scss/utilities/_float.scss +++ b/scss/utilities/_float.scss @@ -1,9 +1,11 @@ +// stylelint-disable declaration-no-important + @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - .float#{$infix}-left { @include float-left; } - .float#{$infix}-right { @include float-right; } - .float#{$infix}-none { @include float-none; } + .float#{$infix}-left { float: left !important; } + .float#{$infix}-right { float: right !important; } + .float#{$infix}-none { float: none !important; } } } |