Created
September 16, 2014 12:35
-
-
Save ReneKriest/2afdc240de402324218a 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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin flex () { | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; | |
} | |
@mixin margin_top_bottom ($margin_top, $margin_bottom, $important_top: false, $important_bottom: false) { | |
@if $important_top { | |
margin-top: $margin_top !important; | |
} @else { | |
margin-top: $margin_top; | |
} | |
@if $important_bottom { | |
margin-bottom: $margin_bottom !important; | |
} @else { | |
margin-bottom: $margin_bottom; | |
} | |
} | |
.test { | |
@include margin_top_bottom (10px, 10px); | |
} | |
.test2 { | |
@include margin_top_bottom (10px, 10px, true); | |
} | |
.test3 { | |
@include margin_top_bottom (10px, 10px, true, true); | |
} | |
.test4 { | |
@include margin_top_bottom (10px, 10px, false, true); | |
} |
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
.test { | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.test2 { | |
margin-top: 10px !important; | |
margin-bottom: 10px; | |
} | |
.test3 { | |
margin-top: 10px !important; | |
margin-bottom: 10px !important; | |
} | |
.test4 { | |
margin-top: 10px; | |
margin-bottom: 10px !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment