Skip to content

Instantly share code, notes, and snippets.

@rdmurphy
Created September 12, 2014 14:31
Show Gist options
  • Select an option

  • Save rdmurphy/630a385aea63e1ab5cbc to your computer and use it in GitHub Desktop.

Select an option

Save rdmurphy/630a385aea63e1ab5cbc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
$em-base: 16px;
@function em($pxval, $base: $em-base) {
@if unitless($pxval) {
$pxval: $pxval * 1px
}
@if unitless($base) {
$base: $base * 1px;
}
@return ($pxval / $base) * 1em;
}
$grid-columns: 12 !default;
$gutter: em(20);
@mixin columns($columns, $container-columns: $grid-columns) {
display: block;
float: left;
margin-right: $gutter;
&:last-child {
margin-right: 0;
}
}
.story {
@include columns(8);
}
.story {
display: block;
float: left;
margin-right: 1.25em; }
.story:last-child {
margin-right: 0; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment