Created
February 12, 2016 18:40
-
-
Save hughker/eefccde63200c80d201a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// ============================================================================= | |
// Media Queries Breakpoints | |
// ============================================================================= | |
// Extra small screen / phone | |
$screen-xs: 480px !default; | |
$screen-xs-min: $screen-xs !default; | |
$screen-phone: $screen-xs-min !default; | |
// Small screen / tablet | |
$screen-sm: 768px !default; | |
$screen-sm-min: $screen-sm !default; | |
$screen-tablet: $screen-sm-min !default; | |
// Medium screen / desktop | |
$screen-md: 992px !default; | |
$screen-md-min: $screen-md !default; | |
$screen-desktop: $screen-md-min !default; | |
// Large screen / wide desktop | |
$screen-lg: 1200px !default; | |
$screen-lg-min: $screen-lg !default; | |
$screen-lg-desktop: $screen-lg-min !default; | |
// So media queries don't overlap when required, provide a maximum | |
$screen-xs-max: ($screen-sm-min - 1) !default; | |
$screen-sm-max: ($screen-md-min - 1) !default; | |
$screen-md-max: ($screen-lg-min - 1) !default; | |
// ============================================================================= | |
// Grid System | |
// ============================================================================= | |
$grid-columns: 12 !default; | |
$grid-gutter-width: 30px !default; | |
// Navbar collapse | |
// Point at which the navbar becomes uncollapsed. | |
$grid-float-breakpoint: $screen-sm-min !default; | |
// Point at which the navbar begins collapsing. | |
$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default; | |
// ============================================================================= | |
// Container Sizes | |
// ============================================================================= | |
// Small screen / tablet aka. `$screen-sm-min` and up. | |
$container-tablet: (720px + $grid-gutter-width) !default; | |
$container-sm: $container-tablet !default; | |
// Medium screen / desktop aka. `$screen-md-min` and up. | |
$container-desktop: (940px + $grid-gutter-width) !default; | |
$container-md: $container-desktop !default; | |
// Large screen / wide desktop aka. `$screen-lg-min` and up. | |
$container-large-desktop: (1140px + $grid-gutter-width) !default; | |
$container-lg: $container-large-desktop !default; | |
// ============================================================================= | |
// Mixins | |
// ============================================================================= | |
@mixin clearfix() { | |
&:before, | |
&:after { | |
content: " "; // 1 | |
display: table; // 2 | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
// ============================================================================= | |
// Block Grid Adapted from Foundation 5 | |
// ============================================================================= | |
[class*="block-grid-"] { | |
display: block; | |
margin: -($grid-gutter-width/2); | |
padding: 0; | |
@include clearfix(); | |
} | |
.block-grid-item { | |
display: inline; | |
margin: 0; | |
padding: ($grid-gutter-width/2); | |
height: auto; | |
float: left; | |
list-style: none; | |
} | |
@mixin block-grid ($per-row) { | |
& > .block-grid-item { | |
width: (100%/$per-row); | |
$nth-equation: #{$per-row}n+1; | |
&:nth-of-type(n) { clear: none; } | |
&:nth-of-type(#{$nth-equation}) { clear: both; } | |
} | |
} | |
@mixin block-grids($size, $columns: $grid-columns) { | |
@for $i from 1 through $columns { | |
.block-grid-#{$size}-#{$i} { | |
@include block-grid($i) | |
} | |
} | |
} | |
@include block-grids(xs); | |
@media (min-width: $screen-sm-min) { @include block-grids(sm) } | |
@media (min-width: $screen-md-min) { @include block-grids(md) } | |
@media (min-width: $screen-lg-min) { @include block-grids(lg) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[class*="block-grid-"] { | |
display: block; | |
margin: -15px; | |
padding: 0; | |
} | |
[class*="block-grid-"]:before, | |
[class*="block-grid-"]:after { | |
content: " "; | |
display: table; | |
} | |
[class*="block-grid-"]:after { | |
clear: both; | |
} | |
.block-grid-item { | |
display: inline; | |
margin: 0; | |
padding: 15px; | |
height: auto; | |
float: left; | |
list-style: none; | |
} | |
.block-grid-xs-1 > .block-grid-item { | |
width: 100%; | |
} | |
.block-grid-xs-1 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-1 > .block-grid-item:nth-of-type(1n+1) { | |
clear: both; | |
} | |
.block-grid-xs-2 > .block-grid-item { | |
width: 50%; | |
} | |
.block-grid-xs-2 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-2 > .block-grid-item:nth-of-type(2n+1) { | |
clear: both; | |
} | |
.block-grid-xs-3 > .block-grid-item { | |
width: 33.33333%; | |
} | |
.block-grid-xs-3 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-3 > .block-grid-item:nth-of-type(3n+1) { | |
clear: both; | |
} | |
.block-grid-xs-4 > .block-grid-item { | |
width: 25%; | |
} | |
.block-grid-xs-4 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-4 > .block-grid-item:nth-of-type(4n+1) { | |
clear: both; | |
} | |
.block-grid-xs-5 > .block-grid-item { | |
width: 20%; | |
} | |
.block-grid-xs-5 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-5 > .block-grid-item:nth-of-type(5n+1) { | |
clear: both; | |
} | |
.block-grid-xs-6 > .block-grid-item { | |
width: 16.66667%; | |
} | |
.block-grid-xs-6 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-6 > .block-grid-item:nth-of-type(6n+1) { | |
clear: both; | |
} | |
.block-grid-xs-7 > .block-grid-item { | |
width: 14.28571%; | |
} | |
.block-grid-xs-7 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-7 > .block-grid-item:nth-of-type(7n+1) { | |
clear: both; | |
} | |
.block-grid-xs-8 > .block-grid-item { | |
width: 12.5%; | |
} | |
.block-grid-xs-8 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-8 > .block-grid-item:nth-of-type(8n+1) { | |
clear: both; | |
} | |
.block-grid-xs-9 > .block-grid-item { | |
width: 11.11111%; | |
} | |
.block-grid-xs-9 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-9 > .block-grid-item:nth-of-type(9n+1) { | |
clear: both; | |
} | |
.block-grid-xs-10 > .block-grid-item { | |
width: 10%; | |
} | |
.block-grid-xs-10 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-10 > .block-grid-item:nth-of-type(10n+1) { | |
clear: both; | |
} | |
.block-grid-xs-11 > .block-grid-item { | |
width: 9.09091%; | |
} | |
.block-grid-xs-11 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-11 > .block-grid-item:nth-of-type(11n+1) { | |
clear: both; | |
} | |
.block-grid-xs-12 > .block-grid-item { | |
width: 8.33333%; | |
} | |
.block-grid-xs-12 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-xs-12 > .block-grid-item:nth-of-type(12n+1) { | |
clear: both; | |
} | |
@media (min-width: 768px) { | |
.block-grid-sm-1 > .block-grid-item { | |
width: 100%; | |
} | |
.block-grid-sm-1 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-1 > .block-grid-item:nth-of-type(1n+1) { | |
clear: both; | |
} | |
.block-grid-sm-2 > .block-grid-item { | |
width: 50%; | |
} | |
.block-grid-sm-2 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-2 > .block-grid-item:nth-of-type(2n+1) { | |
clear: both; | |
} | |
.block-grid-sm-3 > .block-grid-item { | |
width: 33.33333%; | |
} | |
.block-grid-sm-3 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-3 > .block-grid-item:nth-of-type(3n+1) { | |
clear: both; | |
} | |
.block-grid-sm-4 > .block-grid-item { | |
width: 25%; | |
} | |
.block-grid-sm-4 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-4 > .block-grid-item:nth-of-type(4n+1) { | |
clear: both; | |
} | |
.block-grid-sm-5 > .block-grid-item { | |
width: 20%; | |
} | |
.block-grid-sm-5 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-5 > .block-grid-item:nth-of-type(5n+1) { | |
clear: both; | |
} | |
.block-grid-sm-6 > .block-grid-item { | |
width: 16.66667%; | |
} | |
.block-grid-sm-6 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-6 > .block-grid-item:nth-of-type(6n+1) { | |
clear: both; | |
} | |
.block-grid-sm-7 > .block-grid-item { | |
width: 14.28571%; | |
} | |
.block-grid-sm-7 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-7 > .block-grid-item:nth-of-type(7n+1) { | |
clear: both; | |
} | |
.block-grid-sm-8 > .block-grid-item { | |
width: 12.5%; | |
} | |
.block-grid-sm-8 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-8 > .block-grid-item:nth-of-type(8n+1) { | |
clear: both; | |
} | |
.block-grid-sm-9 > .block-grid-item { | |
width: 11.11111%; | |
} | |
.block-grid-sm-9 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-9 > .block-grid-item:nth-of-type(9n+1) { | |
clear: both; | |
} | |
.block-grid-sm-10 > .block-grid-item { | |
width: 10%; | |
} | |
.block-grid-sm-10 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-10 > .block-grid-item:nth-of-type(10n+1) { | |
clear: both; | |
} | |
.block-grid-sm-11 > .block-grid-item { | |
width: 9.09091%; | |
} | |
.block-grid-sm-11 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-11 > .block-grid-item:nth-of-type(11n+1) { | |
clear: both; | |
} | |
.block-grid-sm-12 > .block-grid-item { | |
width: 8.33333%; | |
} | |
.block-grid-sm-12 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-sm-12 > .block-grid-item:nth-of-type(12n+1) { | |
clear: both; | |
} | |
} | |
@media (min-width: 992px) { | |
.block-grid-md-1 > .block-grid-item { | |
width: 100%; | |
} | |
.block-grid-md-1 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-1 > .block-grid-item:nth-of-type(1n+1) { | |
clear: both; | |
} | |
.block-grid-md-2 > .block-grid-item { | |
width: 50%; | |
} | |
.block-grid-md-2 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-2 > .block-grid-item:nth-of-type(2n+1) { | |
clear: both; | |
} | |
.block-grid-md-3 > .block-grid-item { | |
width: 33.33333%; | |
} | |
.block-grid-md-3 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-3 > .block-grid-item:nth-of-type(3n+1) { | |
clear: both; | |
} | |
.block-grid-md-4 > .block-grid-item { | |
width: 25%; | |
} | |
.block-grid-md-4 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-4 > .block-grid-item:nth-of-type(4n+1) { | |
clear: both; | |
} | |
.block-grid-md-5 > .block-grid-item { | |
width: 20%; | |
} | |
.block-grid-md-5 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-5 > .block-grid-item:nth-of-type(5n+1) { | |
clear: both; | |
} | |
.block-grid-md-6 > .block-grid-item { | |
width: 16.66667%; | |
} | |
.block-grid-md-6 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-6 > .block-grid-item:nth-of-type(6n+1) { | |
clear: both; | |
} | |
.block-grid-md-7 > .block-grid-item { | |
width: 14.28571%; | |
} | |
.block-grid-md-7 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-7 > .block-grid-item:nth-of-type(7n+1) { | |
clear: both; | |
} | |
.block-grid-md-8 > .block-grid-item { | |
width: 12.5%; | |
} | |
.block-grid-md-8 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-8 > .block-grid-item:nth-of-type(8n+1) { | |
clear: both; | |
} | |
.block-grid-md-9 > .block-grid-item { | |
width: 11.11111%; | |
} | |
.block-grid-md-9 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-9 > .block-grid-item:nth-of-type(9n+1) { | |
clear: both; | |
} | |
.block-grid-md-10 > .block-grid-item { | |
width: 10%; | |
} | |
.block-grid-md-10 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-10 > .block-grid-item:nth-of-type(10n+1) { | |
clear: both; | |
} | |
.block-grid-md-11 > .block-grid-item { | |
width: 9.09091%; | |
} | |
.block-grid-md-11 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-11 > .block-grid-item:nth-of-type(11n+1) { | |
clear: both; | |
} | |
.block-grid-md-12 > .block-grid-item { | |
width: 8.33333%; | |
} | |
.block-grid-md-12 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-md-12 > .block-grid-item:nth-of-type(12n+1) { | |
clear: both; | |
} | |
} | |
@media (min-width: 1200px) { | |
.block-grid-lg-1 > .block-grid-item { | |
width: 100%; | |
} | |
.block-grid-lg-1 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-1 > .block-grid-item:nth-of-type(1n+1) { | |
clear: both; | |
} | |
.block-grid-lg-2 > .block-grid-item { | |
width: 50%; | |
} | |
.block-grid-lg-2 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-2 > .block-grid-item:nth-of-type(2n+1) { | |
clear: both; | |
} | |
.block-grid-lg-3 > .block-grid-item { | |
width: 33.33333%; | |
} | |
.block-grid-lg-3 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-3 > .block-grid-item:nth-of-type(3n+1) { | |
clear: both; | |
} | |
.block-grid-lg-4 > .block-grid-item { | |
width: 25%; | |
} | |
.block-grid-lg-4 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-4 > .block-grid-item:nth-of-type(4n+1) { | |
clear: both; | |
} | |
.block-grid-lg-5 > .block-grid-item { | |
width: 20%; | |
} | |
.block-grid-lg-5 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-5 > .block-grid-item:nth-of-type(5n+1) { | |
clear: both; | |
} | |
.block-grid-lg-6 > .block-grid-item { | |
width: 16.66667%; | |
} | |
.block-grid-lg-6 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-6 > .block-grid-item:nth-of-type(6n+1) { | |
clear: both; | |
} | |
.block-grid-lg-7 > .block-grid-item { | |
width: 14.28571%; | |
} | |
.block-grid-lg-7 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-7 > .block-grid-item:nth-of-type(7n+1) { | |
clear: both; | |
} | |
.block-grid-lg-8 > .block-grid-item { | |
width: 12.5%; | |
} | |
.block-grid-lg-8 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-8 > .block-grid-item:nth-of-type(8n+1) { | |
clear: both; | |
} | |
.block-grid-lg-9 > .block-grid-item { | |
width: 11.11111%; | |
} | |
.block-grid-lg-9 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-9 > .block-grid-item:nth-of-type(9n+1) { | |
clear: both; | |
} | |
.block-grid-lg-10 > .block-grid-item { | |
width: 10%; | |
} | |
.block-grid-lg-10 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-10 > .block-grid-item:nth-of-type(10n+1) { | |
clear: both; | |
} | |
.block-grid-lg-11 > .block-grid-item { | |
width: 9.09091%; | |
} | |
.block-grid-lg-11 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-11 > .block-grid-item:nth-of-type(11n+1) { | |
clear: both; | |
} | |
.block-grid-lg-12 > .block-grid-item { | |
width: 8.33333%; | |
} | |
.block-grid-lg-12 > .block-grid-item:nth-of-type(n) { | |
clear: none; | |
} | |
.block-grid-lg-12 > .block-grid-item:nth-of-type(12n+1) { | |
clear: both; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment