Skip to content

Instantly share code, notes, and snippets.

@briansteeleca
Last active August 29, 2015 14:06
Show Gist options
  • Save briansteeleca/5dd6975ae21ec4550c71 to your computer and use it in GitHub Desktop.
Save briansteeleca/5dd6975ae21ec4550c71 to your computer and use it in GitHub Desktop.
My own mixins #mixins #sass
/* 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