// Rem output with px fallback @mixin font-size($sizeValue: 1) { font-size: ($sizeValue * 10) * 1px; font-size: $sizeValue / 1.6 * 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; } // Column width with margin @mixin column-width($numberColumns: 3) { width: map-get( $columns, $numberColumns ) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns ); } // Fontawesome style @mixin fa-icon() { display: inline-block; font: normal normal normal 14px/1 FontAwesome; // shortening font declaration font-size: inherit; // can't have font-size inherit on line above, so need to override text-rendering: auto; // optimizelegibility throws things off #1094 -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @mixin box-shadow-title() { font-weight: 200; @include font-size(4.2); display: inline; box-shadow: inset 0 -22px 0 rgba(0, 191, 243, 0.08); line-height: 1.5; }