Last active
August 29, 2015 14:06
-
-
Save briansteeleca/5dd6975ae21ec4550c71 to your computer and use it in GitHub Desktop.
My own mixins #mixins #sass
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
/* My own mixins | |
--------------------------------------------- */ | |
/* make columns display at equal heights within a row */ | |
@mixin col-equal-height { | |
overflow: hidden !important; | |
.col-equal-height { | |
margin-bottom: -99999px !important; | |
padding-bottom: 99999px !important; | |
} | |
} | |
// container must have position | |
@mixin position-center($w, $h, $offsetX, $offsetY) { | |
position: absolute; | |
top: 0 + $offsetY; | |
bottom: 0; | |
left: 0 + $offsetX; | |
right: 0; | |
margin: auto; | |
width: $w; | |
height: $h; | |
} | |
// container must have position | |
@mixin position-full($w, $h, $t, $b, $l, $r) { | |
position: absolute; | |
top: $t; | |
bottom: $b; | |
left: $l; | |
right: $r; | |
margin: auto; | |
width: $w; | |
height: $h; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment