@oruga-ui/theme-oruga 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/oruga.css +2 -2
- package/dist/scss/components/_autocomplete.scss +15 -15
- package/dist/scss/components/_button.scss +174 -165
- package/dist/scss/components/_carousel.scss +199 -177
- package/dist/scss/components/_checkbox.scss +130 -122
- package/dist/scss/components/_collapse.scss +11 -9
- package/dist/scss/components/_datepicker.scss +408 -416
- package/dist/scss/components/_datetimepicker.scss +8 -8
- package/dist/scss/components/_dropdown.scss +224 -206
- package/dist/scss/components/_field.scss +107 -106
- package/dist/scss/components/_icon.scss +44 -40
- package/dist/scss/components/_input.scss +127 -112
- package/dist/scss/components/_loading.scss +27 -24
- package/dist/scss/components/_menu.scss +100 -63
- package/dist/scss/components/_modal.scss +66 -66
- package/dist/scss/components/_notification.scss +146 -134
- package/dist/scss/components/_pagination.scss +227 -198
- package/dist/scss/components/_radio.scss +95 -74
- package/dist/scss/components/_select.scss +143 -120
- package/dist/scss/components/_sidebar.scss +120 -104
- package/dist/scss/components/_skeleton.scss +55 -55
- package/dist/scss/components/_slider.scss +166 -151
- package/dist/scss/components/_steps.scss +300 -287
- package/dist/scss/components/_switch.scss +115 -128
- package/dist/scss/components/_table.scss +363 -330
- package/dist/scss/components/_tabs.scss +295 -280
- package/dist/scss/components/_taginput.scss +95 -93
- package/dist/scss/components/_timepicker.scss +74 -68
- package/dist/scss/components/_tooltip.scss +522 -424
- package/dist/scss/components/_upload.scss +51 -48
- package/dist/scss/oruga.scss +0 -1
- package/dist/scss/utils/_animations.scss +97 -97
- package/dist/scss/utils/_base.scss +31 -14
- package/dist/scss/utils/_helpers.scss +65 -65
- package/dist/scss/utils/_root.scss +37 -44
- package/dist/scss/utils/_variables.scss +44 -44
- package/dist/theme.js +1 -1
- package/package.json +20 -19
|
@@ -6,8 +6,8 @@ $table-background: #f5f5f5 !default;
|
|
|
6
6
|
$table-boder: 1px solid transparent !default;
|
|
7
7
|
$table-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
8
8
|
$table-card-box-shadow:
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
0 2px 3px rgba(var(--#{$prefix}black), 0.1),
|
|
10
|
+
0 0 0 1px rgba(var(--#{$prefix}black), 0.1) !default;
|
|
11
11
|
$table-card-cell-font-weight: 600 !default;
|
|
12
12
|
$table-card-cell-padding: 0 0.5em 0 0 !default;
|
|
13
13
|
$table-card-cell-text-align: left !default;
|
|
@@ -39,386 +39,419 @@ $table-th-color: #363636 !default;
|
|
|
39
39
|
$table-th-detail-width: 14px !default;
|
|
40
40
|
$table-th-font-weight: 600 !default;
|
|
41
41
|
$table-th-padding: 0.5em 0.75em !default;
|
|
42
|
+
$table-pagination-padding: 0.5em 0 !default;
|
|
42
43
|
/* @docs */
|
|
43
44
|
|
|
44
45
|
.o-table {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
&__root {
|
|
58
|
-
position: relative;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&__wrapper {
|
|
62
|
-
transition: opacity $animation-speed-fast $animation-timing;
|
|
63
|
-
position: relative;
|
|
64
|
-
|
|
65
|
-
&--sticky-header {
|
|
66
|
-
height: var(
|
|
67
|
-
--#{$prefix}table-sticky-header-height,
|
|
68
|
-
$table-sticky-header-height
|
|
69
|
-
);
|
|
70
|
-
overflow-y: auto;
|
|
71
|
-
|
|
72
|
-
th {
|
|
73
|
-
position: -webkit-sticky;
|
|
74
|
-
position: sticky;
|
|
75
|
-
left: 0;
|
|
76
|
-
top: 0;
|
|
77
|
-
background: var(
|
|
78
|
-
--#{$prefix}table-background-color,
|
|
79
|
-
$table-background-color
|
|
80
|
-
);
|
|
81
|
-
z-index: calc(
|
|
82
|
-
var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex) + 1
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
46
|
+
display: table;
|
|
47
|
+
width: 100%;
|
|
48
|
+
border-collapse: separate;
|
|
49
|
+
border-spacing: 0;
|
|
50
|
+
border: var(--#{$prefix}table-boder, $table-boder);
|
|
51
|
+
border-radius: var(--#{$prefix}table-border-radius, $table-border-radius);
|
|
52
|
+
background-color: var(
|
|
53
|
+
--#{$prefix}table-background-color,
|
|
54
|
+
$table-background-color
|
|
55
|
+
);
|
|
56
|
+
color: var(--#{$prefix}table-color, $table-color);
|
|
86
57
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
overflow-x: auto;
|
|
90
|
-
max-width: 100%;
|
|
58
|
+
&__root {
|
|
59
|
+
position: relative;
|
|
91
60
|
}
|
|
92
61
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
.o-table__mobile-sort {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// cards
|
|
101
|
-
.o-table {
|
|
102
|
-
background-color: transparent;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
thead {
|
|
106
|
-
tr {
|
|
107
|
-
box-shadow: none;
|
|
108
|
-
border-width: 0;
|
|
62
|
+
&__wrapper {
|
|
63
|
+
transition: opacity $animation-speed-fast $animation-timing;
|
|
64
|
+
position: relative;
|
|
109
65
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
66
|
+
&--sticky-header {
|
|
67
|
+
height: var(
|
|
68
|
+
--#{$prefix}table-sticky-header-height,
|
|
69
|
+
$table-sticky-header-height
|
|
70
|
+
);
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
|
|
73
|
+
th {
|
|
74
|
+
position: -webkit-sticky;
|
|
75
|
+
position: sticky;
|
|
76
|
+
left: 0;
|
|
77
|
+
top: 0;
|
|
78
|
+
background: var(
|
|
79
|
+
--#{$prefix}table-background-color,
|
|
80
|
+
$table-background-color
|
|
81
|
+
);
|
|
82
|
+
z-index: calc(
|
|
83
|
+
var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex) +
|
|
84
|
+
1
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
113
88
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
border: 0;
|
|
119
|
-
}
|
|
89
|
+
&--scrollable {
|
|
90
|
+
-webkit-overflow-scrolling: touch;
|
|
91
|
+
overflow-x: auto;
|
|
92
|
+
max-width: 100%;
|
|
120
93
|
}
|
|
121
|
-
}
|
|
122
94
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
95
|
+
&--mobile {
|
|
96
|
+
overflow-x: auto;
|
|
97
|
+
|
|
98
|
+
.o-table__mobile-sort {
|
|
99
|
+
display: block;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// cards
|
|
103
|
+
.o-table {
|
|
104
|
+
background-color: transparent;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
thead {
|
|
108
|
+
tr {
|
|
109
|
+
box-shadow: none;
|
|
110
|
+
border-width: 0;
|
|
111
|
+
|
|
112
|
+
th {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.o-table-th-checkbox {
|
|
117
|
+
display: block;
|
|
118
|
+
width: 100%;
|
|
119
|
+
text-align: right;
|
|
120
|
+
border: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
tfoot {
|
|
126
|
+
th {
|
|
127
|
+
border: 0;
|
|
128
|
+
display: inherit;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
tr {
|
|
133
|
+
box-shadow: var(
|
|
134
|
+
--#{$prefix}table-card-box-shadow,
|
|
135
|
+
$table-card-box-shadow
|
|
136
|
+
);
|
|
137
|
+
max-width: 100%;
|
|
138
|
+
position: relative;
|
|
139
|
+
display: block;
|
|
140
|
+
|
|
141
|
+
td {
|
|
142
|
+
border: 0;
|
|
143
|
+
display: inherit;
|
|
144
|
+
|
|
145
|
+
&:last-child {
|
|
146
|
+
border-bottom: 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:not(:last-child) {
|
|
151
|
+
margin: var(
|
|
152
|
+
--#{$prefix}table-card-margin,
|
|
153
|
+
$table-card-margin
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:not(.o-table__tr--selected) {
|
|
158
|
+
background: inherit;
|
|
159
|
+
background: $table-background-color;
|
|
160
|
+
|
|
161
|
+
&:hover {
|
|
162
|
+
background-color: inherit;
|
|
163
|
+
background-color: $table-background-color;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.o-table__tr-detail {
|
|
168
|
+
margin: var(
|
|
169
|
+
--#{$prefix}table-card-detail-margin,
|
|
170
|
+
$table-card-detail-margin
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
tr:not(.o-table--detailed):not(.o-table--empty):not(
|
|
176
|
+
.o-table__footer
|
|
177
|
+
) {
|
|
178
|
+
td {
|
|
179
|
+
display: flex;
|
|
180
|
+
width: auto;
|
|
181
|
+
justify-content: space-between;
|
|
182
|
+
text-align: right;
|
|
183
|
+
border-bottom: var(
|
|
184
|
+
--#{$prefix}table-background,
|
|
185
|
+
($table-background 1px solid)
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
&:before {
|
|
189
|
+
content: attr(data-label);
|
|
190
|
+
font-weight: var(
|
|
191
|
+
--#{$prefix}table-card-cell-font-weight,
|
|
192
|
+
$table-card-cell-font-weight
|
|
193
|
+
);
|
|
194
|
+
padding-right: var(
|
|
195
|
+
--#{$prefix}table-card-cell-padding,
|
|
196
|
+
$table-card-cell-padding
|
|
197
|
+
);
|
|
198
|
+
text-align: var(
|
|
199
|
+
--#{$prefix}table-card-cell-text-align,
|
|
200
|
+
$table-card-cell-text-align
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
127
205
|
}
|
|
128
|
-
|
|
206
|
+
}
|
|
129
207
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
$table-card-box-shadow
|
|
134
|
-
);
|
|
135
|
-
max-width: 100%;
|
|
136
|
-
position: relative;
|
|
137
|
-
display: block;
|
|
208
|
+
&__mobile-sort {
|
|
209
|
+
display: none;
|
|
210
|
+
}
|
|
138
211
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
212
|
+
&__th {
|
|
213
|
+
vertical-align: top;
|
|
214
|
+
text-align: left;
|
|
215
|
+
position: relative;
|
|
216
|
+
font-weight: var(
|
|
217
|
+
--#{$prefix}table-th-font-weight,
|
|
218
|
+
$table-th-font-weight
|
|
219
|
+
);
|
|
220
|
+
color: var(--#{$prefix}table-th-color, $table-th-color);
|
|
221
|
+
border-bottom: var(--#{$prefix}table-th-border, $table-th-border);
|
|
222
|
+
padding: var(--#{$prefix}table-th-padding, $table-th-padding);
|
|
142
223
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
224
|
+
&--centered {
|
|
225
|
+
text-align: center;
|
|
146
226
|
}
|
|
147
227
|
|
|
148
|
-
|
|
149
|
-
|
|
228
|
+
&--right {
|
|
229
|
+
text-align: right;
|
|
150
230
|
}
|
|
151
231
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
&:hover {
|
|
157
|
-
background-color: inherit;
|
|
158
|
-
background-color: $table-background-color;
|
|
159
|
-
}
|
|
232
|
+
&__sort-icon {
|
|
233
|
+
position: absolute;
|
|
234
|
+
right: 0;
|
|
160
235
|
}
|
|
161
236
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
tr:not(.o-table--detailed):not(.o-table--empty):not(.o-table__footer) {
|
|
171
|
-
td {
|
|
172
|
-
display: flex;
|
|
173
|
-
width: auto;
|
|
174
|
-
justify-content: space-between;
|
|
175
|
-
text-align: right;
|
|
176
|
-
border-bottom: var(
|
|
177
|
-
--#{$prefix}table-background,
|
|
178
|
-
($table-background 1px solid)
|
|
179
|
-
);
|
|
180
|
-
|
|
181
|
-
&:before {
|
|
182
|
-
content: attr(data-label);
|
|
183
|
-
font-weight: var(
|
|
184
|
-
--#{$prefix}table-card-cell-font-weight,
|
|
185
|
-
$table-card-cell-font-weight
|
|
237
|
+
&-checkbox {
|
|
238
|
+
width: var(
|
|
239
|
+
--#{$prefix}table-th-checkbox-width,
|
|
240
|
+
$table-th-checkbox-width
|
|
186
241
|
);
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&-current-sort {
|
|
245
|
+
border-color: var(
|
|
246
|
+
--#{$prefix}table-current-sort-border-color,
|
|
247
|
+
$table-current-sort-border-color
|
|
190
248
|
);
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
249
|
+
font-weight: var(
|
|
250
|
+
--#{$prefix}table-current-sort-font-weight,
|
|
251
|
+
$table-current-sort-font-weight
|
|
194
252
|
);
|
|
195
|
-
}
|
|
196
253
|
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&__mobile-sort {
|
|
202
|
-
display: none;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&__th {
|
|
206
|
-
vertical-align: top;
|
|
207
|
-
text-align: left;
|
|
208
|
-
position: relative;
|
|
209
|
-
font-weight: var(--#{$prefix}table-th-font-weight, $table-th-font-weight);
|
|
210
|
-
color: var(--#{$prefix}table-th-color, $table-th-color);
|
|
211
|
-
border-bottom: var(--#{$prefix}table-th-border, $table-th-border);
|
|
212
|
-
padding: var(--#{$prefix}table-th-padding, $table-th-padding);
|
|
213
|
-
|
|
214
|
-
&--centered {
|
|
215
|
-
text-align: center;
|
|
216
|
-
}
|
|
217
254
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
255
|
+
&--sortable {
|
|
256
|
+
cursor: pointer;
|
|
221
257
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
258
|
+
&:hover {
|
|
259
|
+
border-color: var(
|
|
260
|
+
--#{$prefix}table-current-sort-hover-border-color,
|
|
261
|
+
$table-current-sort-hover-border-color
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
226
265
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
266
|
+
&--sticky {
|
|
267
|
+
position: -webkit-sticky;
|
|
268
|
+
position: sticky;
|
|
269
|
+
left: 0;
|
|
270
|
+
top: 0;
|
|
271
|
+
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
272
|
+
background: var(
|
|
273
|
+
--#{$prefix}table-background-color,
|
|
274
|
+
$table-background-color
|
|
275
|
+
);
|
|
276
|
+
}
|
|
230
277
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
278
|
+
&--unselectable {
|
|
279
|
+
@include unselectable;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&-detailed {
|
|
283
|
+
width: var(
|
|
284
|
+
--#{$prefix}table-th-detail-width,
|
|
285
|
+
$table-th-detail-width
|
|
286
|
+
);
|
|
287
|
+
}
|
|
240
288
|
}
|
|
241
289
|
|
|
242
|
-
|
|
243
|
-
|
|
290
|
+
&__td {
|
|
291
|
+
vertical-align: top;
|
|
292
|
+
text-align: left;
|
|
293
|
+
border-bottom: var(--#{$prefix}table-td-border, $table-td-border);
|
|
294
|
+
padding: var(--#{$prefix}table-td-padding, $table-td-padding);
|
|
295
|
+
|
|
296
|
+
&--sticky {
|
|
297
|
+
position: -webkit-sticky;
|
|
298
|
+
position: sticky;
|
|
299
|
+
left: 0;
|
|
300
|
+
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
301
|
+
background: var(
|
|
302
|
+
--#{$prefix}table-background-color,
|
|
303
|
+
$table-background-color
|
|
304
|
+
);
|
|
305
|
+
}
|
|
244
306
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
$table-current-sort-hover-border-color
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
307
|
+
&--right {
|
|
308
|
+
text-align: right;
|
|
309
|
+
}
|
|
252
310
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
left: 0;
|
|
257
|
-
top: 0;
|
|
258
|
-
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
259
|
-
background: var(
|
|
260
|
-
--#{$prefix}table-background-color,
|
|
261
|
-
$table-background-color
|
|
262
|
-
);
|
|
263
|
-
}
|
|
311
|
+
&--centered {
|
|
312
|
+
text-align: center;
|
|
313
|
+
}
|
|
264
314
|
|
|
265
|
-
|
|
266
|
-
|
|
315
|
+
&-chevron {
|
|
316
|
+
vertical-align: middle;
|
|
317
|
+
width: var(
|
|
318
|
+
--#{$prefix}table-detail-chevron-width,
|
|
319
|
+
$table-detail-chevron-width
|
|
320
|
+
);
|
|
321
|
+
color: var(
|
|
322
|
+
--#{$prefix}table-detail-chevron-color,
|
|
323
|
+
$table-detail-chevron-color
|
|
324
|
+
);
|
|
325
|
+
}
|
|
267
326
|
}
|
|
268
327
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
&__td {
|
|
275
|
-
vertical-align: top;
|
|
276
|
-
text-align: left;
|
|
277
|
-
border-bottom: var(--#{$prefix}table-td-border, $table-td-border);
|
|
278
|
-
padding: var(--#{$prefix}table-td-padding, $table-td-padding);
|
|
279
|
-
|
|
280
|
-
&--sticky {
|
|
281
|
-
position: -webkit-sticky;
|
|
282
|
-
position: sticky;
|
|
283
|
-
left: 0;
|
|
284
|
-
z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
|
|
285
|
-
background: var(
|
|
286
|
-
--#{$prefix}table-background-color,
|
|
287
|
-
$table-background-color
|
|
288
|
-
);
|
|
289
|
-
}
|
|
328
|
+
&__tr {
|
|
329
|
+
&-empty > td {
|
|
330
|
+
text-align: center;
|
|
331
|
+
padding: 2em;
|
|
332
|
+
}
|
|
290
333
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
334
|
+
&-detail {
|
|
335
|
+
box-shadow: var(
|
|
336
|
+
--#{$prefix}table-detail-box-shadow,
|
|
337
|
+
$table-detail-box-shadow
|
|
338
|
+
);
|
|
339
|
+
background: var(
|
|
340
|
+
--#{$prefix}table-detail-background,
|
|
341
|
+
$table-detail-background
|
|
342
|
+
);
|
|
294
343
|
|
|
295
|
-
|
|
296
|
-
|
|
344
|
+
& > td {
|
|
345
|
+
padding: var(
|
|
346
|
+
--#{$prefix}table-detail-padding,
|
|
347
|
+
$table-detail-padding
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
297
351
|
}
|
|
298
352
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
);
|
|
353
|
+
&:focus {
|
|
354
|
+
border-color: var(
|
|
355
|
+
--#{$prefix}table-focus-border-color,
|
|
356
|
+
$table-focus-border-color
|
|
357
|
+
);
|
|
358
|
+
box-shadow: var(
|
|
359
|
+
--#{$prefix}table-focus-box-shadow,
|
|
360
|
+
$table-focus-box-shadow
|
|
361
|
+
);
|
|
309
362
|
}
|
|
310
|
-
}
|
|
311
363
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
$table-focus-box-shadow
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&--bordered {
|
|
324
|
-
tr:last-child {
|
|
325
|
-
td,
|
|
326
|
-
th {
|
|
327
|
-
border: var(--#{$prefix}table-td-border, $table-td-border);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
364
|
+
&--bordered {
|
|
365
|
+
tr:last-child {
|
|
366
|
+
td,
|
|
367
|
+
th {
|
|
368
|
+
border: var(--#{$prefix}table-td-border, $table-td-border);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
330
371
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
&--striped {
|
|
338
|
-
tbody tr:not(.o-table__tr--selected):nth-child(2n) {
|
|
339
|
-
background-color: var(
|
|
340
|
-
--#{$prefix}table-striped-background-color,
|
|
341
|
-
$table-striped-background-color
|
|
342
|
-
);
|
|
372
|
+
td,
|
|
373
|
+
th {
|
|
374
|
+
border: var(--#{$prefix}table-td-border, $table-td-border);
|
|
375
|
+
}
|
|
343
376
|
}
|
|
344
|
-
}
|
|
345
377
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
&--hoverable {
|
|
354
|
-
tbody tr:not(.o-table__tr--selected):hover {
|
|
355
|
-
background-color: var(
|
|
356
|
-
--#{$prefix}table-hoverable-background-color,
|
|
357
|
-
$table-hoverable-background-color
|
|
358
|
-
);
|
|
378
|
+
&--striped {
|
|
379
|
+
tbody tr:not(.o-table__tr--selected):nth-child(2n) {
|
|
380
|
+
background-color: var(
|
|
381
|
+
--#{$prefix}table-striped-background-color,
|
|
382
|
+
$table-striped-background-color
|
|
383
|
+
);
|
|
384
|
+
}
|
|
359
385
|
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&__detail {
|
|
363
|
-
box-shadow: var(
|
|
364
|
-
--#{$prefix}table-detail-box-shadow,
|
|
365
|
-
$table-detail-box-shadow
|
|
366
|
-
);
|
|
367
|
-
background: var(
|
|
368
|
-
--#{$prefix}table-detail-background,
|
|
369
|
-
$table-detail-background
|
|
370
|
-
);
|
|
371
386
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
@each $name, $pair in $colors {
|
|
382
|
-
$color: list.nth($pair, 1);
|
|
383
|
-
$color-invert: list.nth($pair, 2);
|
|
384
|
-
&-#{$name} {
|
|
385
|
-
background-color: $color;
|
|
386
|
-
color: $color-invert;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&__pagination {
|
|
392
|
-
align-items: center;
|
|
393
|
-
justify-content: space-between;
|
|
394
|
-
display: flex;
|
|
395
|
-
|
|
396
|
-
// left - right
|
|
397
|
-
> div {
|
|
398
|
-
flex-basis: auto;
|
|
399
|
-
flex-grow: 0;
|
|
400
|
-
flex-shrink: 0;
|
|
387
|
+
&--narrowed {
|
|
388
|
+
td,
|
|
389
|
+
th {
|
|
390
|
+
padding: var(
|
|
391
|
+
--#{$prefix}table-narrow-padding,
|
|
392
|
+
$table-narrow-padding
|
|
393
|
+
);
|
|
394
|
+
}
|
|
401
395
|
}
|
|
402
396
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
397
|
+
&--hoverable {
|
|
398
|
+
tbody tr:not(.o-table__tr--selected):hover {
|
|
399
|
+
background-color: var(
|
|
400
|
+
--#{$prefix}table-hoverable-background-color,
|
|
401
|
+
$table-hoverable-background-color
|
|
402
|
+
);
|
|
403
|
+
}
|
|
407
404
|
}
|
|
408
405
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
406
|
+
&__tr--selected {
|
|
407
|
+
background-color: $table-row-active-background-color;
|
|
408
|
+
color: $table-row-active-color;
|
|
409
|
+
|
|
410
|
+
@each $name, $pair in $colors {
|
|
411
|
+
$color: list.nth($pair, 1);
|
|
412
|
+
$color-invert: list.nth($pair, 2);
|
|
413
|
+
&-#{$name} {
|
|
414
|
+
background-color: $color;
|
|
415
|
+
color: $color-invert;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
413
419
|
|
|
414
|
-
|
|
420
|
+
&__pagination {
|
|
415
421
|
align-items: center;
|
|
422
|
+
justify-content: space-between;
|
|
416
423
|
display: flex;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
424
|
+
padding: var(
|
|
425
|
+
--#{$prefix}table-pagination-padding,
|
|
426
|
+
$table-pagination-padding
|
|
427
|
+
);
|
|
428
|
+
|
|
429
|
+
// left - right
|
|
430
|
+
> div {
|
|
431
|
+
flex-basis: auto;
|
|
432
|
+
flex-grow: 0;
|
|
433
|
+
flex-shrink: 0;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// left
|
|
437
|
+
> div:first-child {
|
|
438
|
+
align-items: center;
|
|
439
|
+
justify-content: flex-start;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// right
|
|
443
|
+
> div:last-child {
|
|
444
|
+
align-items: center;
|
|
445
|
+
justify-content: flex-end;
|
|
446
|
+
|
|
447
|
+
> div {
|
|
448
|
+
align-items: center;
|
|
449
|
+
display: flex;
|
|
450
|
+
flex-basis: auto;
|
|
451
|
+
flex-grow: 0;
|
|
452
|
+
flex-shrink: 0;
|
|
453
|
+
justify-content: center;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
422
456
|
}
|
|
423
|
-
}
|
|
424
457
|
}
|