Skip to content

Instantly share code, notes, and snippets.

@heanfig
Created December 13, 2020 18:20
Show Gist options
  • Save heanfig/adade15e1ee970780da35b75533d3032 to your computer and use it in GitHub Desktop.
Save heanfig/adade15e1ee970780da35b75533d3032 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@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);
}
.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;
}
{
"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