Created
September 30, 2020 15:57
-
-
Save jasonmelgoza/acea88575ef6e5631c1cfdb8a138a410 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
/// Flex sass mixin | |
/// | |
/// // Example | |
/// .element { | |
/// @include flex($align-items: center, $justify-content: center); | |
/// } | |
/// | |
/// // CSS Output | |
/// .element { | |
/// background-color: #664a20; | |
/// } | |
@mixin flex($display: flex, $flex: 0 0 auto, $flex-direction: row, $align-items: normal, $justify-content: normal) { | |
display: $display; | |
flex: $flex; | |
flex-direction: $flex-direction; | |
align-items: $align-items; | |
justify-content: $justify-content; | |
} | |
.box { | |
@include flex($align-items: center, $justify-content: center); | |
} |
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
div { | |
display: flex; | |
flex: 0 0 auto; | |
flex-direction: row; | |
align-items: center; | |
justify-content: center; | |
} |
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