grav-theme-libretic/scss/nucleus/mixins/_utilities.scss

25 lines
405 B
SCSS
Raw Permalink Normal View History

2015-01-15 19:15:54 +01:00
// List Reset
%list-reset {
margin: 0;
padding: 0;
list-style: none;
}
// Vertical Centering
%vertical-align {
position: relative;
top: 50%;
@include transform(translateY(-50%));
}
// Columns
@mixin columns($columns) {
width: percentage(1/$columns);
}
// Float with margin variable
@mixin float($direction, $margin: 0) {
float: $direction;
margin-#{opposite-direction($direction)}: $margin;
}