Skip to content

Instantly share code, notes, and snippets.

@jasonmelgoza
Created September 30, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmelgoza/acea88575ef6e5631c1cfdb8a138a410 to your computer and use it in GitHub Desktop.
Save jasonmelgoza/acea88575ef6e5631c1cfdb8a138a410 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
/// 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);
}
div {
display: flex;
flex: 0 0 auto;
flex-direction: row;
align-items: center;
justify-content: center;
}
{
"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