// 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; } // Init flexbox @mixin flexbox() { display: flex; flex-flow: row wrap; flex: 0 1 auto; } @mixin transition($which: all, $time: 0.2s, $transition: ease-out) { transition: $which $time $transition; } @mixin full-size() { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }