Skip to content

Instantly share code, notes, and snippets.

@emalgholzad
Created April 24, 2018 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emalgholzad/6fc185bf731fd2cf16ebc87a93569fb2 to your computer and use it in GitHub Desktop.
Save emalgholzad/6fc185bf731fd2cf16ebc87a93569fb2 to your computer and use it in GitHub Desktop.
Outline BEMIT
/**
* Outline all classes.
*/
[class] {
outline: 5px solid lightgrey;
}
/**
* Outline all BEM Elements.
*/
[class*="__"] {
outline: 5px solid grey;
}
/**
* Outline all BEM Modifiers.
*/
[class*="--"] {
outline: 5px solid darkgrey;
}
/**
* Outline all Object classes.
*/
[class^="o-"],
[class*=" o-"] {
outline: 5px solid orange;
}
/**
* Outline all Component classes.
*/
[class^="c-"],
[class*=" c-"] {
outline: 5px solid cyan;
}
/**
* Outline all Responsive classes.
*/
[class*="@"] {
outline: 5px solid rosybrown;
}
/**
* Outline all Hack classes.
*/
[class^="_"] {
outline: 5px solid red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment