Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Created January 15, 2016 22:09
Show Gist options
  • Select an option

  • Save starryeyez024/7b73f2c9275c168d7bfb to your computer and use it in GitHub Desktop.

Select an option

Save starryeyez024/7b73f2c9275c168d7bfb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@import "breakpoint";
@import "susy";
// Spacing Variables
$box-padding: 30px;
$vertical-gutter: 30px;
$band-padding: 60px;
$screen-xs-min: 480px;
$screen-sm-min: 768px;
$screen-md-min: 992px;
$screen-lg-min: 1200px;
$screen-xxs-max: $screen-xs-min - 1;
$screen-xs-max: $screen-sm-min - 1;
$screen-sm-max: $screen-md-min - 1;
$screen-md-max: $screen-lg-min - 1;
// deprecated media queries
$bp-xs: $screen-xs-min;
$bp-sm: $screen-sm-min;
$bp-md: $screen-md-min;
$bp-lg: $screen-lg-min;
// Special Layouts, in progress
[data-ux-layout-special="12, 6 6, 8 4"] {
@extend clearfix;
@include breakpoint(max-width $bp-sm - 1px) {
> * {
margin: 0 0 ($vertical-gutter * 2);
&:last-child {
margin-bottom: 0;
}
}
}
//480px and higher
@include breakpoint($bp-xs) {
> *:nth-child(1) {
@include span(6 of 12);
}
> *:nth-child(2) {
@include span(6 of 12 last);
}
}
//768 and higher
@include breakpoint($bp-sm) {
> *:nth-child(1) {
@include span(8 of 12);
}
> *:nth-child(2) {
@include span(4 of 12 last);
}
}
//mobile
> *:nth-child(1) {
@include span(12 of 12);
}
> *:nth-child(2) {
@include span(12 of 12 last);
}
}
@media (max-width: 767px) {
[data-ux-layout-special="12, 6 6, 8 4"] > * {
margin: 0 0 60px;
}
[data-ux-layout-special="12, 6 6, 8 4"] > *:last-child {
margin-bottom: 0;
}
}
@media (min-width: 480px) {
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(1) {
width: 49.15254%;
float: left;
margin-right: 1.69492%;
}
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(2) {
width: 49.15254%;
float: right;
margin-right: 0;
}
}
@media (min-width: 768px) {
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(1) {
width: 66.10169%;
float: left;
margin-right: 1.69492%;
}
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(2) {
width: 32.20339%;
float: right;
margin-right: 0;
}
}
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(1) {
width: 100%;
float: left;
margin-left: 0;
margin-right: 0;
}
[data-ux-layout-special="12, 6 6, 8 4"] > *:nth-child(2) {
width: 100%;
float: right;
margin-right: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment