Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Created January 30, 2016 19:08
Show Gist options
  • Save neutraltone/b332caf31aa66d29abbe to your computer and use it in GitHub Desktop.
Save neutraltone/b332caf31aa66d29abbe to your computer and use it in GitHub Desktop.
An example of using BEM and OCSS for icons
%icon {
content: '';
display: block;
&--open {
@extend %icon;
background-image: url('../img/plus.svg');
}
&--close {
@extend %icon;
background-image: url('../img/cross.svg');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment