Created
November 5, 2020 01:45
-
-
Save joshmoto/69f282fbbb7beb70d79fd5ed9b15f05a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
$sizes_1: ( | |
sm: 768px, | |
md: 1024px, | |
lg: 1200px, | |
xl: 1600px, | |
gutter: 48px | |
); | |
$sizes_2: ( | |
sm: 768, | |
md: 1024, | |
lg: 1200, | |
xl: 1600, | |
gutter: 48 | |
); | |
@function sz_1($size) { | |
@return map-get($sizes_1, $size); | |
} | |
@function sz_2($size) { | |
@return map-get($sizes_2, $size); | |
} | |
$gutterhalf_1: sz_1(gutter) / 2; | |
$gutterhalf_2: ( sz_2(gutter) / 2 ) + px; | |
#sz_1 { | |
margin: $gutterhalf_1; | |
} | |
#sz_2 { | |
margin: $gutterhalf_2; | |
} |
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
#sz_1 { | |
margin: 24px; | |
} | |
#sz_2 { | |
margin: 24px; | |
} |
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
{ | |
"sass": { | |
"compiler": "dart-sass/1.26.11", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment