Skip to content

Commit ff8f2dc

Browse files
committed
feat(theme): Add debug.css file
Fixes #249
1 parent 02ddc54 commit ff8f2dc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

themes/debug.css

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* This file can be included in your page to help you debug which `ais-*`
3+
* classes are added to the widgets.
4+
* It will outline every added node and display the class name on hover
5+
**/
6+
[class^=ais-] {
7+
outline: 1px solid red !important;
8+
position:relative;
9+
}
10+
[class^=ais-]:hover:after {
11+
background:red;
12+
background: grey;
13+
color: black;
14+
content:attr(class);
15+
font-size:1rem;
16+
height:20px;
17+
left:0;
18+
padding:0.5rem;
19+
position:absolute;
20+
top:0;
21+
white-space: nowrap;
22+
z-index:10;
23+
}
24+
[class^=ais-] [class^=ais-] {
25+
outline: 1px solid orange !important;
26+
position:relative;
27+
}
28+
[class^=ais-] [class^=ais-]:hover:after {
29+
background: orange;
30+
top:20px;
31+
z-index:100;
32+
}
33+
[class^=ais-] [class^=ais-] [class^=ais-] {
34+
outline: 1px solid yellow !important;
35+
position:relative;
36+
}
37+
[class^=ais-] [class^=ais-] [class^=ais-]:hover:after {
38+
background: yellow;
39+
top:40px;
40+
z-index:1000;
41+
}

0 commit comments

Comments
 (0)