Skip to content

Commit 816e8f7

Browse files
committed
Fix: Bootstrap styles didn't account for no striping in the table
1 parent 9950d69 commit 816e8f7

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

css/fixedColumns.bootstrap.scss

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1-
tr.even td {
2-
background-color: #ffffff;
3-
}
4-
5-
tr.odd td {
6-
background-color: rgb(249, 249, 249);
7-
}
81

9-
tr.selected td {
10-
background-color: rgb(0, 136, 204);
11-
}
2+
table.dataTable {
3+
thead, tfoot {
4+
th, td {
5+
background-color: white;
6+
}
7+
}
128

13-
thead th {
14-
background-color: white !important;
15-
}
9+
tbody {
10+
tr td {
11+
// Need to provide a background colour, otherwise the fixed elements are
12+
// transparent and unreadable.
13+
background-color: #ffffff;
14+
}
15+
}
1616

17-
tfoot {
18-
th, td {
19-
background-color: white !important;
17+
&.table-striped {
18+
tbody {
19+
tr.odd td {
20+
background-color: rgb(249, 249, 249);
21+
}
22+
}
2023
}
21-
}
2224

23-
th.dtfc-fixed-left,
24-
th.dtfc-fixed-right,
25-
td.dtfc-fixed-left,
26-
td.dtfc-fixed-right {
27-
z-index: 1;
25+
th.dtfc-fixed-left,
26+
th.dtfc-fixed-right,
27+
td.dtfc-fixed-left,
28+
td.dtfc-fixed-right {
29+
z-index: 1;
30+
}
2831
}
2932

3033
div.dtfc-right-top-blocker,
@@ -70,4 +73,4 @@ tr.dt-rowReorder-moving {
7073
td.dtfc-fixed-right:last-child {
7174
border-right: 2px solid #888 !important;
7275
}
73-
}
76+
}

0 commit comments

Comments
 (0)