Created
July 7, 2022 19:39
-
-
Save deemaxx/efd0c54a02904a1ac32c55142d697fa2 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
@mixin spacing { | |
--spacing-none: 0; | |
--spacing-extra-small: 4px; | |
--spacing-small: 8px; | |
--spacing-medium: 12px; | |
--spacing-large: 16px; | |
--spacing-extra-large: 20px; | |
--spacing-extra-extra-large: 32px; | |
--spacing-extra-extra-extra-large: 40px; | |
} | |
$gaps: ( | |
'0': --spacing-extra-small, | |
'1': --spacing-small, | |
'2': --spacing-medium, | |
'3': --spacing-large, | |
'4': --spacing-extra-large, | |
'5': --spacing-extra-extra-large, | |
'6': --spacing-extra-extra-extra-large | |
); | |
@each $size, $spacing in $gaps { | |
.gap-#{$size} { | |
gap: var($spacing); | |
} | |
.gap-h-#{$size} { | |
column-gap: var($spacing); | |
} | |
.gap-v-#{$size} { | |
row-gap: var($spacing); | |
} | |
} |
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
.gap-0 { | |
gap: var(--spacing-extra-small); | |
} | |
.gap-h-0 { | |
column-gap: var(--spacing-extra-small); | |
} | |
.gap-v-0 { | |
row-gap: var(--spacing-extra-small); | |
} | |
.gap-1 { | |
gap: var(--spacing-small); | |
} | |
.gap-h-1 { | |
column-gap: var(--spacing-small); | |
} | |
.gap-v-1 { | |
row-gap: var(--spacing-small); | |
} | |
.gap-2 { | |
gap: var(--spacing-medium); | |
} | |
.gap-h-2 { | |
column-gap: var(--spacing-medium); | |
} | |
.gap-v-2 { | |
row-gap: var(--spacing-medium); | |
} | |
.gap-3 { | |
gap: var(--spacing-large); | |
} | |
.gap-h-3 { | |
column-gap: var(--spacing-large); | |
} | |
.gap-v-3 { | |
row-gap: var(--spacing-large); | |
} | |
.gap-4 { | |
gap: var(--spacing-extra-large); | |
} | |
.gap-h-4 { | |
column-gap: var(--spacing-extra-large); | |
} | |
.gap-v-4 { | |
row-gap: var(--spacing-extra-large); | |
} | |
.gap-5 { | |
gap: var(--spacing-extra-extra-large); | |
} | |
.gap-h-5 { | |
column-gap: var(--spacing-extra-extra-large); | |
} | |
.gap-v-5 { | |
row-gap: var(--spacing-extra-extra-large); | |
} | |
.gap-6 { | |
gap: var(--spacing-extra-extra-extra-large); | |
} | |
.gap-h-6 { | |
column-gap: var(--spacing-extra-extra-extra-large); | |
} | |
.gap-v-6 { | |
row-gap: var(--spacing-extra-extra-extra-large); | |
} |
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.32.12", | |
"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