Sha256: 375ca2ca194058453b30d104eaab0b9712b6226f7b083a46859d38fe239fb334
Contents?: true
Size: 1.01 KB
Versions: 30
Compression:
Stored size: 1.01 KB
Contents
// Susy Box Sizing // ================= // Global Box Sizing // ----------------- // Set a box model globally on all elements. // - [$box]: border-box | content-box // - [$inherit]: true | false @mixin global-box-sizing( $box: susy-get(global-box-sizing), $inherit: false ) { $inspect: $box; @if $inherit { @at-root { html { @include output((box-sizing: $box)); } *, *:before, *:after { box-sizing: inherit; } } } @else { *, *:before, *:after { @include output((box-sizing: $box)); } } @include susy-inspect(global-box-sizing, $inspect); @include update-box-model($box); } // Border Box Sizing // ----------------- // A legacy shortcut... // - [$inherit]: true | false @mixin border-box-sizing( $inherit: false ) { @include global-box-sizing(border-box, $inherit); } // Update Box Model // ---------------- // PRIVATE: Updates global box model setting @mixin update-box-model( $box ) { @if $box != susy-get(global-box-sizing) { @include susy-set(global-box-sizing, $box); } }
Version data entries
30 entries across 30 versions & 7 rubygems