Skip to content

Instantly share code, notes, and snippets.

@pfulton
Created October 24, 2013 15:15
Show Gist options
  • Save pfulton/7139046 to your computer and use it in GitHub Desktop.
Save pfulton/7139046 to your computer and use it in GitHub Desktop.
An example of using the placeholder selector and @extend in Sass & Compass
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
%module {
background: #fff;
color: #444;
}
.main_module {
@extend %module;
min-height: 3em;
}
.sidebar_module {
@extend %module;
min-height: 2em;
}
.main_module, .sidebar_module {
background: #fff;
color: #444;
}
.main_module {
min-height: 3em;
}
.sidebar_module {
min-height: 2em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment