Skip to content

Commit

Permalink
feat(theme): Add debug.css file
Browse files Browse the repository at this point in the history
Fixes #249
  • Loading branch information
pixelastic committed Oct 15, 2015
1 parent 02ddc54 commit ff8f2dc
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions themes/debug.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* This file can be included in your page to help you debug which `ais-*`
* classes are added to the widgets.
* It will outline every added node and display the class name on hover
**/
[class^=ais-] {
outline: 1px solid red !important;
position:relative;
}
[class^=ais-]:hover:after {
background:red;
background: grey;
color: black;
content:attr(class);
font-size:1rem;
height:20px;
left:0;
padding:0.5rem;
position:absolute;
top:0;
white-space: nowrap;
z-index:10;
}
[class^=ais-] [class^=ais-] {
outline: 1px solid orange !important;
position:relative;
}
[class^=ais-] [class^=ais-]:hover:after {
background: orange;
top:20px;
z-index:100;
}
[class^=ais-] [class^=ais-] [class^=ais-] {
outline: 1px solid yellow !important;
position:relative;
}
[class^=ais-] [class^=ais-] [class^=ais-]:hover:after {
background: yellow;
top:40px;
z-index:1000;
}

0 comments on commit ff8f2dc

Please sign in to comment.