Skip to content

Instantly share code, notes, and snippets.

@juanbzpy
Forked from matt-bailey/gist:3911666
Created February 9, 2013 21:48
Show Gist options
  • Save juanbzpy/4747263 to your computer and use it in GitHub Desktop.
Save juanbzpy/4747263 to your computer and use it in GitHub Desktop.
// Source: http://ianstormtaylor.com/oocss-plus-sass-is-the-best-way-to-css/
// Sass
%separator
border-top: 1px solid black
hr
@extend %separator
.separator
@extend %separator
// Compiled Sass to CSS
hr,
.separator {
border-top: 1px solid black
}
// Less equivalent
.sep {
border-top: 1px solid black;
}
hr,
.separator {
.sep;
}
// Compiled Less to CSS
.sep {
border-top: 1px solid black;
}
hr,
.separator {
border-top: 1px solid black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment