@patternfly/patternfly 6.3.0-prerelease.3 → 6.3.0-prerelease.30
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 +1 -1
- package/assets/images/icon-help.hbs +3 -0
- package/assets/images/icon-outlined-star.hbs +3 -0
- package/assets/images/icon-star.hbs +3 -0
- package/base/patternfly-common.css +46 -11
- package/base/patternfly-common.scss +58 -13
- package/components/Accordion/accordion.css +72 -3
- package/components/Accordion/accordion.scss +78 -6
- package/components/Alert/alert-group.css +52 -31
- package/components/Alert/alert-group.scss +77 -46
- package/components/Button/button.css +154 -6
- package/components/Button/button.scss +160 -8
- package/components/CodeEditor/code-editor.css +3 -0
- package/components/CodeEditor/code-editor.scss +3 -1
- package/components/DualListSelector/dual-list-selector.css +36 -0
- package/components/DualListSelector/dual-list-selector.scss +43 -0
- package/components/ExpandableSection/expandable-section.css +45 -1
- package/components/ExpandableSection/expandable-section.scss +48 -1
- package/components/Form/form.css +40 -1
- package/components/Form/form.scss +47 -1
- package/components/FormControl/form-control.css +16 -0
- package/components/FormControl/form-control.scss +9 -0
- package/components/Menu/menu.css +24 -4
- package/components/Menu/menu.scss +20 -5
- package/components/MenuToggle/menu-toggle.css +38 -4
- package/components/MenuToggle/menu-toggle.scss +48 -3
- package/components/Nav/nav.css +22 -8
- package/components/Nav/nav.scss +22 -9
- package/components/Page/page.css +49 -3
- package/components/Page/page.scss +33 -2
- package/components/Progress/progress.css +16 -0
- package/components/Progress/progress.scss +11 -1
- package/components/ProgressStepper/progress-stepper.scss +1 -0
- package/components/Skeleton/skeleton.css +22 -2
- package/components/Skeleton/skeleton.scss +25 -3
- package/components/Spinner/spinner.css +5 -0
- package/components/Spinner/spinner.scss +6 -0
- package/components/Table/table-grid.css +6 -5
- package/components/Table/table-grid.scss +2 -1
- package/components/Table/table.css +68 -8
- package/components/Table/table.scss +89 -5
- package/components/Tabs/tabs.css +25 -15
- package/components/Tabs/tabs.scss +26 -13
- package/components/TextInputGroup/text-input-group.css +16 -0
- package/components/TextInputGroup/text-input-group.scss +8 -0
- package/components/Timestamp/timestamp.css +4 -0
- package/components/Timestamp/timestamp.scss +7 -0
- package/components/TreeView/tree-view.css +39 -0
- package/components/TreeView/tree-view.scss +42 -2
- package/components/Truncate/truncate.css +6 -0
- package/components/Truncate/truncate.scss +9 -0
- package/components/_index.css +758 -91
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.md +158 -6
- package/docs/components/Card/examples/Card.md +8 -8
- package/docs/components/CodeEditor/examples/CodeEditor.md +26 -2
- package/docs/components/DataList/examples/DataList.md +23 -23
- package/docs/components/Divider/examples/Divider.md +1 -1
- package/docs/components/Drawer/examples/Drawer.md +4 -0
- package/docs/components/DualListSelector/examples/DualListSelector.md +534 -16
- package/docs/components/Form/examples/Form.md +1179 -114
- package/docs/components/Hint/examples/Hint.md +3 -3
- package/docs/components/InlineEdit/examples/InlineEdit.md +2 -2
- package/docs/components/Masthead/examples/masthead.md +90 -12
- package/docs/components/Menu/examples/Menu.md +122 -6
- package/docs/components/MenuToggle/examples/MenuToggle.md +93 -55
- package/docs/components/ModalBox/examples/ModalBox.md +13 -1
- package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
- package/docs/components/Page/examples/Page.md +148 -14
- package/docs/components/Pagination/examples/Pagination.md +12 -12
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
- package/docs/components/Spinner/examples/Spinner.md +10 -0
- package/docs/components/Table/examples/Table.md +9363 -6223
- package/docs/components/Tabs/examples/Tabs.md +1214 -6729
- package/docs/components/Toolbar/examples/Toolbar.md +7 -7
- package/docs/components/Truncate/examples/Truncate.md +53 -10
- package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
- package/docs/demos/Alert/examples/Alert.md +66 -9
- package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
- package/docs/demos/Banner/examples/Banner.md +47 -6
- package/docs/demos/Card/examples/Card.md +5 -62
- package/docs/demos/CardView/examples/CardView.md +24 -5
- package/docs/demos/Dashboard/examples/Dashboard.md +24 -5
- package/docs/demos/DataList/examples/DataList.md +100 -24
- package/docs/demos/DescriptionList/examples/DescriptionList.md +66 -47
- package/docs/demos/Drawer/examples/Drawer.md +110 -53
- package/docs/demos/Form/examples/BasicForms.md +142 -22
- package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
- package/docs/demos/Masthead/examples/Masthead.md +171 -19
- package/docs/demos/Modal/examples/Modal.md +171 -21
- package/docs/demos/Nav/examples/Nav.md +113 -18
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +110 -15
- package/docs/demos/Page/examples/Page.md +661 -40
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -103
- package/docs/demos/Skeleton/examples/Skeleton.md +22 -3
- package/docs/demos/Table/examples/Table.md +504 -175
- package/docs/demos/Tabs/examples/Tabs.md +137 -593
- package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
- package/docs/demos/Wizard/examples/Wizard.md +198 -27
- package/package.json +6 -6
- package/patternfly-base-no-globals.css +45 -11
- package/patternfly-base.css +45 -11
- package/patternfly-no-globals.css +803 -102
- package/patternfly.css +803 -102
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +54 -0
package/components/Page/page.css
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
--pf-v6-c-page--inset: var(--pf-t--global--spacer--inset--page-chrome);
|
|
4
4
|
--pf-v6-c-page--c-masthead--ZIndex: var(--pf-t--global--z-index--md);
|
|
5
5
|
--pf-v6-c-page__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
|
|
6
|
-
--pf-v6-c-page__sidebar--Width: 18.125rem;
|
|
7
|
-
--pf-v6-c-page__sidebar--
|
|
6
|
+
--pf-v6-c-page__sidebar--Width--base: 18.125rem;
|
|
7
|
+
--pf-v6-c-page__sidebar--Width: var(--pf-v6-c-page__sidebar--Width--base);
|
|
8
|
+
--pf-v6-c-page__sidebar--xl--Width: var(--pf-v6-c-page__sidebar--Width--base);
|
|
8
9
|
--pf-v6-c-page__sidebar--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
9
10
|
--pf-v6-c-page__sidebar--BoxShadow: none;
|
|
10
11
|
--pf-v6-c-page__sidebar--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--default);
|
|
@@ -110,6 +111,51 @@
|
|
|
110
111
|
grid-template-columns: var(--pf-v6-c-page__sidebar--Width) 1fr;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
114
|
+
.pf-v6-c-page > .pf-v6-c-masthead .pf-v6-c-masthead__toggle .pf-v6-c-button.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
115
|
+
--pf-v6-c-button--hamburger-icon--top--path: var(--pf-v6-c-button--hamburger-icon--top--collapse--path);
|
|
116
|
+
--pf-v6-c-button--hamburger-icon--arrow--path: var(--pf-v6-c-button--hamburger-icon--arrow--collapse--path);
|
|
117
|
+
--pf-v6-c-button--hamburger-icon--bottom--path: var(--pf-v6-c-button--hamburger-icon--bottom--collapse--path);
|
|
118
|
+
--pf-v6-c-button__icon--TransitionDelay: 0s;
|
|
119
|
+
--pf-v6-c-button__icon--ScaleX: var(--pf-v6-c-button--m-hamburger__icon--m-expand--ScaleX);
|
|
120
|
+
--pf-v6-c-button--hover__icon--TransitionDelay: 0s;
|
|
121
|
+
--pf-v6-c-button--hover__icon--ScaleX: var(--pf-v6-c-button--m-hamburger__icon--m-expand--ScaleX);
|
|
122
|
+
}
|
|
123
|
+
.pf-v6-c-page:where(:has(> .pf-v6-c-page__sidebar.pf-m-expanded)) > .pf-v6-c-masthead .pf-v6-c-masthead__toggle :is(.pf-v6-c-button.pf-m-hamburger, .pf-v6-c-button.pf-m-hamburger:hover, .pf-v6-c-button.pf-m-hamburger:focus-visible) {
|
|
124
|
+
--pf-v6-c-button--hamburger-icon--top--path: var(--pf-v6-c-button--hamburger-icon--top--collapse--path);
|
|
125
|
+
--pf-v6-c-button--hamburger-icon--arrow--path: var(--pf-v6-c-button--hamburger-icon--arrow--collapse--path);
|
|
126
|
+
--pf-v6-c-button--hamburger-icon--bottom--path: var(--pf-v6-c-button--hamburger-icon--bottom--collapse--path);
|
|
127
|
+
--pf-v6-c-button__icon--TransitionDelay: 0s;
|
|
128
|
+
--pf-v6-c-button__icon--ScaleX: 1;
|
|
129
|
+
--pf-v6-c-button--hover__icon--TransitionDelay: 0s;
|
|
130
|
+
--pf-v6-c-button--hover__icon--ScaleX: 1;
|
|
131
|
+
}
|
|
132
|
+
@media (min-width: 75rem) {
|
|
133
|
+
.pf-v6-c-page > .pf-v6-c-masthead .pf-v6-c-masthead__toggle .pf-v6-c-button.pf-m-hamburger, .pf-v6-c-page:where(:has(> .pf-v6-c-page__sidebar.pf-m-expanded)) > .pf-v6-c-masthead .pf-v6-c-masthead__toggle :is(.pf-v6-c-button.pf-m-hamburger, .pf-v6-c-button.pf-m-hamburger:hover, .pf-v6-c-button.pf-m-hamburger:focus-visible) {
|
|
134
|
+
--pf-v6-c-button--hamburger-icon--top--path: var(--pf-v6-c-button--hamburger-icon--top--path--base);
|
|
135
|
+
--pf-v6-c-button--hamburger-icon--arrow--path: var(--pf-v6-c-button--hamburger-icon--arrow--path--base);
|
|
136
|
+
--pf-v6-c-button--hamburger-icon--bottom--path: var(--pf-v6-c-button--hamburger-icon--bottom--path--base);
|
|
137
|
+
--pf-v6-c-button__icon--TransitionDelay: var(--pf-v6-c-button--hamburger-icon--TransitionDuration);
|
|
138
|
+
--pf-v6-c-button--hover__icon--TransitionDelay: var(--pf-v6-c-button--hamburger-icon--TransitionDuration);
|
|
139
|
+
}
|
|
140
|
+
.pf-v6-c-page > .pf-v6-c-masthead .pf-v6-c-masthead__toggle .pf-v6-c-button.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
141
|
+
--pf-v6-c-button--hamburger-icon--top--path: var(--pf-v6-c-button--hamburger-icon--top--collapse--path);
|
|
142
|
+
--pf-v6-c-button--hamburger-icon--arrow--path: var(--pf-v6-c-button--hamburger-icon--arrow--collapse--path);
|
|
143
|
+
--pf-v6-c-button--hamburger-icon--bottom--path: var(--pf-v6-c-button--hamburger-icon--bottom--collapse--path);
|
|
144
|
+
--pf-v6-c-button__icon--TransitionDelay: 0s;
|
|
145
|
+
--pf-v6-c-button__icon--ScaleX: 1;
|
|
146
|
+
--pf-v6-c-button--hover__icon--TransitionDelay: 0s;
|
|
147
|
+
--pf-v6-c-button--hover__icon--ScaleX: 1;
|
|
148
|
+
}
|
|
149
|
+
.pf-v6-c-page:where(:has(> .pf-v6-c-page__sidebar.pf-m-collapsed)) > .pf-v6-c-masthead .pf-v6-c-masthead__toggle .pf-v6-c-button.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
150
|
+
--pf-v6-c-button--hamburger-icon--top--path: var(--pf-v6-c-button--hamburger-icon--top--collapse--path);
|
|
151
|
+
--pf-v6-c-button--hamburger-icon--arrow--path: var(--pf-v6-c-button--hamburger-icon--arrow--collapse--path);
|
|
152
|
+
--pf-v6-c-button--hamburger-icon--bottom--path: var(--pf-v6-c-button--hamburger-icon--bottom--collapse--path);
|
|
153
|
+
--pf-v6-c-button__icon--TransitionDelay: 0s;
|
|
154
|
+
--pf-v6-c-button__icon--ScaleX: var(--pf-v6-c-button--m-hamburger__icon--m-expand--ScaleX);
|
|
155
|
+
--pf-v6-c-button--hover__icon--TransitionDelay: 0s;
|
|
156
|
+
--pf-v6-c-button--hover__icon--ScaleX: var(--pf-v6-c-button--m-hamburger__icon--m-expand--ScaleX);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
113
159
|
|
|
114
160
|
.pf-v6-c-page > .pf-v6-c-masthead {
|
|
115
161
|
z-index: var(--pf-v6-c-page--c-masthead--ZIndex);
|
|
@@ -432,7 +478,7 @@
|
|
|
432
478
|
-webkit-overflow-scrolling: touch;
|
|
433
479
|
}
|
|
434
480
|
@media screen and (min-width: 75rem) {
|
|
435
|
-
.pf-v6-c-masthead + .pf-v6-c-page__main-container, .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__main-container,
|
|
481
|
+
.pf-v6-c-page.pf-m-no-sidebar, .pf-v6-c-masthead + .pf-v6-c-page__main-container, .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__main-container,
|
|
436
482
|
.pf-v6-c-masthead + .pf-v6-c-page__drawer,
|
|
437
483
|
.pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__drawer {
|
|
438
484
|
--pf-v6-c-page__main-container--GridArea: var(--pf-v6-c-page--masthead--main-container--GridArea);
|
|
@@ -14,8 +14,9 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
14
14
|
|
|
15
15
|
// Sidebar
|
|
16
16
|
--#{$page}__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
|
|
17
|
-
--#{$page}__sidebar--Width: #{pf-size-prem(290px)};
|
|
18
|
-
--#{$page}__sidebar--
|
|
17
|
+
--#{$page}__sidebar--Width--base: #{pf-size-prem(290px)};
|
|
18
|
+
--#{$page}__sidebar--Width: var(--#{$page}__sidebar--Width--base);
|
|
19
|
+
--#{$page}__sidebar--xl--Width: var(--#{$page}__sidebar--Width--base);
|
|
19
20
|
--#{$page}__sidebar--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
20
21
|
--#{$page}__sidebar--BoxShadow: none;
|
|
21
22
|
|
|
@@ -148,8 +149,37 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
148
149
|
"header header"
|
|
149
150
|
"sidebar main";
|
|
150
151
|
grid-template-columns: var(--#{$page}__sidebar--Width) 1fr;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Hamburger menu animation
|
|
155
|
+
// mobile - show expand on hover
|
|
156
|
+
> .#{$masthead} .#{$masthead}__toggle .#{$button}.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
157
|
+
@include pf-v6-hamburger;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// mobile - show collapse when sidebar expanded
|
|
161
|
+
&:where(:has(> .#{$page}__sidebar.pf-m-expanded)) > .#{$masthead} .#{$masthead}__toggle :is(.#{$button}.pf-m-hamburger, .#{$button}.pf-m-hamburger:hover, .#{$button}.pf-m-hamburger:focus-visible) {
|
|
162
|
+
@include pf-v6-hamburger($collapse: true);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (min-width: $pf-v6-global--breakpoint--xl) {
|
|
166
|
+
// desktop - disable default arrow
|
|
167
|
+
> .#{$masthead} .#{$masthead}__toggle .#{$button}.pf-m-hamburger,
|
|
168
|
+
&:where(:has(> .#{$page}__sidebar.pf-m-expanded)) > .#{$masthead} .#{$masthead}__toggle :is(.#{$button}.pf-m-hamburger, .#{$button}.pf-m-hamburger:hover, .#{$button}.pf-m-hamburger:focus-visible) {
|
|
169
|
+
@include pf-v6-hamburger($reset: true);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// desktop - show collapse on hover
|
|
173
|
+
> .#{$masthead} .#{$masthead}__toggle .#{$button}.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
174
|
+
@include pf-v6-hamburger($collapse: true);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// desktop - show expand on hover when sidebar collapsed
|
|
178
|
+
&:where(:has(> .#{$page}__sidebar.pf-m-collapsed)) > .#{$masthead} .#{$masthead}__toggle .#{$button}.pf-m-hamburger:is(:hover, :focus-visible) {
|
|
179
|
+
@include pf-v6-hamburger;
|
|
151
180
|
}
|
|
152
181
|
}
|
|
182
|
+
}
|
|
153
183
|
|
|
154
184
|
// Header
|
|
155
185
|
.#{$page} > .#{$masthead} {
|
|
@@ -352,6 +382,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
352
382
|
-webkit-overflow-scrolling: touch;
|
|
353
383
|
|
|
354
384
|
@media screen and (min-width: $pf-v6-global--breakpoint--xl) {
|
|
385
|
+
@at-root .#{$page}.pf-m-no-sidebar,
|
|
355
386
|
.#{$masthead} + &,
|
|
356
387
|
.#{$page}__sidebar.pf-m-collapsed + & {
|
|
357
388
|
--#{$page}__main-container--GridArea: var(--#{$page}--masthead--main-container--GridArea);
|
|
@@ -106,6 +106,22 @@
|
|
|
106
106
|
--pf-v6-c-progress__status-icon--Color: var(--pf-v6-c-progress--m-danger__status-icon--Color);
|
|
107
107
|
--pf-v6-c-progress--m-inside__measure--Color: var(--pf-v6-c-progress--m-danger--m-inside__measure--Color);
|
|
108
108
|
}
|
|
109
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
110
|
+
.pf-v6-c-progress.pf-m-danger .pf-v6-c-progress__bar {
|
|
111
|
+
translate: var(--pf-v6-global--danger-jiggle--TranslateX, 0);
|
|
112
|
+
animation-name: pf-v6-global-danger-jiggle-motion;
|
|
113
|
+
animation-duration: var(--pf-v6-global--danger-jiggle--AnimationDuration--Transform);
|
|
114
|
+
animation-timing-function: var(--pf-v6-global--danger-jiggle--AnimationTimingFunction--Transform);
|
|
115
|
+
animation-fill-mode: both;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.pf-v6-c-progress.pf-m-danger .pf-v6-c-progress__status-icon {
|
|
119
|
+
--pf-v6-c-progress--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--fade--default);
|
|
120
|
+
--pf-v6-c-progress--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
|
|
121
|
+
animation-name: pf-v6-global-fade-in;
|
|
122
|
+
animation-duration: var(--pf-v6-c-progress--TransitionDuration--Opacity);
|
|
123
|
+
animation-timing-function: var(--pf-v6-c-progress--TransitionTimingFunction--Opacity);
|
|
124
|
+
}
|
|
109
125
|
|
|
110
126
|
.pf-v6-c-progress__description {
|
|
111
127
|
grid-column: 1/2;
|
|
@@ -140,6 +140,16 @@
|
|
|
140
140
|
--#{$progress}__indicator--BackgroundColor: var(--#{$progress}--m-danger__indicator--BackgroundColor);
|
|
141
141
|
--#{$progress}__status-icon--Color: var(--#{$progress}--m-danger__status-icon--Color);
|
|
142
142
|
--#{$progress}--m-inside__measure--Color: var(--#{$progress}--m-danger--m-inside__measure--Color);
|
|
143
|
+
|
|
144
|
+
.#{$progress}__bar {
|
|
145
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
146
|
+
@include pf-v6-animate-danger-jiggle;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.#{$progress}__status-icon {
|
|
151
|
+
@include pf-v6-fade-default(#{$progress});
|
|
152
|
+
}
|
|
143
153
|
}
|
|
144
154
|
}
|
|
145
155
|
|
|
@@ -209,4 +219,4 @@
|
|
|
209
219
|
|
|
210
220
|
.#{$progress}__measure {
|
|
211
221
|
font-variant-numeric: tabular-nums;
|
|
212
|
-
}
|
|
222
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
12
12
|
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
13
13
|
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
14
|
-
--pf-v6-c-skeleton--after--TranslateX:
|
|
15
|
-
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading;
|
|
14
|
+
--pf-v6-c-skeleton--after--TranslateX: 0;
|
|
15
|
+
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading-reduced-motion;
|
|
16
16
|
--pf-v6-c-skeleton--after--AnimationDuration: 3s;
|
|
17
17
|
--pf-v6-c-skeleton--after--AnimationIterationCount: infinite;
|
|
18
18
|
--pf-v6-c-skeleton--after--AnimationTimingFunction: linear;
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
--pf-v6-c-skeleton--m-height-75--Height: 75%;
|
|
45
45
|
--pf-v6-c-skeleton--m-height-100--Height: 100%;
|
|
46
46
|
}
|
|
47
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
48
|
+
.pf-v6-c-skeleton {
|
|
49
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
50
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
51
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
52
|
+
--pf-v6-c-skeleton--after--TranslateX: -100%;
|
|
53
|
+
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
47
56
|
|
|
48
57
|
.pf-v6-c-skeleton {
|
|
49
58
|
position: relative;
|
|
@@ -163,4 +172,15 @@
|
|
|
163
172
|
100% {
|
|
164
173
|
transform: translateX(100%);
|
|
165
174
|
}
|
|
175
|
+
}
|
|
176
|
+
@keyframes pf-v6-c-skeleton-loading-reduced-motion {
|
|
177
|
+
0% {
|
|
178
|
+
opacity: 0.25;
|
|
179
|
+
}
|
|
180
|
+
60% {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
}
|
|
183
|
+
100% {
|
|
184
|
+
opacity: 0.25;
|
|
185
|
+
}
|
|
166
186
|
}
|
|
@@ -14,15 +14,23 @@
|
|
|
14
14
|
// After
|
|
15
15
|
--#{$skeleton}--after--LinearGradientAngle: 90deg;
|
|
16
16
|
--#{$skeleton}--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
17
|
-
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
17
|
+
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
18
18
|
--#{$skeleton}--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
19
|
-
--#{$skeleton}--after--TranslateX:
|
|
20
|
-
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading;
|
|
19
|
+
--#{$skeleton}--after--TranslateX: 0;
|
|
20
|
+
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading-reduced-motion;
|
|
21
21
|
--#{$skeleton}--after--AnimationDuration: 3s;
|
|
22
22
|
--#{$skeleton}--after--AnimationIterationCount: infinite;
|
|
23
23
|
--#{$skeleton}--after--AnimationTimingFunction: linear;
|
|
24
24
|
--#{$skeleton}--after--AnimationDelay: .5s;
|
|
25
25
|
|
|
26
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
27
|
+
--#{$skeleton}--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
28
|
+
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
29
|
+
--#{$skeleton}--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
30
|
+
--#{$skeleton}--after--TranslateX: -100%;
|
|
31
|
+
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading;
|
|
32
|
+
}
|
|
33
|
+
|
|
26
34
|
// Circle
|
|
27
35
|
--#{$skeleton}--m-circle--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
28
36
|
--#{$skeleton}--m-circle--before--PaddingBlockEnd: 100%;
|
|
@@ -209,3 +217,17 @@
|
|
|
209
217
|
transform: translateX(100%);
|
|
210
218
|
}
|
|
211
219
|
}
|
|
220
|
+
|
|
221
|
+
@keyframes #{$skeleton}-loading-reduced-motion {
|
|
222
|
+
0% {
|
|
223
|
+
opacity: 0.25;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
60% {
|
|
227
|
+
opacity: 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 0.25;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--pf-v6-c-spinner--StrokeWidth: 10;
|
|
9
9
|
--pf-v6-c-spinner__path--StrokeWidth: var(--pf-v6-c-spinner--StrokeWidth);
|
|
10
10
|
--pf-v6-c-spinner__path--AnimationTimingFunction: ease-in-out;
|
|
11
|
+
--pf-v6-c-spinner--m-xs--diameter: var(--pf-t--global--icon--size--sm);
|
|
11
12
|
--pf-v6-c-spinner--m-sm--diameter: var(--pf-t--global--icon--size--md);
|
|
12
13
|
--pf-v6-c-spinner--m-md--diameter: var(--pf-t--global--icon--size--lg);
|
|
13
14
|
--pf-v6-c-spinner--m-lg--diameter: var(--pf-t--global--icon--size--xl);
|
|
@@ -24,6 +25,10 @@
|
|
|
24
25
|
.pf-v6-c-spinner.pf-m-inline {
|
|
25
26
|
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-inline--diameter);
|
|
26
27
|
}
|
|
28
|
+
.pf-v6-c-spinner.pf-m-xs {
|
|
29
|
+
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-xs--diameter);
|
|
30
|
+
--pf-v6-c-spinner--StrokeWidth: 15;
|
|
31
|
+
}
|
|
27
32
|
.pf-v6-c-spinner.pf-m-sm {
|
|
28
33
|
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-sm--diameter);
|
|
29
34
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--#{$spinner}__path--AnimationTimingFunction: ease-in-out;
|
|
15
15
|
|
|
16
16
|
// sizes
|
|
17
|
+
--#{$spinner}--m-xs--diameter: var(--pf-t--global--icon--size--sm);
|
|
17
18
|
--#{$spinner}--m-sm--diameter: var(--pf-t--global--icon--size--md);
|
|
18
19
|
--#{$spinner}--m-md--diameter: var(--pf-t--global--icon--size--lg);
|
|
19
20
|
--#{$spinner}--m-lg--diameter: var(--pf-t--global--icon--size--xl);
|
|
@@ -34,6 +35,11 @@
|
|
|
34
35
|
--#{$spinner}--diameter: var(--#{$spinner}--m-inline--diameter);
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
&.pf-m-xs {
|
|
39
|
+
--#{$spinner}--diameter: var(--#{$spinner}--m-xs--diameter);
|
|
40
|
+
--#{$spinner}--StrokeWidth: 15;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
&.pf-m-sm {
|
|
38
44
|
--#{$spinner}--diameter: var(--#{$spinner}--m-sm--diameter);
|
|
39
45
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--pf-v6-c-table--cell--first-child--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
35
35
|
--pf-v6-c-table--cell--responsive--PaddingInlineEnd: 0;
|
|
36
36
|
--pf-v6-c-table--cell--responsive--PaddingInlineStart: 0;
|
|
37
|
+
--pf-v6-c-table--cell--responsive--th--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
37
38
|
--pf-v6-c-table--m-compact__tr--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
38
39
|
--pf-v6-c-table--m-compact__tr--responsive--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
39
40
|
--pf-v6-c-table--m-compact__tr__td--responsive--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
@@ -158,7 +159,7 @@
|
|
|
158
159
|
}
|
|
159
160
|
.pf-m-grid.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
160
161
|
position: revert;
|
|
161
|
-
font-weight:
|
|
162
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
162
163
|
text-align: start;
|
|
163
164
|
content: attr(data-label);
|
|
164
165
|
}
|
|
@@ -458,7 +459,7 @@
|
|
|
458
459
|
}
|
|
459
460
|
.pf-m-grid-md.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
460
461
|
position: revert;
|
|
461
|
-
font-weight:
|
|
462
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
462
463
|
text-align: start;
|
|
463
464
|
content: attr(data-label);
|
|
464
465
|
}
|
|
@@ -761,7 +762,7 @@
|
|
|
761
762
|
}
|
|
762
763
|
.pf-m-grid-lg.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
763
764
|
position: revert;
|
|
764
|
-
font-weight:
|
|
765
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
765
766
|
text-align: start;
|
|
766
767
|
content: attr(data-label);
|
|
767
768
|
}
|
|
@@ -1064,7 +1065,7 @@
|
|
|
1064
1065
|
}
|
|
1065
1066
|
.pf-m-grid-xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1066
1067
|
position: revert;
|
|
1067
|
-
font-weight:
|
|
1068
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
1068
1069
|
text-align: start;
|
|
1069
1070
|
content: attr(data-label);
|
|
1070
1071
|
}
|
|
@@ -1367,7 +1368,7 @@
|
|
|
1367
1368
|
}
|
|
1368
1369
|
.pf-m-grid-2xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1369
1370
|
position: revert;
|
|
1370
|
-
font-weight:
|
|
1371
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
1371
1372
|
text-align: start;
|
|
1372
1373
|
content: attr(data-label);
|
|
1373
1374
|
}
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
--#{$table}--cell--first-child--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
95
95
|
--#{$table}--cell--responsive--PaddingInlineEnd: 0;
|
|
96
96
|
--#{$table}--cell--responsive--PaddingInlineStart: 0;
|
|
97
|
+
--#{$table}--cell--responsive--th--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
97
98
|
|
|
98
99
|
// * Table grid compact table
|
|
99
100
|
--#{$table}--m-compact__tr--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
@@ -272,7 +273,7 @@
|
|
|
272
273
|
|
|
273
274
|
&::before {
|
|
274
275
|
position: revert;
|
|
275
|
-
font-weight:
|
|
276
|
+
font-weight: var(--#{$table}--cell--responsive--th--FontWeight);
|
|
276
277
|
text-align: start;
|
|
277
278
|
content: attr(data-label);
|
|
278
279
|
}
|
|
@@ -74,6 +74,15 @@
|
|
|
74
74
|
--pf-v6-c-table__action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
75
75
|
--pf-v6-c-table__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
76
76
|
--pf-v6-c-table__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
77
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
78
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
79
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
80
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
81
|
+
--pf-v6-c-table__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
82
|
+
--pf-v6-c-table__expandable-row--Opacity: 0;
|
|
83
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
84
|
+
--pf-v6-c-table__expandable-row--TranslateY: 0;
|
|
85
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
77
86
|
--pf-v6-c-table__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
78
87
|
--pf-v6-c-table__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
79
88
|
--pf-v6-c-table__expandable-row-content--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
@@ -134,6 +143,13 @@
|
|
|
134
143
|
--pf-v6-c-table--m-sticky-header--ZIndex: calc(var(--pf-t--global--z-index--xs) + 1);
|
|
135
144
|
--pf-v6-c-table--m-sticky-header--border--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
|
|
136
145
|
}
|
|
146
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
147
|
+
.pf-v6-c-table {
|
|
148
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
149
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
150
|
+
--pf-v6-c-table__expandable-row--TranslateY: -.5rem;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
137
153
|
|
|
138
154
|
.pf-v6-c-table {
|
|
139
155
|
width: 100%;
|
|
@@ -398,6 +414,39 @@
|
|
|
398
414
|
.pf-v6-c-table .pf-v6-c-button .pf-v6-c-table__sort-indicator {
|
|
399
415
|
--pf-v6-c-table__sort-indicator--MarginInlineStart: 0;
|
|
400
416
|
}
|
|
417
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row {
|
|
418
|
+
display: revert;
|
|
419
|
+
visibility: hidden;
|
|
420
|
+
opacity: var(--pf-v6-c-table__expandable-row--Opacity);
|
|
421
|
+
transition-delay: 0s, 0s, var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
422
|
+
transition-timing-function: var(--pf-v6-c-table__expandable-row--TransitionTimingFunction);
|
|
423
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide), 0s;
|
|
424
|
+
transition-property: opacity, translate, visibility;
|
|
425
|
+
translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
|
|
426
|
+
}
|
|
427
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row[hidden] {
|
|
428
|
+
display: revert;
|
|
429
|
+
}
|
|
430
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
431
|
+
visibility: visible;
|
|
432
|
+
opacity: var(--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity);
|
|
433
|
+
transition-delay: 0s;
|
|
434
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
435
|
+
translate: 0 var(--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY);
|
|
436
|
+
}
|
|
437
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
438
|
+
max-height: 99999px;
|
|
439
|
+
}
|
|
440
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th),
|
|
441
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
442
|
+
padding: 0;
|
|
443
|
+
overflow: hidden;
|
|
444
|
+
transition-delay: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
445
|
+
transition-property: padding, max-height, overflow;
|
|
446
|
+
}
|
|
447
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
448
|
+
max-height: 0;
|
|
449
|
+
}
|
|
401
450
|
|
|
402
451
|
[class*=pf-v6-c-table].pf-m-truncate {
|
|
403
452
|
--pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
|
|
@@ -703,21 +752,25 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
703
752
|
position: relative;
|
|
704
753
|
border-block-end: 0 solid transparent;
|
|
705
754
|
}
|
|
706
|
-
|
|
707
|
-
|
|
755
|
+
.pf-v6-c-table__expandable-row > .pf-v6-c-table__th,
|
|
756
|
+
.pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
|
|
708
757
|
padding-block-start: 0;
|
|
709
758
|
}
|
|
710
|
-
|
|
711
|
-
.pf-v6-c-
|
|
712
|
-
|
|
759
|
+
.pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__th,
|
|
760
|
+
.pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
|
|
761
|
+
padding-block-start: var(--pf-v6-c-table--cell--PaddingBlockStart);
|
|
762
|
+
}
|
|
763
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__td.pf-m-no-padding,
|
|
764
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__th.pf-m-no-padding {
|
|
713
765
|
padding-block-start: 0;
|
|
714
766
|
padding-block-end: 0;
|
|
715
767
|
padding-inline-start: 0;
|
|
716
768
|
padding-inline-end: 0;
|
|
717
769
|
}
|
|
718
|
-
.pf-v6-c-table__expandable-row
|
|
719
|
-
.pf-v6-c-table__expandable-row
|
|
770
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__td.pf-m-no-padding .pf-v6-c-table__expandable-row-content,
|
|
771
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__th.pf-m-no-padding .pf-v6-c-table__expandable-row-content {
|
|
720
772
|
padding: 0;
|
|
773
|
+
border-radius: 0;
|
|
721
774
|
}
|
|
722
775
|
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content {
|
|
723
776
|
padding-block-start: var(--pf-v6-c-table__expandable-row-content--PaddingBlockStart);
|
|
@@ -727,6 +780,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
727
780
|
background-color: var(--pf-v6-c-table__expandable-row-content--BackgroundColor);
|
|
728
781
|
border-radius: var(--pf-v6-c-table__expandable-row-content--BorderRadius);
|
|
729
782
|
}
|
|
783
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content.pf-m-no-background {
|
|
784
|
+
background-color: transparent;
|
|
785
|
+
}
|
|
730
786
|
.pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
731
787
|
border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
|
|
732
788
|
border-block-end-width: var(--pf-v6-c-table--border-width--base);
|
|
@@ -738,6 +794,10 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
738
794
|
border-block-end: 0;
|
|
739
795
|
}
|
|
740
796
|
|
|
797
|
+
.pf-v6-c-table__tr:has(~ .pf-v6-c-table__expandable-row) {
|
|
798
|
+
border-block-end: 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
741
801
|
.pf-v6-c-table.pf-m-compact {
|
|
742
802
|
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact--cell--PaddingBlockStart);
|
|
743
803
|
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact--cell--PaddingBlockEnd);
|
|
@@ -793,7 +853,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
793
853
|
}
|
|
794
854
|
.pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody.pf-m-expanded .pf-v6-c-table__control-row {
|
|
795
855
|
background-color: var(--pf-v6-c-table__control-row--BackgroundColor);
|
|
796
|
-
border-block-end:
|
|
856
|
+
border-block-end: 0;
|
|
797
857
|
}
|
|
798
858
|
|
|
799
859
|
.pf-v6-c-table__tr {
|
|
@@ -118,6 +118,23 @@
|
|
|
118
118
|
--#{$table}__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
119
119
|
--#{$table}__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
120
120
|
|
|
121
|
+
// * Table expandable row
|
|
122
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
123
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
124
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
125
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
126
|
+
--#{$table}__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
127
|
+
--#{$table}__expandable-row--Opacity: 0;
|
|
128
|
+
--#{$table}__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
129
|
+
--#{$table}__expandable-row--TranslateY: 0;
|
|
130
|
+
--#{$table}__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
131
|
+
|
|
132
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
133
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
134
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
135
|
+
--#{$table}__expandable-row--TranslateY: -.5rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
121
138
|
// * Table expandable row content
|
|
122
139
|
--#{$table}__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
123
140
|
--#{$table}__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
@@ -562,6 +579,57 @@
|
|
|
562
579
|
.#{$button} .#{$table}__sort-indicator {
|
|
563
580
|
--#{$table}__sort-indicator--MarginInlineStart: 0;
|
|
564
581
|
}
|
|
582
|
+
|
|
583
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
584
|
+
&.pf-m-animate-expand {
|
|
585
|
+
> .#{$table}__tbody {
|
|
586
|
+
> .#{$table}__expandable-row {
|
|
587
|
+
display: revert;
|
|
588
|
+
visibility: hidden;
|
|
589
|
+
opacity: var(--#{$table}__expandable-row--Opacity);
|
|
590
|
+
transition-delay: 0s, 0s, var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
591
|
+
transition-timing-function: var(--#{$table}__expandable-row--TransitionTimingFunction);
|
|
592
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--slide), 0s;
|
|
593
|
+
transition-property: opacity, translate, visibility;
|
|
594
|
+
translate: 0 var(--#{$table}__expandable-row--TranslateY);
|
|
595
|
+
|
|
596
|
+
&[hidden] {
|
|
597
|
+
display: revert;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
&.pf-m-expanded {
|
|
601
|
+
visibility: visible;
|
|
602
|
+
opacity: var(--#{$table}__tbody--m-expanded__expandable-row--Opacity);
|
|
603
|
+
transition-delay: 0s;
|
|
604
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--expand--fade), var(--#{$table}__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
605
|
+
translate: 0 var(--#{$table}__tbody--m-expanded__expandable-row--TranslateY);
|
|
606
|
+
|
|
607
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
608
|
+
> .#{$table}__expandable-row-content {
|
|
609
|
+
max-height: 99999px;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
&:not(.pf-m-expanded) {
|
|
615
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
616
|
+
&,
|
|
617
|
+
> .#{$table}__expandable-row-content {
|
|
618
|
+
padding: 0;
|
|
619
|
+
overflow: hidden;
|
|
620
|
+
transition-delay: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
621
|
+
transition-property: padding, max-height, overflow;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
> .#{$table}__expandable-row-content {
|
|
625
|
+
max-height: 0;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
// stylelint-enable max-nesting-depth, selector-max-class
|
|
565
633
|
}
|
|
566
634
|
|
|
567
635
|
// - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
|
|
@@ -954,15 +1022,22 @@
|
|
|
954
1022
|
position: relative;
|
|
955
1023
|
border-block-end: 0 solid transparent;
|
|
956
1024
|
|
|
957
|
-
|
|
1025
|
+
// Remove top padding from regular expandable
|
|
1026
|
+
> .#{$table}__th,
|
|
1027
|
+
> .#{$table}__td {
|
|
1028
|
+
padding-block-start: 0;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// Add padding back to compound expandable
|
|
1032
|
+
.#{$table}__control-row ~ & {
|
|
958
1033
|
> .#{$table}__th,
|
|
959
1034
|
> .#{$table}__td {
|
|
960
|
-
padding-block-start:
|
|
1035
|
+
padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
|
|
961
1036
|
}
|
|
962
1037
|
}
|
|
963
1038
|
|
|
964
|
-
|
|
965
|
-
|
|
1039
|
+
.#{$table}__td,
|
|
1040
|
+
.#{$table}__th {
|
|
966
1041
|
&.pf-m-no-padding {
|
|
967
1042
|
padding-block-start: 0;
|
|
968
1043
|
padding-block-end: 0;
|
|
@@ -971,6 +1046,7 @@
|
|
|
971
1046
|
|
|
972
1047
|
.#{$table}__expandable-row-content {
|
|
973
1048
|
padding: 0;
|
|
1049
|
+
border-radius: 0;
|
|
974
1050
|
}
|
|
975
1051
|
}
|
|
976
1052
|
}
|
|
@@ -983,6 +1059,10 @@
|
|
|
983
1059
|
padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
|
|
984
1060
|
background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
|
|
985
1061
|
border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
|
|
1062
|
+
|
|
1063
|
+
&.pf-m-no-background {
|
|
1064
|
+
background-color: transparent;
|
|
1065
|
+
}
|
|
986
1066
|
}
|
|
987
1067
|
|
|
988
1068
|
// - Table expandable row content expanded
|
|
@@ -1001,6 +1081,10 @@
|
|
|
1001
1081
|
}
|
|
1002
1082
|
}
|
|
1003
1083
|
|
|
1084
|
+
.#{$table}__tr:has(~ .#{$table}__expandable-row) {
|
|
1085
|
+
border-block-end: 0;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1004
1088
|
// - Table compact
|
|
1005
1089
|
.#{$table}.pf-m-compact {
|
|
1006
1090
|
--#{$table}--cell--PaddingBlockStart: var(--#{$table}--m-compact--cell--PaddingBlockStart);
|
|
@@ -1085,7 +1169,7 @@
|
|
|
1085
1169
|
// - Table tbody table control row
|
|
1086
1170
|
.#{$table}__control-row {
|
|
1087
1171
|
background-color: var(--#{$table}__control-row--BackgroundColor);
|
|
1088
|
-
border-block-end:
|
|
1172
|
+
border-block-end: 0;
|
|
1089
1173
|
}
|
|
1090
1174
|
}
|
|
1091
1175
|
}
|