mirror of
https://github.com/primer/css.git
synced 2024-12-01 12:42:32 +03:00
use $responsive-variants for .float-*
This commit is contained in:
parent
b632983b58
commit
182cd2e0f9
@ -50,23 +50,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Floats
|
// Floats
|
||||||
/* Float to the right */
|
@each $breakpoint, $variant in $responsive-variants {
|
||||||
.float-right { float: right !important; }
|
|
||||||
/* Float to the left */
|
|
||||||
.float-left { float: left !important; }
|
|
||||||
/* Don't float left or right */
|
|
||||||
.float-none { float: none !important; }
|
|
||||||
|
|
||||||
// Responsive float utlities
|
|
||||||
// .float-md-left, .float-lg-right, ...
|
|
||||||
@each $breakpoint in map-keys($breakpoints) {
|
|
||||||
@include breakpoint($breakpoint) {
|
@include breakpoint($breakpoint) {
|
||||||
/* Float to the left at the #{$breakpoint} breakpoint */
|
/* Float to the left */
|
||||||
.float-#{$breakpoint}-left { float: left !important; }
|
.float#{$variant}-left { float: left !important; }
|
||||||
/* Float to the right at the #{$breakpoint} breakpoint */
|
/* Float to the right */
|
||||||
.float-#{$breakpoint}-right { float: right !important; }
|
.float#{$variant}-right { float: right !important; }
|
||||||
/* No float at the #{$breakpoint} breakpoint */
|
/* No float */
|
||||||
.float-#{$breakpoint}-none { float: none !important; }
|
.float#{$variant}-none { float: none !important; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user