Skip to content

Commit 5f802eb

Browse files
committed
table-styles css cleanup
1 parent b046f39 commit 5f802eb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/exceptions-table/table-styles.css.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ export default css`
1313
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
1414
background: var(--bg-color, #fff);
1515
}
16+
1617
table {
1718
width: 100%;
1819
border-collapse: separate;
1920
border-spacing: 0;
2021
min-width: 800px;
2122
background: inherit;
2223
}
24+
2325
th,
2426
td {
2527
padding: 0.6em 1em;
@@ -28,6 +30,7 @@ export default css`
2830
vertical-align: middle;
2931
font-size: 0.97em;
3032
}
33+
3134
th {
3235
background: var(--bg-color, #fafbfc);
3336
color: var(--heading-color, #222);
@@ -36,13 +39,18 @@ export default css`
3639
top: 0;
3740
z-index: 1;
3841
}
39-
tr:nth-child(even) {
40-
background: rgba(0, 0, 0, 0.02);
41-
}
42+
4243
tr:hover {
4344
background: rgba(0, 102, 204, 0.07);
4445
transition: background 0.2s;
4546
}
47+
48+
@media (prefers-reduced-motion: reduce) {
49+
tr:hover {
50+
transition: none;
51+
}
52+
}
53+
4654
.hidden-col {
4755
display: none;
4856
}

0 commit comments

Comments
 (0)