Created
July 4, 2020 01:17
-
-
Save migbash/ded417c2abd4015a4198cfd71e44cf73 to your computer and use it in GitHub Desktop.
Simple Flexbox sass @mixin for easier sass visual & code modification
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-config($justify-content: false, $flex: false, $flex-direction: false, $align-items: false) | |
display: flex; | |
@if $justify-content != false | |
justify-content: $justify-content; | |
@if $flex != false | |
flex: $flex; | |
@if $flex-direction != false | |
flex-direction: $flex-direction; | |
@if $align-items != false | |
align-items: $align-items; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment