Skip to content

Instantly share code, notes, and snippets.

@pfulton
Created October 24, 2013 15:11
Show Gist options
  • Save pfulton/7138977 to your computer and use it in GitHub Desktop.
Save pfulton/7138977 to your computer and use it in GitHub Desktop.
An example of using @extend in Sass & Compass.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@import "compass";
.module {
background: #fff;
color: #444;
}
.main-module {
@extend .module;
min-height: 3em;
}
.sidebar-module {
@extend .module;
min-height: 2em;
}
.module, .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