Created
December 13, 2020 18:20
-
-
Save heanfig/adade15e1ee970780da35b75533d3032 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 flex($justify-content:false, $align-items:false){ | |
display:flex; | |
@if $justify-content{ | |
justify-content:$justify-content; | |
} | |
@if $align-items{ | |
align-items:$align-items; | |
} | |
} | |
.demo-1 { | |
@include flex; | |
} | |
.demo-2 { | |
@include flex(center); | |
} | |
.demo-3 { | |
@include flex(false,center); | |
} | |
.demo-4 { | |
@include flex(center,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
.demo-1 { | |
display: flex; | |
} | |
.demo-2 { | |
display: flex; | |
justify-content: center; | |
} | |
.demo-3 { | |
display: flex; | |
align-items: center; | |
} | |
.demo-4 { | |
display: flex; | |
justify-content: center; | |
align-items: 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