@patternfly/patternfly 5.0.0-alpha.53 → 5.0.0-alpha.55
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/components/FormControl/form-control.css +164 -214
- package/components/FormControl/form-control.scss +175 -281
- package/components/FormControl/themes/dark/form-control.scss +1 -2
- package/components/NumberInput/number-input.css +0 -1
- package/components/NumberInput/number-input.scss +0 -1
- package/components/Table/table-grid.css +380 -391
- package/components/Table/table-grid.scss +97 -92
- package/components/Table/table-tree-view.css +254 -254
- package/components/Table/table-tree-view.scss +30 -30
- package/components/Table/table.css +232 -232
- package/components/Table/table.scss +265 -255
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -28
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +52 -46
- package/docs/components/DatePicker/examples/DatePicker.md +55 -49
- package/docs/components/FileUpload/examples/FileUpload.md +105 -93
- package/docs/components/Form/examples/Form.md +165 -145
- package/docs/components/FormControl/examples/FormControl.md +439 -475
- package/docs/components/InlineEdit/examples/InlineEdit.md +137 -104
- package/docs/components/InputGroup/examples/InputGroup.md +84 -74
- package/docs/components/Login/examples/Login.md +92 -82
- package/docs/components/NumberInput/examples/NumberInput.md +99 -87
- package/docs/components/Pagination/examples/Pagination.md +100 -89
- package/docs/components/Select/examples/Select.md +77 -68
- package/docs/components/Slider/examples/Slider.md +31 -44
- package/docs/components/Table/examples/Table.md +6839 -3703
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +60 -52
- package/docs/components/Toolbar/examples/Toolbar.md +18 -16
- package/docs/components/Wizard/examples/Wizard.md +280 -245
- package/docs/demos/Alert/examples/Alert.md +69 -57
- package/docs/demos/Button/examples/Button.md +54 -48
- package/docs/demos/Card/examples/Card.md +73 -34
- package/docs/demos/CardView/examples/CardView.md +9 -8
- package/docs/demos/DataList/examples/DataList.md +223 -84
- package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -23
- package/docs/demos/Form/examples/BasicForms.md +247 -227
- package/docs/demos/HelperText/examples/HelperText.md +37 -33
- package/docs/demos/Modal/examples/Modal.md +14 -21
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +11 -10
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -40
- package/docs/demos/Table/examples/Table.md +2765 -1397
- package/docs/demos/Tabs/examples/Tabs.md +203 -50
- package/docs/demos/Toolbar/examples/Toolbar.md +300 -137
- package/docs/demos/Wizard/examples/Wizard.md +448 -392
- package/package.json +3 -3
- package/patternfly-no-globals.css +1027 -1089
- package/patternfly.css +1027 -1089
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/components/FormControl/examples/FormControl.css +0 -5
|
@@ -16,30 +16,30 @@
|
|
|
16
16
|
--#{$table}--border-width--base: var(--#{$pf-global}--BorderWidth--sm);
|
|
17
17
|
|
|
18
18
|
// Caption
|
|
19
|
-
--#{$table}
|
|
20
|
-
--#{$table}
|
|
21
|
-
--#{$table}
|
|
22
|
-
--#{$table}
|
|
23
|
-
--#{$table}
|
|
24
|
-
--#{$table}
|
|
25
|
-
--#{$table}
|
|
26
|
-
--#{$table}
|
|
19
|
+
--#{$table}__caption--FontSize: var(--#{$pf-global}--FontSize--sm);
|
|
20
|
+
--#{$table}__caption--Color: var(--#{$pf-global}--Color--200);
|
|
21
|
+
--#{$table}__caption--PaddingTop: var(--#{$pf-global}--spacer--md);
|
|
22
|
+
--#{$table}__caption--PaddingRight: var(--#{$pf-global}--spacer--lg);
|
|
23
|
+
--#{$table}__caption--PaddingBottom: var(--#{$pf-global}--spacer--md);
|
|
24
|
+
--#{$table}__caption--PaddingLeft: var(--#{$pf-global}--spacer--lg);
|
|
25
|
+
--#{$table}__caption--xl--PaddingRight: var(--#{$pf-global}--spacer--md);
|
|
26
|
+
--#{$table}__caption--xl--PaddingLeft: var(--#{$pf-global}--spacer--md);
|
|
27
27
|
|
|
28
28
|
@media screen and (max-width: $pf-v5-global--breakpoint--xl) {
|
|
29
|
-
--#{$table}
|
|
30
|
-
--#{$table}
|
|
29
|
+
--#{$table}__caption--PaddingRight: var(--#{$table}__caption--xl--PaddingRight);
|
|
30
|
+
--#{$table}__caption--PaddingLeft: var(--#{$table}__caption--xl--PaddingLeft);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// Thead
|
|
34
|
-
--#{$table}--
|
|
35
|
-
--#{$table}--
|
|
34
|
+
--#{$table}__thead--cell--FontSize: var(--#{$pf-global}--FontSize--sm);
|
|
35
|
+
--#{$table}__thead--cell--FontWeight: var(--#{$pf-global}--FontWeight--bold);
|
|
36
36
|
|
|
37
37
|
// Tbody cell
|
|
38
|
-
--#{$table}--
|
|
39
|
-
--#{$table}--
|
|
38
|
+
--#{$table}__tbody--cell--PaddingTop: var(--#{$pf-global}--spacer--lg);
|
|
39
|
+
--#{$table}__tbody--cell--PaddingBottom: var(--#{$pf-global}--spacer--lg);
|
|
40
40
|
|
|
41
41
|
// Tr
|
|
42
|
-
--#{$table}--
|
|
42
|
+
--#{$table}__tr--BoxShadow--top--base: 0 #{pf-size-prem(-3px)} #{pf-size-prem(4px)} #{pf-size-prem(-2px)} rgba(3,3,3,.08);
|
|
43
43
|
|
|
44
44
|
// Th / td shared variables
|
|
45
45
|
--#{$table}--cell--Padding--base: var(--#{$pf-global}--spacer--md);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$table}--cell--first-last-child--PaddingRight: var(--#{$pf-global}--spacer--md);
|
|
55
55
|
--#{$table}--cell--first-last-child--xl--PaddingLeft: var(--#{$pf-global}--spacer--lg);
|
|
56
56
|
--#{$table}--cell--first-last-child--xl--PaddingRight: var(--#{$pf-global}--spacer--lg);
|
|
57
|
-
--#{$table}--
|
|
57
|
+
--#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft: var(--#{$table}--cell--Padding--base);
|
|
58
58
|
|
|
59
59
|
// Default cell variables
|
|
60
60
|
--#{$table}--cell--MinWidth: 0;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
--#{$table}__sort__button--focus__sort-indicator--Color: var(--#{$pf-global}--Color--100);
|
|
194
194
|
|
|
195
195
|
// Help
|
|
196
|
-
--#{$table}--
|
|
196
|
+
--#{$table}__th--m-help--MinWidth: 11ch;
|
|
197
197
|
|
|
198
198
|
// Table header popover
|
|
199
199
|
--#{$table}__column-help--MarginLeft: var(--#{$pf-global}--spacer--xs);
|
|
@@ -225,8 +225,8 @@
|
|
|
225
225
|
--#{$table}__compound-expansion-toggle__button--after--Left: calc(var(--#{$table}__compound-expansion-toggle__button--before--border-width--base) * -1);
|
|
226
226
|
|
|
227
227
|
// Compact table
|
|
228
|
-
--#{$table}--m-
|
|
229
|
-
--#{$table}--m-
|
|
228
|
+
--#{$table}--m-compact__th--PaddingTop: calc(var(--#{$pf-global}--spacer--sm) + var(--#{$pf-global}--spacer--xs));
|
|
229
|
+
--#{$table}--m-compact__th--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
230
230
|
--#{$table}--m-compact--cell--PaddingTop: var(--#{$pf-global}--spacer--sm);
|
|
231
231
|
--#{$table}--m-compact--cell--PaddingRight: var(--#{$pf-global}--spacer--sm);
|
|
232
232
|
--#{$table}--m-compact--cell--PaddingBottom: var(--#{$pf-global}--spacer--sm);
|
|
@@ -249,58 +249,58 @@
|
|
|
249
249
|
--#{$table}__expandable-row--m-expanded--BorderBottomColor: var(--#{$pf-global}--BorderColor--100);
|
|
250
250
|
|
|
251
251
|
// tr clickable
|
|
252
|
-
--#{$table}--
|
|
253
|
-
--#{$table}--
|
|
254
|
-
--#{$table}--
|
|
255
|
-
--#{$table}--
|
|
256
|
-
--#{$table}--
|
|
257
|
-
--#{$table}--
|
|
258
|
-
--#{$table}--
|
|
259
|
-
--#{$table}--
|
|
260
|
-
--#{$table}--
|
|
261
|
-
--#{$table}--
|
|
262
|
-
--#{$table}--
|
|
252
|
+
--#{$table}__tr--m-clickable--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
|
|
253
|
+
--#{$table}__tr--m-clickable--BackgroundColor: transparent;
|
|
254
|
+
--#{$table}__tr--m-clickable--BoxShadow: none;
|
|
255
|
+
--#{$table}__tr--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
|
|
256
|
+
--#{$table}__tr--m-clickable--hover--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
257
|
+
--#{$table}__tr--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
258
|
+
--#{$table}__tr--m-clickable--focus--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
259
|
+
--#{$table}__tr--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
260
|
+
--#{$table}__tr--m-clickable--active--BoxShadow: var(--#{$table}__tr--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
261
|
+
--#{$table}__tr--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
262
|
+
--#{$table}__tr--m-clickable--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
263
263
|
|
|
264
264
|
// tr selected
|
|
265
|
-
--#{$table}--
|
|
266
|
-
--#{$table}--
|
|
267
|
-
--#{$table}--
|
|
268
|
-
--#{$table}--
|
|
269
|
-
--#{$table}--
|
|
270
|
-
--#{$table}--
|
|
271
|
-
--#{$table}--
|
|
272
|
-
--#{$table}--
|
|
273
|
-
--#{$table}--
|
|
265
|
+
--#{$table}__tr--m-selected--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
|
|
266
|
+
--#{$table}__tr--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
267
|
+
--#{$table}__tr--m-selected--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
268
|
+
--#{$table}__tr--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
|
|
269
|
+
--#{$table}__tr--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
|
|
270
|
+
--#{$table}__tr--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
|
|
271
|
+
--#{$table}__tr--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
272
|
+
--#{$table}__tr--m-selected--hover__tr--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
273
|
+
--#{$table}__tr--m-selected__tr--m-selected--hover--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
274
274
|
|
|
275
275
|
// tbody clickable
|
|
276
|
-
--#{$table}--
|
|
277
|
-
--#{$table}--
|
|
278
|
-
--#{$table}--
|
|
279
|
-
--#{$table}--
|
|
280
|
-
--#{$table}--
|
|
281
|
-
--#{$table}--
|
|
282
|
-
--#{$table}--
|
|
283
|
-
--#{$table}--
|
|
284
|
-
--#{$table}--
|
|
285
|
-
--#{$table}--
|
|
286
|
-
--#{$table}--
|
|
287
|
-
--#{$table}--
|
|
276
|
+
--#{$table}__tbody--m-clickable--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
|
|
277
|
+
--#{$table}__tbody--m-clickable--BoxShadow: none;
|
|
278
|
+
--#{$table}__tbody--m-clickable--BackgroundColor: transparent;
|
|
279
|
+
--#{$table}__tbody--m-clickable--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
|
|
280
|
+
--#{$table}__tbody--m-clickable--hover--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
281
|
+
--#{$table}__tbody--m-clickable--hover--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
282
|
+
--#{$table}__tbody--m-clickable--focus--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
283
|
+
--#{$table}__tbody--m-clickable--focus--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
284
|
+
--#{$table}__tbody--m-clickable--active--BoxShadow: var(--#{$table}__tbody--m-clickable--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
285
|
+
--#{$table}__tbody--m-clickable--active--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
286
|
+
--#{$table}__tbody--m-clickable--m-expanded--BorderColor: var(--#{$pf-global}--active-color--400);
|
|
287
|
+
--#{$table}__tbody--m-clickable--m-selected--hover__tr--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
288
288
|
|
|
289
289
|
// tbody selected
|
|
290
|
-
--#{$table}--
|
|
291
|
-
--#{$table}--
|
|
292
|
-
--#{$table}--
|
|
293
|
-
--#{$table}--
|
|
294
|
-
--#{$table}--
|
|
295
|
-
--#{$table}--
|
|
296
|
-
--#{$table}--
|
|
297
|
-
--#{$table}--
|
|
298
|
-
--#{$table}--
|
|
290
|
+
--#{$table}__tbody--m-selected--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
|
|
291
|
+
--#{$table}__tbody--m-selected--BoxShadow--top: var(--#{$table}__tr--BoxShadow--top--base);
|
|
292
|
+
--#{$table}__tbody--m-selected--BoxShadow: var(--#{$table}__tbody--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
293
|
+
--#{$table}__tbody--m-selected--OutlineOffset: calc(-1 * var(--#{$pf-global}--spacer--xs));
|
|
294
|
+
--#{$table}__tbody--m-selected--after--BorderLeftWidth: calc(2 * var(--#{$table}__expandable-row--after--border-width--base));
|
|
295
|
+
--#{$table}__tbody--m-selected--after--BorderLeftColor: var(--#{$pf-global}--active-color--100);
|
|
296
|
+
--#{$table}__tbody--m-selected--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
297
|
+
--#{$table}__tbody--m-selected--hover__tbody--m-selected--BoxShadow: var(--#{$pf-global}--BoxShadow--sm-bottom) inset, var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
298
|
+
--#{$table}__tbody--m-selected__tbody--m-selected--hover--BoxShadow: var(--#{$table}__tr--m-selected--BoxShadow--top), var(--#{$pf-global}--BoxShadow--sm-bottom);
|
|
299
299
|
|
|
300
300
|
// Nested column header
|
|
301
|
-
--#{$table}--
|
|
302
|
-
--#{$table}--
|
|
303
|
-
--#{$table}--
|
|
301
|
+
--#{$table}__thead--m-nested-column-header--button--OutlineOffset: #{pf-size-prem(-3px)};
|
|
302
|
+
--#{$table}__thead--m-nested-column-header__tr--PaddingTop: var(--#{$pf-global}--spacer--xs);
|
|
303
|
+
--#{$table}__thead--m-nested-column-header__tr--PaddingBottom: var(--#{$pf-global}--spacer--xs);
|
|
304
304
|
|
|
305
305
|
// Subhead
|
|
306
306
|
--#{$table}__subhead--Color: var(--#{$pf-global}--Color--200);
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
&.pf-m-sticky-header {
|
|
332
332
|
position: relative;
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
thead:where(.#{$table}__thead) tr:where(.#{$table}__tr) {
|
|
335
335
|
border-bottom: 0;
|
|
336
336
|
|
|
337
337
|
> * {
|
|
@@ -340,8 +340,8 @@
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
// standard sticky headers
|
|
343
|
-
> thead:not(.pf-m-nested-column-header) {
|
|
344
|
-
> tr > * {
|
|
343
|
+
> thead:where(.#{$table}__thead):not(.pf-m-nested-column-header) {
|
|
344
|
+
> tr:where(.#{$table}__tr) > * {
|
|
345
345
|
position: sticky;
|
|
346
346
|
top: 0;
|
|
347
347
|
background: var(--#{$table}--BackgroundColor);
|
|
@@ -370,12 +370,12 @@
|
|
|
370
370
|
background-color: var(--#{$table}--BorderColor);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
tr:not(:nth-last-child(2)) {
|
|
373
|
+
tr:where(.#{$table}__tr):not(:nth-last-child(2)) {
|
|
374
374
|
// stylelint-disable max-nesting-depth
|
|
375
|
-
th,
|
|
376
|
-
td {
|
|
375
|
+
th:where(.#{$table}__th),
|
|
376
|
+
td:where(.#{$table}__td) {
|
|
377
377
|
&:not([rowspan]) {
|
|
378
|
-
--#{$table}--cell--PaddingBottom: var(--#{$table}--
|
|
378
|
+
--#{$table}--cell--PaddingBottom: var(--#{$table}__thead--m-nested-column-header__tr--PaddingBottom);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
// stylelint-enable
|
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
&:not(.pf-m-sticky-header) > .pf-m-nested-column-header {
|
|
387
|
-
tr:not(:last-child) {
|
|
387
|
+
tr:where(.#{$table}__tr):not(:last-child) {
|
|
388
388
|
border-bottom: 0; // hard reset tr borders in nested headers
|
|
389
389
|
|
|
390
390
|
// stylelint-disable max-nesting-depth
|
|
391
|
-
th,
|
|
392
|
-
td {
|
|
391
|
+
th:where(.#{$table}__th),
|
|
392
|
+
td:where(.#{$table}__td) {
|
|
393
393
|
&:not([rowspan]) {
|
|
394
|
-
--#{$table}--cell--PaddingBottom: var(--#{$table}--
|
|
394
|
+
--#{$table}--cell--PaddingBottom: var(--#{$table}__thead--m-nested-column-header__tr--PaddingBottom);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
// stylelint-enable
|
|
@@ -400,11 +400,11 @@
|
|
|
400
400
|
|
|
401
401
|
// For regular and expandable tables
|
|
402
402
|
// stylelint-disable
|
|
403
|
-
&.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), // regular table
|
|
404
|
-
&.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.#{$table}__expandable-row), // expandable table
|
|
403
|
+
&.pf-m-striped:not(.pf-m-expandable) > tbody:where(.#{$table}__tbody) > tr:where(.#{$table}__tr):nth-child(odd), // regular table
|
|
404
|
+
&.pf-m-striped.pf-m-expandable > tbody:where(.#{$table}__tbody):nth-of-type(odd) > tr:where(.#{$table}__tr):not(.#{$table}__expandable-row), // expandable table
|
|
405
405
|
> .pf-m-striped > tr:nth-child(odd), // tbody odd
|
|
406
406
|
> .pf-m-striped-even > tr:nth-child(even), // tbody even
|
|
407
|
-
tr.pf-m-striped { // tr
|
|
407
|
+
tr:where(.#{$table}__tr).pf-m-striped { // tr
|
|
408
408
|
--#{$table}__sticky-column--BackgroundColor: var(--#{$table}--m-striped__tr--BackgroundColor);
|
|
409
409
|
|
|
410
410
|
background: var(--#{$table}--m-striped__tr--BackgroundColor);
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
|
|
414
414
|
// Standard table row (non-expandable)
|
|
415
415
|
// exclude expandable rows
|
|
416
|
-
tr:not(.#{$table}__expandable-row) {
|
|
416
|
+
tr:where(.#{$table}__tr):not(.#{$table}__expandable-row) {
|
|
417
417
|
border-bottom: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
|
|
418
418
|
|
|
419
419
|
// stylelint-disable-next-line
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
// Table cell
|
|
427
|
-
tr > * {
|
|
427
|
+
tr:where(.#{$table}__tr) > * {
|
|
428
428
|
@include pf-v5-hidden-visible(var(--#{$table}--cell--hidden-visible--Display));
|
|
429
429
|
|
|
430
430
|
// set position relative for ::before/::after borders
|
|
@@ -495,32 +495,32 @@
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
// Table caption
|
|
498
|
-
caption {
|
|
499
|
-
padding-top: var(--#{$table}
|
|
500
|
-
padding-bottom: var(--#{$table}
|
|
501
|
-
padding-left: var(--#{$table}
|
|
502
|
-
font-size: var(--#{$table}
|
|
503
|
-
color: var(--#{$table}
|
|
498
|
+
caption:where(.#{$table}__caption) {
|
|
499
|
+
padding-top: var(--#{$table}__caption--PaddingTop);
|
|
500
|
+
padding-bottom: var(--#{$table}__caption--PaddingBottom);
|
|
501
|
+
padding-left: var(--#{$table}__caption--PaddingLeft);
|
|
502
|
+
font-size: var(--#{$table}__caption--FontSize);
|
|
503
|
+
color: var(--#{$table}__caption--Color);
|
|
504
504
|
text-align: left;
|
|
505
505
|
background-color: var(--#{$table}--BackgroundColor);
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
// Table header cell
|
|
509
|
-
thead {
|
|
510
|
-
--#{$table}--cell--FontSize: var(--#{$table}--
|
|
511
|
-
--#{$table}--cell--FontWeight: var(--#{$table}--
|
|
509
|
+
thead:where(.#{$table}__thead) {
|
|
510
|
+
--#{$table}--cell--FontSize: var(--#{$table}__thead--cell--FontSize);
|
|
511
|
+
--#{$table}--cell--FontWeight: var(--#{$table}__thead--cell--FontWeight);
|
|
512
512
|
|
|
513
513
|
vertical-align: bottom;
|
|
514
514
|
|
|
515
515
|
// stylelint-disable
|
|
516
516
|
&.pf-m-nested-column-header {
|
|
517
|
-
button {
|
|
518
|
-
outline-offset: var(--#{$table}--
|
|
517
|
+
button:where(.#{$button}) {
|
|
518
|
+
outline-offset: var(--#{$table}__thead--m-nested-column-header--button--OutlineOffset);
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
th,
|
|
522
|
-
td,
|
|
523
|
-
input {
|
|
521
|
+
th:where(.#{$table}__th),
|
|
522
|
+
td:where(.#{$table}__td),
|
|
523
|
+
input:where(.#{$check}__input) {
|
|
524
524
|
vertical-align: middle;
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -529,15 +529,14 @@
|
|
|
529
529
|
align-items: center;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
tr:not(:first-child) {
|
|
533
|
-
th,
|
|
534
|
-
td {
|
|
532
|
+
tr:where(.#{$table}__tr):not(:first-child) {
|
|
533
|
+
th:where(.#{$table}__th),
|
|
534
|
+
td:where(.#{$table}__td) {
|
|
535
535
|
&:not([rowspan]) {
|
|
536
|
-
--#{$table}--cell--PaddingTop: var(--#{$table}--
|
|
536
|
+
--#{$table}--cell--PaddingTop: var(--#{$table}__thead--m-nested-column-header__tr--PaddingTop);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
|
|
541
540
|
}
|
|
542
541
|
// stylelint-enable
|
|
543
542
|
|
|
@@ -550,18 +549,18 @@
|
|
|
550
549
|
|
|
551
550
|
// Table body cell
|
|
552
551
|
// stylelint-disable
|
|
553
|
-
tbody {
|
|
554
|
-
--#{$table}--cell--PaddingTop: var(--#{$table}--
|
|
555
|
-
--#{$table}--cell--PaddingBottom: var(--#{$table}--
|
|
552
|
+
tbody:where(.#{$table}__tbody) {
|
|
553
|
+
--#{$table}--cell--PaddingTop: var(--#{$table}__tbody--cell--PaddingTop);
|
|
554
|
+
--#{$table}--cell--PaddingBottom: var(--#{$table}__tbody--cell--PaddingBottom);
|
|
556
555
|
|
|
557
|
-
> tr > * {
|
|
556
|
+
> tr:where(.#{$table}__tr) > * {
|
|
558
557
|
overflow-wrap: break-word;
|
|
559
558
|
vertical-align: baseline;
|
|
560
559
|
}
|
|
561
560
|
|
|
562
561
|
// Border treatment
|
|
563
562
|
// using first child as row does not calculate height appropriately
|
|
564
|
-
> tr > :first-child::after {
|
|
563
|
+
> tr:where(.#{$table}__tr) > :first-child::after {
|
|
565
564
|
position: absolute;
|
|
566
565
|
|
|
567
566
|
// offset top to extend above tr border
|
|
@@ -577,7 +576,7 @@
|
|
|
577
576
|
|
|
578
577
|
// Check table cell
|
|
579
578
|
.#{$table}__check {
|
|
580
|
-
input {
|
|
579
|
+
input:where(.#{$check}__input) {
|
|
581
580
|
margin-top: var(--#{$table}__check--input--MarginTop);
|
|
582
581
|
vertical-align: top;
|
|
583
582
|
}
|
|
@@ -607,53 +606,58 @@
|
|
|
607
606
|
min-width: var(--#{$table}__sort--MinWidth);
|
|
608
607
|
}
|
|
609
608
|
|
|
610
|
-
|
|
611
|
-
|
|
609
|
+
:where(.#{$table}__th, .#{$table}__td) {
|
|
610
|
+
&.pf-m-help {
|
|
611
|
+
min-width: var(--#{$table}__th--m-help--MinWidth);
|
|
612
|
+
}
|
|
612
613
|
}
|
|
613
614
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
615
|
+
:where([class*='#{$table}']),
|
|
616
|
+
:where(&) > :is(thead, tbody) {
|
|
617
|
+
@at-root .#{$table} > thead,
|
|
618
|
+
&.pf-m-truncate {
|
|
619
|
+
--#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
|
|
620
|
+
--#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
|
|
621
|
+
--#{$table}--cell--Overflow: hidden;
|
|
622
|
+
--#{$table}--cell--TextOverflow: ellipsis;
|
|
623
|
+
--#{$table}--cell--WhiteSpace: nowrap;
|
|
624
|
+
}
|
|
622
625
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
626
|
+
&.pf-m-wrap {
|
|
627
|
+
--#{$table}--cell--MinWidth: 0;
|
|
628
|
+
--#{$table}--cell--MaxWidth: none;
|
|
629
|
+
--#{$table}--cell--Overflow: visible;
|
|
630
|
+
--#{$table}--cell--TextOverflow: clip;
|
|
631
|
+
--#{$table}--cell--WhiteSpace: normal;
|
|
632
|
+
}
|
|
630
633
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
634
|
+
&.pf-m-nowrap {
|
|
635
|
+
--#{$table}--cell--MinWidth: 0;
|
|
636
|
+
--#{$table}--cell--MaxWidth: none;
|
|
637
|
+
--#{$table}--cell--Overflow: visible;
|
|
638
|
+
--#{$table}--cell--TextOverflow: clip;
|
|
639
|
+
--#{$table}--cell--WhiteSpace: nowrap;
|
|
640
|
+
}
|
|
638
641
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
.#{$table}__icon,
|
|
643
|
+
&.pf-m-fit-content {
|
|
644
|
+
--#{$table}--cell--MinWidth: fit-content;
|
|
645
|
+
--#{$table}--cell--MaxWidth: none;
|
|
646
|
+
--#{$table}--cell--Width: 1%;
|
|
647
|
+
--#{$table}--cell--Overflow: visible;
|
|
648
|
+
--#{$table}--cell--TextOverflow: clip;
|
|
649
|
+
--#{$table}--cell--WhiteSpace: nowrap;
|
|
650
|
+
}
|
|
648
651
|
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
+
&.pf-m-break-word {
|
|
653
|
+
--#{$table}--cell--WordBreak: break-word;
|
|
654
|
+
--#{$table}--cell--WhiteSpace: normal;
|
|
655
|
+
}
|
|
652
656
|
}
|
|
653
657
|
|
|
654
658
|
// stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
|
|
655
|
-
&.pf-m-no-border-rows > tbody {
|
|
656
|
-
> tr {
|
|
659
|
+
&.pf-m-no-border-rows > tbody:where(.#{$table}__tbody) {
|
|
660
|
+
> tr:where(.#{$table}__tr) {
|
|
657
661
|
border-bottom: 0;
|
|
658
662
|
|
|
659
663
|
> :first-child::after {
|
|
@@ -675,120 +679,128 @@
|
|
|
675
679
|
}
|
|
676
680
|
|
|
677
681
|
// tr clickable
|
|
678
|
-
tr
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
tr:where(.#{$table}__tr) {
|
|
683
|
+
&.pf-m-clickable {
|
|
684
|
+
cursor: pointer;
|
|
685
|
+
background-color: var(--#{$table}__tr--m-clickable--BackgroundColor);
|
|
686
|
+
outline-offset: var(--#{$table}__tr--m-clickable--OutlineOffset);
|
|
687
|
+
box-shadow: var(--#{$table}__tr--m-clickable--BoxShadow);
|
|
688
|
+
|
|
689
|
+
&:hover,
|
|
690
|
+
&:focus,
|
|
691
|
+
&:active {
|
|
692
|
+
// stylelint-disable max-nesting-depth
|
|
693
|
+
&:not(.pf-m-selected) + tr:where(.#{$table}__tr).pf-m-selected {
|
|
694
|
+
box-shadow: var(--#{$table}__tr--m-clickable--m-selected--BoxShadow);
|
|
695
|
+
}
|
|
696
|
+
// stylelint-enable
|
|
697
|
+
}
|
|
683
698
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
&:not(.pf-m-selected) + tr.pf-m-selected {
|
|
688
|
-
box-shadow: var(--#{$table}--tr--m-clickable--m-selected--BoxShadow);
|
|
699
|
+
&:hover {
|
|
700
|
+
--#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--hover--BoxShadow);
|
|
701
|
+
--#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--hover--BackgroundColor);
|
|
689
702
|
}
|
|
690
|
-
}
|
|
691
703
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
704
|
+
&:focus {
|
|
705
|
+
--#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--focus--BoxShadow);
|
|
706
|
+
--#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--focus--BackgroundColor);
|
|
707
|
+
}
|
|
696
708
|
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
709
|
+
&:active {
|
|
710
|
+
--#{$table}__tr--m-clickable--BoxShadow: var(--#{$table}__tr--m-clickable--active--BoxShadow);
|
|
711
|
+
--#{$table}__tr--m-clickable--BackgroundColor: var(--#{$table}__tr--m-clickable--active--BackgroundColor);
|
|
712
|
+
}
|
|
700
713
|
}
|
|
701
714
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
--#{$table}--
|
|
705
|
-
|
|
706
|
-
}
|
|
715
|
+
// tr selected
|
|
716
|
+
&.pf-m-selected {
|
|
717
|
+
--#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tr--m-selected--after--BorderLeftWidth);
|
|
718
|
+
--#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tr--m-selected--after--BorderLeftColor);
|
|
707
719
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
720
|
+
position: relative;
|
|
721
|
+
background-color: var(--#{$table}__tr--m-selected--BackgroundColor);
|
|
722
|
+
outline-offset: var(--#{$table}__tr--m-selected--OutlineOffset);
|
|
723
|
+
box-shadow: var(--#{$table}__tr--m-selected--BoxShadow);
|
|
712
724
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
box-shadow: var(--#{$table}--tr--m-selected--BoxShadow);
|
|
725
|
+
& + tr:where(.#{$table}__tr).pf-m-selected {
|
|
726
|
+
box-shadow: var(--#{$table}__tr--m-selected--m-selected--BoxShadow);
|
|
727
|
+
}
|
|
717
728
|
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
729
|
+
& + tr:where(.#{$table}__tr).pf-m-selected:hover {
|
|
730
|
+
box-shadow: var(--#{$table}__tr--m-selected__tr--m-selected--hover--BoxShadow);
|
|
731
|
+
}
|
|
721
732
|
|
|
722
|
-
|
|
723
|
-
|
|
733
|
+
&:hover + tr:where(.#{$table}__tr).pf-m-selected {
|
|
734
|
+
box-shadow: var(--#{$table}__tr--m-selected--hover__tr--m-selected--BoxShadow);
|
|
735
|
+
}
|
|
724
736
|
}
|
|
725
737
|
|
|
726
|
-
|
|
727
|
-
|
|
738
|
+
&.pf-m-first-cell-offset-reset {
|
|
739
|
+
--#{$table}--cell--first-last-child--PaddingLeft: var(--#{$table}__tr--m-first-cell-offset-reset--cell--PaddingLeft);
|
|
728
740
|
}
|
|
729
741
|
}
|
|
730
742
|
|
|
731
|
-
tr.pf-m-first-cell-offset-reset {
|
|
732
|
-
--#{$table}--cell--first-last-child--PaddingLeft: var(--#{$table}--tr--m-first-cell-offset-reset--cell--PaddingLeft);
|
|
733
|
-
}
|
|
734
|
-
|
|
735
743
|
// tbody clickable
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
744
|
+
// stylelint-disable no-duplicate-selectors
|
|
745
|
+
tbody:where(.#{$table}__tbody) {
|
|
746
|
+
&.pf-m-clickable {
|
|
747
|
+
cursor: pointer;
|
|
748
|
+
background-color: var(--#{$table}__tbody--m-clickable--BackgroundColor);
|
|
749
|
+
outline-offset: var(--#{$table}__tbody--m-clickable--OutlineOffset);
|
|
750
|
+
box-shadow: var(--#{$table}__tbody--m-clickable--BoxShadow);
|
|
751
|
+
|
|
752
|
+
&.pf-m-expanded:not(.pf-m-selected) {
|
|
753
|
+
--#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-clickable--m-expanded--BorderColor);
|
|
754
|
+
}
|
|
745
755
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
756
|
+
&:hover,
|
|
757
|
+
&:focus,
|
|
758
|
+
&:active {
|
|
759
|
+
// stylelint-disable max-nesting-depth
|
|
760
|
+
&:not(.pf-m-selected) + tbody:where(.#{$table}__tbody).pf-m-selected {
|
|
761
|
+
box-shadow: var(--#{$table}__tbody--m-clickable--m-selected--hover__tr--BoxShadow);
|
|
762
|
+
}
|
|
763
|
+
// stylelint-enable
|
|
751
764
|
}
|
|
752
|
-
}
|
|
753
765
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
766
|
+
&:hover {
|
|
767
|
+
--#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--hover--BoxShadow);
|
|
768
|
+
--#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--hover--BackgroundColor);
|
|
769
|
+
}
|
|
758
770
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
771
|
+
&:focus {
|
|
772
|
+
--#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--focus--BoxShadow);
|
|
773
|
+
--#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--focus--BackgroundColor);
|
|
774
|
+
}
|
|
763
775
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
776
|
+
&:active {
|
|
777
|
+
--#{$table}__tbody--m-clickable--BoxShadow: var(--#{$table}__tbody--m-clickable--active--BoxShadow);
|
|
778
|
+
--#{$table}__tbody--m-clickable--BackgroundColor: var(--#{$table}__tbody--m-clickable--active--BackgroundColor);
|
|
779
|
+
}
|
|
767
780
|
}
|
|
768
|
-
}
|
|
769
781
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
782
|
+
// tbody selected
|
|
783
|
+
&.pf-m-selected {
|
|
784
|
+
--#{$table}__expandable-row--after--BorderLeftWidth: var(--#{$table}__tbody--m-selected--after--BorderLeftWidth);
|
|
785
|
+
--#{$table}__expandable-row--after--BorderColor: var(--#{$table}__tbody--m-selected--after--BorderLeftColor);
|
|
774
786
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
787
|
+
background-color: var(--#{$table}__tbody--m-selected--BackgroundColor);
|
|
788
|
+
outline-offset: var(--#{$table}__tbody--m-selected--OutlineOffset);
|
|
789
|
+
box-shadow: var(--#{$table}__tbody--m-selected--BoxShadow);
|
|
778
790
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
791
|
+
& + tbody:where(.#{$table}__tbody).pf-m-selected {
|
|
792
|
+
--#{$table}__tbody--m-selected--BoxShadow: var(--#{$table}__tbody--m-selected--m-selected--BoxShadow);
|
|
793
|
+
}
|
|
782
794
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
795
|
+
& + tbody:where(.#{$table}__tbody).pf-m-selected:hover {
|
|
796
|
+
box-shadow: var(--#{$table}__tbody--m-selected__tbody--m-selected--hover--BoxShadow);
|
|
797
|
+
}
|
|
786
798
|
|
|
787
|
-
|
|
788
|
-
|
|
799
|
+
&:hover + tbody:where(.#{$table}__tbody).pf-m-selected {
|
|
800
|
+
box-shadow: var(--#{$table}__tbody--m-selected--hover__tbody--m-selected--BoxShadow);
|
|
801
|
+
}
|
|
789
802
|
}
|
|
790
803
|
}
|
|
791
|
-
// stylelint-enable
|
|
792
804
|
|
|
793
805
|
&.pf-m-drag-over {
|
|
794
806
|
overflow-anchor: none;
|
|
@@ -891,28 +903,26 @@
|
|
|
891
903
|
min-width: auto;
|
|
892
904
|
}
|
|
893
905
|
|
|
894
|
-
|
|
895
|
-
.#{$table}
|
|
896
|
-
.#{$table}
|
|
897
|
-
.#{$table} th.pf-m-nowrap & {
|
|
906
|
+
.#{$table} thead:where(.#{$table}__thead).pf-m-nowrap &,
|
|
907
|
+
.#{$table} tr:where(.#{$table}__tr).pf-m-nowrap &,
|
|
908
|
+
.#{$table} th:where(.#{$table}__th).pf-m-nowrap & {
|
|
898
909
|
grid-template-columns: min-content max-content;
|
|
899
910
|
}
|
|
900
911
|
|
|
901
|
-
.#{$table} thead.pf-m-fit-content &,
|
|
902
|
-
.#{$table} tr.pf-m-fit-content &,
|
|
903
|
-
.#{$table} th.pf-m-fit-content & {
|
|
912
|
+
.#{$table} thead:where(.#{$table}__thead).pf-m-fit-content &,
|
|
913
|
+
.#{$table} tr:where(.#{$table}__tr).pf-m-fit-content &,
|
|
914
|
+
.#{$table} th:where(.#{$table}__th).pf-m-fit-content & {
|
|
904
915
|
grid-template-columns: fit-content max-content;
|
|
905
916
|
}
|
|
906
917
|
|
|
907
|
-
.#{$table} thead.pf-m-wrap &,
|
|
908
|
-
.#{$table} tr.pf-m-wrap &,
|
|
909
|
-
.#{$table} th.pf-m-wrap &,
|
|
910
|
-
.#{$table} thead.pf-m-truncate &,
|
|
911
|
-
.#{$table} tr.pf-m-truncate &,
|
|
912
|
-
.#{$table} th.pf-m-truncate & {
|
|
918
|
+
.#{$table} thead:where(.#{$table}__thead).pf-m-wrap &,
|
|
919
|
+
.#{$table} tr:where(.#{$table}__tr).pf-m-wrap &,
|
|
920
|
+
.#{$table} th:where(.#{$table}__th).pf-m-wrap &,
|
|
921
|
+
.#{$table} thead:where(.#{$table}__thead).pf-m-truncate &,
|
|
922
|
+
.#{$table} tr:where(.#{$table}__tr).pf-m-truncate &,
|
|
923
|
+
.#{$table} th:where(.#{$table}__th).pf-m-truncate & {
|
|
913
924
|
grid-template-columns: auto max-content;
|
|
914
925
|
}
|
|
915
|
-
// stylelint-enable
|
|
916
926
|
}
|
|
917
927
|
|
|
918
928
|
// Minimize padding
|
|
@@ -928,7 +938,7 @@
|
|
|
928
938
|
.#{$table} .#{$table}__toggle,
|
|
929
939
|
.#{$table} .#{$table}__action,
|
|
930
940
|
.#{$table} .#{$table}__favorite,
|
|
931
|
-
.#{$table} th.pf-m-favorite,
|
|
941
|
+
.#{$table} th:where(.#{$table}__th).pf-m-favorite,
|
|
932
942
|
.#{$table} .#{$table}__inline-edit-action,
|
|
933
943
|
.#{$table} .#{$table}__draggable {
|
|
934
944
|
--#{$table}--cell--MinWidth: 0;
|
|
@@ -1179,7 +1189,7 @@
|
|
|
1179
1189
|
}
|
|
1180
1190
|
|
|
1181
1191
|
&.pf-m-help {
|
|
1182
|
-
--#{$table}--
|
|
1192
|
+
--#{$table}__th--m-help--MinWidth: var(--#{$table}__sort--m-help--MinWidth);
|
|
1183
1193
|
}
|
|
1184
1194
|
|
|
1185
1195
|
&.pf-m-favorite {
|
|
@@ -1210,13 +1220,13 @@
|
|
|
1210
1220
|
box-shadow: 0 0 0 0 transparent;
|
|
1211
1221
|
|
|
1212
1222
|
&,
|
|
1213
|
-
td:first-child::after {
|
|
1223
|
+
td:where(.#{$table}__td):first-child::after {
|
|
1214
1224
|
transition: var(--#{$table}__expandable-row--Transition);
|
|
1215
1225
|
}
|
|
1216
1226
|
|
|
1217
1227
|
// stylelint-disable
|
|
1218
|
-
td,
|
|
1219
|
-
th {
|
|
1228
|
+
td:where(.#{$table}__td),
|
|
1229
|
+
th:where(.#{$table}__th) {
|
|
1220
1230
|
&.pf-m-no-padding {
|
|
1221
1231
|
padding: 0 0 0 var(--#{$table}__expandable-row--after--border-width--base); // set padding-left to adjust for left border.
|
|
1222
1232
|
|
|
@@ -1248,7 +1258,7 @@
|
|
|
1248
1258
|
// Nested table
|
|
1249
1259
|
// ==================================================================
|
|
1250
1260
|
.#{$table} .#{$table} {
|
|
1251
|
-
tr > * {
|
|
1261
|
+
tr:where(.#{$table}__tr) > * {
|
|
1252
1262
|
// First child padding left
|
|
1253
1263
|
&:first-child {
|
|
1254
1264
|
--#{$table}--cell--PaddingLeft: var(--#{$table}--nested--first-last-child--PaddingLeft);
|
|
@@ -1269,8 +1279,7 @@
|
|
|
1269
1279
|
--#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact--cell--PaddingBottom);
|
|
1270
1280
|
--#{$table}--cell--PaddingRight: var(--#{$table}--m-compact--cell--PaddingLeft);
|
|
1271
1281
|
|
|
1272
|
-
|
|
1273
|
-
tr {
|
|
1282
|
+
tr:where(.#{$table}__tr) {
|
|
1274
1283
|
--#{$table}--cell--PaddingLeft: var(--#{$table}--m-compact--cell--PaddingLeft);
|
|
1275
1284
|
--#{$table}--cell--PaddingRight: var(--#{$table}--m-compact--cell--PaddingRight);
|
|
1276
1285
|
|
|
@@ -1293,12 +1302,13 @@
|
|
|
1293
1302
|
}
|
|
1294
1303
|
}
|
|
1295
1304
|
|
|
1296
|
-
// Thead
|
|
1297
|
-
thead {
|
|
1298
|
-
th,
|
|
1305
|
+
// Thead
|
|
1306
|
+
thead:where(.#{$table}__thead) {
|
|
1307
|
+
th:where(.#{$table}__th),
|
|
1308
|
+
td:where(.#{$table}__td),
|
|
1299
1309
|
.#{$table}__toggle {
|
|
1300
|
-
--#{$table}--cell--PaddingTop: var(--#{$table}--m-
|
|
1301
|
-
--#{$table}--cell--PaddingBottom: var(--#{$table}--m-
|
|
1310
|
+
--#{$table}--cell--PaddingTop: var(--#{$table}--m-compact__th--PaddingTop);
|
|
1311
|
+
--#{$table}--cell--PaddingBottom: var(--#{$table}--m-compact__th--PaddingBottom);
|
|
1302
1312
|
}
|
|
1303
1313
|
}
|
|
1304
1314
|
|
|
@@ -1320,7 +1330,7 @@
|
|
|
1320
1330
|
}
|
|
1321
1331
|
|
|
1322
1332
|
// nested tables
|
|
1323
|
-
.#{$table} & tr > * {
|
|
1333
|
+
.#{$table} & tr:where(.#{$table}__tr) > * {
|
|
1324
1334
|
&:first-child {
|
|
1325
1335
|
--#{$table}--cell--PaddingLeft: var(--#{$table}--nested--first-last-child--PaddingLeft);
|
|
1326
1336
|
}
|