Skip to content

Instantly share code, notes, and snippets.

@una
Last active August 29, 2015 14:19
Show Gist options
  • Save una/ef960c0f19ed741570c2 to your computer and use it in GitHub Desktop.
Save una/ef960c0f19ed741570c2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// Susy (v2.2.2)
// ----
@import "susy";
$breakpoints: (
'break-1': 26.250em,
'break-2': 85.375em
);
@mixin breakpoint($name) {
@if not map-has-key($breakpoints, $name) {
@warn "Invalid breakpoint `#{$name}`.";
}
@else {
@media (min-width: map-get($breakpoints, $name)) {
@content;
}
}
}
@mixin make-layout($num) {
@include span(12);
@if ($num: 6) {
@include span(2 of 12);
}
@include breakpoint(break-1) {
@include span(12/$num of 12);
}
&:last-child {
@include span(12);
@include breakpoint(break-1) {
@include span(last 12/$num of 12);
}
}
}
.layout--sixth {
@include make-layout(6);
}
.layout--sixth {
width: 310.52632%;
float: left;
margin-right: 5.26316%;
width: 15.25424%;
float: left;
margin-right: 1.69492%;
}
@media (min-width: 26.25em) {
.layout--sixth {
width: 15.25424%;
float: left;
margin-right: 1.69492%;
}
}
.layout--sixth:last-child {
width: 310.52632%;
float: left;
margin-right: 5.26316%;
}
@media (min-width: 26.25em) {
.layout--sixth:last-child {
width: 15.25424%;
float: right;
margin-right: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment