Skip to content

Instantly share code, notes, and snippets.

@heanfig
Created December 13, 2020 18:13
Show Gist options
  • Save heanfig/c8144b3e1a1ad2f4055e2025fb3932d8 to your computer and use it in GitHub Desktop.
Save heanfig/c8144b3e1a1ad2f4055e2025fb3932d8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin flex($justify-content:false){
display:flex;
@if $justify-content {
justify-content: $justify-content;
}
}
body{
@include flex;
}
.body{
@include flex(center);
}
body {
display: flex;
}
.body {
display: flex;
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