Created
February 3, 2021 12:53
-
-
Save davidhellmann/6bf6e5cc01508ad855eecbe90d0f2ceb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
.foo { | |
@for $i from 1 through 24 { | |
@if $i % 2 == 0 { | |
&--size-#{$i} { | |
grid-column: #{(24 - $i) / 2} / span #{$i}; | |
grid-row: #{(24 - $i) / 2} / span #{$i}; | |
} | |
} | |
} | |
} |
This file contains hidden or 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
.foo--size-2 { | |
grid-column: 11 / span 2; | |
grid-row: 11 / span 2; | |
} | |
.foo--size-4 { | |
grid-column: 10 / span 4; | |
grid-row: 10 / span 4; | |
} | |
.foo--size-6 { | |
grid-column: 9 / span 6; | |
grid-row: 9 / span 6; | |
} | |
.foo--size-8 { | |
grid-column: 8 / span 8; | |
grid-row: 8 / span 8; | |
} | |
.foo--size-10 { | |
grid-column: 7 / span 10; | |
grid-row: 7 / span 10; | |
} | |
.foo--size-12 { | |
grid-column: 6 / span 12; | |
grid-row: 6 / span 12; | |
} | |
.foo--size-14 { | |
grid-column: 5 / span 14; | |
grid-row: 5 / span 14; | |
} | |
.foo--size-16 { | |
grid-column: 4 / span 16; | |
grid-row: 4 / span 16; | |
} | |
.foo--size-18 { | |
grid-column: 3 / span 18; | |
grid-row: 3 / span 18; | |
} | |
.foo--size-20 { | |
grid-column: 2 / span 20; | |
grid-row: 2 / span 20; | |
} | |
.foo--size-22 { | |
grid-column: 1 / span 22; | |
grid-row: 1 / span 22; | |
} | |
.foo--size-24 { | |
grid-column: 0 / span 24; | |
grid-row: 0 / span 24; | |
} |
This file contains hidden or 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": "Ruby Sass/3.7.4", | |
"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