Sha256: b99f120f364488a314e031fe989590b326472566e76d045e79750576f39fcaec
Contents?: true
Size: 1.61 KB
Versions: 4
Compression:
Stored size: 1.61 KB
Contents
@mixin container($max-width: $container, $bfs: $base-font-size) { $bfs-length: length($bfs); $bfs-counter: 1; @if length($containers) != 0 { $query: 'min-width'; @if $grids-mobile-first == false { $query: 'max-width'; } $total: length($containers); @if $total > 1 { @for $i from 2 through $total { @include breakpoint((nth(nth($containers, $i), 2) $query)) { $bfs-holder: bfs-finder($query); @if unit(nth(nth($containers, $i), 1)) != '%' and $container-to-ems == true { max-width: base-conversion(nth(nth($containers, $i), 1)) / base-conversion($bfs-holder) * 1em;; } @else { max-width: nth(nth($containers, $i), 1); } } } } @if unit(nth($containers, 1)) != '%' { max-width: breakpoint-to-base-em(nth($containers, 1), nth($bfs, 1)); } @else { max-width: nth($containers, 1); } } @else { @if unit($max-width) != '%' and $container-to-ems == true { max-width: base-conversion($max-width) / base-conversion($bfs) * 1em; } @else { max-width: $max-width; } } // Border box and clearfix @include box-sizing(border-box); *behavior: url('../behaviors/box-sizing/boxsizing.php'); &:before, &:after { content: ""; display: table; } &:after { clear: both; } @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { /* for IE 6/7 */ *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); } /* non-JS fallback */ *zoom: 1; }
Version data entries
4 entries across 4 versions & 1 rubygems