Last active
December 14, 2021 19:23
-
-
Save 9ete/8328945e412fda9617d9a6a165632dd3 to your computer and use it in GitHub Desktop.
Short Dynamic Flexbox Mixin, only pass in and account for what you need...
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
@mixin flex($flex-styles: ()) { | |
display: flex; | |
@each $flex-rule, $flex-value in $flex-styles { | |
#{$flex-rule}: #{$flex-value}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment