Skip to content

Commit

Permalink
Deprecate float mixins (#28104)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Jan 24, 2019
1 parent 2749bf3 commit 6466a04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scss/mixins/_float.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
8 changes: 5 additions & 3 deletions scss/utilities/_float.scss
Original file line number Diff line number Diff line change
@@ -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; }
}
}

0 comments on commit 6466a04

Please sign in to comment.