Last active
October 28, 2019 03:48
-
-
Save euqueme/2176d56f61da778f41fcbf0de08e064d 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
//VARIABLES | |
$breakpoints: $sm, $md, $lg, $xl; | |
$breakpoint-xs: 575px; | |
$breakpoint-sm: 576px; | |
$breakpoint-md: 768px; | |
$breakpoint-lg: 992px; | |
$breakpoint-xl: 1200px; | |
$breaks: $breakpoint-sm, $breakpoint-md, $breakpoint-lg, $breakpoint-xl; | |
$wh-options: 10; | |
// Width and Height | |
@for $i from 1 through 10 { | |
.h-#{$wh-options * $i}{ | |
height: ($wh-options * $i)#{"% !important"}; | |
} | |
.w-#{$wh-options * $i}{ | |
width: ($wh-options * $i)#{"% !important"}; | |
} | |
} | |
$j: 1; | |
@each $break in $breaks { | |
@media screen and (min-width: $break) { | |
@for $i from 1 through 10 { | |
.h-#{nth($breakpoints,$j)}-#{$wh-options * $i}{ | |
height: ($wh-options * $i)#{"% !important"}; | |
} | |
.w-#{nth($breakpoints,$j)}-#{$wh-options * $i}{ | |
width: ($wh-options * $i)#{"% !important"}; | |
} | |
} | |
} | |
$j: $j + 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment