-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |