|
3 | 3 | // |
4 | 4 |
|
5 | 5 | .table { |
6 | | - --bs-table-bg: #{$table-bg}; |
7 | | - --bs-table-accent-bg: transparent; |
8 | | - --bs-table-striped-color: #{$table-striped-color}; |
9 | | - --bs-table-striped-bg: #{$table-striped-bg}; |
10 | | - --bs-table-active-color: #{$table-active-color}; |
11 | | - --bs-table-active-bg: #{$table-active-bg}; |
12 | | - --bs-table-hover-color: #{$table-hover-color}; |
13 | | - --bs-table-hover-bg: #{$table-hover-bg}; |
| 6 | + --#{$variable-prefix}table-bg: #{$table-bg}; |
| 7 | + --#{$variable-prefix}table-accent-bg: transparent; |
| 8 | + --#{$variable-prefix}table-striped-color: #{$table-striped-color}; |
| 9 | + --#{$variable-prefix}table-striped-bg: #{$table-striped-bg}; |
| 10 | + --#{$variable-prefix}table-active-color: #{$table-active-color}; |
| 11 | + --#{$variable-prefix}table-active-bg: #{$table-active-bg}; |
| 12 | + --#{$variable-prefix}table-hover-color: #{$table-hover-color}; |
| 13 | + --#{$variable-prefix}table-hover-bg: #{$table-hover-bg}; |
14 | 14 |
|
15 | 15 | width: 100%; |
16 | 16 | margin-bottom: $spacer; |
|
25 | 25 | // stylelint-disable-next-line selector-max-universal |
26 | 26 | > :not(caption) > * > * { |
27 | 27 | padding: $table-cell-padding-y $table-cell-padding-x; |
28 | | - background-color: var(--bs-table-bg); |
29 | | - background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg)); |
| 28 | + background-color: var(--#{$variable-prefix}table-bg); |
| 29 | + background-image: linear-gradient(var(--#{$variable-prefix}table-accent-bg), var(--#{$variable-prefix}table-accent-bg)); |
30 | 30 | border-bottom-width: $table-border-width; |
31 | 31 | } |
32 | 32 |
|
|
99 | 99 |
|
100 | 100 | .table-striped { |
101 | 101 | > tbody > tr:nth-of-type(#{$table-striped-order}) { |
102 | | - --bs-table-accent-bg: var(--bs-table-striped-bg); |
103 | | - color: var(--bs-table-striped-color); |
| 102 | + --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-striped-bg); |
| 103 | + color: var(--#{$variable-prefix}table-striped-color); |
104 | 104 | } |
105 | 105 | } |
106 | 106 |
|
|
109 | 109 | // The `.table-active` class can be added to highlight rows or cells |
110 | 110 |
|
111 | 111 | .table-active { |
112 | | - --bs-table-accent-bg: var(--bs-table-active-bg); |
113 | | - color: var(--bs-table-active-color); |
| 112 | + --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-active-bg); |
| 113 | + color: var(--#{$variable-prefix}table-active-color); |
114 | 114 | } |
115 | 115 |
|
116 | 116 | // Hover effect |
|
119 | 119 |
|
120 | 120 | .table-hover { |
121 | 121 | > tbody > tr:hover { |
122 | | - --bs-table-accent-bg: var(--bs-table-hover-bg); |
123 | | - color: var(--bs-table-hover-color); |
| 122 | + --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg); |
| 123 | + color: var(--#{$variable-prefix}table-hover-color); |
124 | 124 | } |
125 | 125 | } |
126 | 126 |
|
|
0 commit comments