I saw this code, when i was checking Drupal Omega 4 theme
%container {
@include container;
@include grid-background;
}
what does the '%container' mean? what is the '%' for?
I saw this code, when i was checking Drupal Omega 4 theme
%container {
@include container;
@include grid-background;
}
what does the '%container' mean? what is the '%' for?
It's a placeholder selector. It doesn't do anything on its own but can be extended, like an abstract base class.
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholder_selectors_
SASS
Output
Note
Placeholder selectors have the additional property that they will not show up in the generated CSS, only the selectors that extend them will be included in the output.
More info
http://thesassway.com/intermediate/understanding-placeholder-selectors
Tools
If you want to play around Sass please use - http://sassmeister.com/