2014-07-28 13:35:53 +00:00
|
|
|
// Rem output with px fallback
|
|
|
|
@mixin font-size($sizeValue: 1.6) {
|
2014-08-13 16:38:51 +00:00
|
|
|
font-size: ($sizeValue * 10) + px;
|
|
|
|
font-size: $sizeValue + rem;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Center block
|
|
|
|
@mixin center-block {
|
2014-08-13 16:38:51 +00:00
|
|
|
display: block;
|
2015-01-11 19:23:26 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Clearfix
|
|
|
|
@mixin clearfix() {
|
2014-08-13 16:38:51 +00:00
|
|
|
content: "";
|
|
|
|
display: table;
|
2014-07-28 13:35:53 +00:00
|
|
|
}
|
|
|
|
|
2014-08-18 15:38:19 +00:00
|
|
|
// Clear after (not all clearfix need this also)
|
2014-07-28 13:35:53 +00:00
|
|
|
@mixin clearfix-after() {
|
2014-08-13 16:38:51 +00:00
|
|
|
clear: both;
|
2014-08-13 12:03:05 +00:00
|
|
|
}
|