Last active
May 17, 2020 23:14
-
-
Save Wildhammer/bd8d0ad1d899c6c5c1e43e59ecab561f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "~bootstrap/scss/mixins/_breakpoints.scss"; | |
@import "variables"; | |
/* This will generate bootstrap style responsive classes for flex-basis | |
e.g. flex-basis-md-25*/ | |
@each $breakpoint, $value in $breakpoints { | |
$min: breakpoint-min($breakpoint); | |
$breakpoint-name: if($min, -#{$breakpoint}, ""); | |
@for $i from 1 through 4 { | |
@include media-breakpoint-up($breakpoint) { | |
.flex#{$breakpoint-name}-basis-#{$i*25} { | |
flex-basis: percentage($i * 0.25); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment