Debian Codegraph @

node/@patternfly/patternfly/components/Table/table-scrollable.scss

raw
1 @use '../../sass-utilities' as *;
2
3 // * Table scrollable
4 @include pf-root($table) {
5 --#{$table}__sticky-cell--MinWidth--base: #{pf-size-prem(140px)};
6 --#{$table}__sticky-cell--MinWidth: var(--#{$table}__sticky-cell--MinWidth--base);
7 --#{$table}__sticky-cell--ZIndex: var(--pf-t--global--z-index--xs);
8 --#{$table}__sticky-cell--InsetInlineEnd: auto;
9 --#{$table}__sticky-cell--InsetInlineStart: auto;
10 --#{$table}__sticky-cell--BackgroundColor: var(--pf-t--global--background--color--sticky--default);
11 --#{$table}__sticky-cell--m-border-right--before--BorderInlineEndWidth: var(--pf-t--global--border--width--divider--default);
12 --#{$table}__sticky-cell--m-border-right--before--BorderInlineEndColor: var(--pf-t--global--border--color--default);
13 --#{$table}__sticky-cell--m-border-left--before--BorderInlineStartWidth: var(--pf-t--global--border--width--divider--default);
14 --#{$table}__sticky-cell--m-border-left--before--BorderInlineStartColor: var(--pf-t--global--border--color--default);
15 --#{$table}__sticky-cell--m-right--InsetInlineEnd: 0;
16 --#{$table}__sticky-cell--m-left--InsetInlineStart: 0;
17 --#{$table}--m-sticky-header__sticky-cell--ZIndex: calc(var(--#{$table}__sticky-cell--ZIndex) + 1);
18 }
19
20 // - Table sticky cell
21 .#{$table} .#{$table}__sticky-cell {
22 position: sticky;
23 inset-inline-start: var(--#{$table}__sticky-cell--InsetInlineStart);
24 inset-inline-end: var(--#{$table}__sticky-cell--InsetInlineEnd);
25 z-index: var(--#{$table}__sticky-cell--ZIndex);
26 min-width: var(--#{$table}__sticky-cell--MinWidth);
27 }
28
29 .#{$table}__sticky-cell {
30 --#{$table}--cell--Overflow: visible;
31 --#{$table}--m-sticky-header--cell--ZIndex: var(--#{$table}--m-sticky-header__sticky-cell--ZIndex);
32
33 background-color: var(--#{$table}__sticky-cell--BackgroundColor);
34 background-clip: padding-box;
35
36 &.pf-m-border-right::before {
37 --#{$table}--cell--m-border-right--before--BorderInlineEndWidth: var(--#{$table}__sticky-cell--m-border-right--before--BorderInlineEndWidth);
38 --#{$table}--cell--m-border-right--before--BorderInlineEndColor: var(--#{$table}__sticky-cell--m-border-right--before--BorderInlineEndColor);
39 }
40
41 &.pf-m-border-left::before {
42 --#{$table}--cell--m-border-left--before--BorderInlineStartWidth: var(--#{$table}__sticky-cell--m-border-left--before--BorderInlineStartWidth);
43 --#{$table}--cell--m-border-left--before--BorderInlineStartColor: var(--#{$table}__sticky-cell--m-border-left--before--BorderInlineStartColor);
44 }
45
46 &.pf-m-right,
47 &.pf-m-inline-end {
48 --#{$table}__sticky-cell--InsetInlineEnd: var(--#{$table}__sticky-cell--m-right--InsetInlineEnd);
49 }
50
51 &.pf-m-left,
52 &.pf-m-inline-start {
53 --#{$table}__sticky-cell--InsetInlineStart: var(--#{$table}__sticky-cell--m-left--InsetInlineStart);
54 }
55 }
56
57 // - Scroll outer wrapper
58 .#{$scroll-outer-wrapper} {
59 --#{$scroll-outer-wrapper}--MinHeight: #{pf-size-prem(400px)};
60 --#{$scroll-outer-wrapper}--MaxHeight: 100%;
61
62 display: flex;
63 flex-direction: column;
64 max-width: 100%;
65 min-height: var(--#{$scroll-outer-wrapper}--MinHeight);
66 max-height: var(--#{$scroll-outer-wrapper}--MaxHeight);
67 overflow: hidden;
68 }
69
70 // - Scroll inner wrapper
71 .#{$scroll-inner-wrapper} {
72 display: flex;
73 flex-direction: column;
74 max-width: 100%;
75 max-height: 100%;
76 overflow: auto;
77 }