Created
December 13, 2020 18:16
-
-
Save heanfig/1db8c1454df8b2f6cf2cb289c1984f9b 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; | |
} | |
} | |
body{ | |
@include flex; | |
} | |
.body{ | |
@include flex(center); | |
} | |
.body-1{ | |
@include flex(false,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
body { | |
display: flex; | |
} | |
.body { | |
display: flex; | |
justify-content: center; | |
} | |
.body-1 { | |
display: flex; | |
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