Last active
August 29, 2015 14:07
-
-
Save tncbbthositg/2f8c156d938081b8d486 to your computer and use it in GitHub Desktop.
Various Flexbox SASS Mixins
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($flex-type: flex) { | |
$flex-type: unquote($flex-type); | |
@include experimental-value(display, $flex-type, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin align-items($alignment) { | |
$alignment: unquote($alignment); | |
@include experimental(align-items, $alignment, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin align-self($alignment) { | |
$alignment: unquote($alignment); | |
@include experimental(align-self, $alignment, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin justify-content($alignment) { | |
$alignment: unquote($alignment); | |
@include experimental(justify-content, $alignment, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin flex-direction($direction) { | |
$direction: unquote($direction); | |
@include experimental(flex-direction, $direction, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin flex-wrap($wrap: wrap) { | |
$wrap: unquote($wrap); | |
@include experimental(flex-wrap, $wrap, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin flex-grow($grow) { | |
$grow: unquote($grow); | |
@include experimental(flex-grow, $grow, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin flex-shrink($shrink) { | |
$shrink: unquote($shrink); | |
@include experimental(flex-shrink, $shrink, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} | |
@mixin flex-basis($basis) { | |
$basis: unquote($basis); | |
@include experimental(flex-basis, $basis, not -moz, -webkit, not -o, -ms, not -khtml, official); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment