forked from mirror/_s
23 lines
366 B
SCSS
23 lines
366 B
SCSS
// Rem output with px fallback
|
|
@mixin font-size($sizeValue: 1) {
|
|
font-size: ($sizeValue * 16) + px;
|
|
font-size: $sizeValue + rem;
|
|
}
|
|
|
|
// Center block
|
|
@mixin center-block {
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
// Clearfix
|
|
@mixin clearfix() {
|
|
content: "";
|
|
display: table;
|
|
}
|
|
|
|
// Clear after (not all clearfix need this also)
|
|
@mixin clearfix-after() {
|
|
clear: both;
|
|
}
|