Created
June 2, 2022 18:55
-
-
Save harbirchahal/b430f485d847f27978a160c4d908a6af to your computer and use it in GitHub Desktop.
Mixins in scss styles
This file contains hidden or 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($dir: row, $justify: start, $align: start, $wrap: wrap) { | |
display: flex; | |
@if $dir != row { | |
flex-direction: $dir; | |
} | |
@if $wrap != wrap { | |
flex-wrap: $wrap; | |
} | |
@if $justify != start { | |
justify-content: $justify; | |
} | |
@if $align != start { | |
align-items: $align; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment