Skip to content

Instantly share code, notes, and snippets.

@matthew-andrews
Created January 7, 2014 10:35
Show Gist options
  • Save matthew-andrews/8297598 to your computer and use it in GitHub Desktop.
Save matthew-andrews/8297598 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$use-silent-classes-only: false!default;
@mixin class($class-name) {
@if ($use-silent-classes-only == true) {
%#{$class-name} {
@content
}
} @else {
%#{$class-name},
.#{$class-name} {
@content
}
}
}
@include class(o-grid-something) {
font-weight: bold;
}
// PRODUCT CSS
.even-faster-ft {
@extend %o-grid-something;
}
.even-faster-ft,
.o-grid-something {
font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment