This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
_s/sass/mixins/_mixins-master.scss

29 lines
599 B
SCSS
Raw Normal View History

// Rem output with px fallback
@mixin font-size($sizeValue: 1) {
font-size: ($sizeValue * 16) * 1px;
font-size: $sizeValue * 1rem;
}
// Center block
@mixin center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
// Clearfix
@mixin clearfix() {
content: "";
display: table;
table-layout: fixed;
}
// Clear after (not all clearfix need this also)
@mixin clearfix-after() {
clear: both;
2014-08-13 12:03:05 +00:00
}
2017-08-01 13:21:13 +00:00
// Column width with margin
@mixin column-width($numberColumns: 3) {
2017-08-23 16:13:49 +00:00
width: map-get( $columns, $numberColumns ) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns );
2017-08-01 13:21:13 +00:00
}