File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ export default css`
13
13
box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.04 );
14
14
background : var (--bg-color , # fff );
15
15
}
16
+
16
17
table {
17
18
width : 100% ;
18
19
border-collapse : separate;
19
20
border-spacing : 0 ;
20
21
min-width : 800px ;
21
22
background : inherit;
22
23
}
24
+
23
25
th ,
24
26
td {
25
27
padding : 0.6em 1em ;
@@ -28,6 +30,7 @@ export default css`
28
30
vertical-align : middle;
29
31
font-size : 0.97em ;
30
32
}
33
+
31
34
th {
32
35
background : var (--bg-color , # fafbfc );
33
36
color : var (--heading-color , # 222 );
@@ -36,13 +39,18 @@ export default css`
36
39
top : 0 ;
37
40
z-index : 1 ;
38
41
}
39
- tr : nth-child (even) {
40
- background : rgba (0 , 0 , 0 , 0.02 );
41
- }
42
+
42
43
tr : hover {
43
44
background : rgba (0 , 102 , 204 , 0.07 );
44
45
transition : background 0.2s ;
45
46
}
47
+
48
+ @media (prefers-reduced-motion : reduce) {
49
+ tr : hover {
50
+ transition : none;
51
+ }
52
+ }
53
+
46
54
.hidden-col {
47
55
display : none;
48
56
}
You can’t perform that action at this time.
0 commit comments