@patternfly/patternfly 6.2.0-prerelease.2 → 6.2.0-prerelease.21
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/assets/pficon/pficon.scss +1 -1
- package/base/normalize.scss +2 -2
- package/base/patternfly-pf-icons.css +1 -1
- package/components/Alert/alert-group.css +50 -7
- package/components/Alert/alert-group.scss +114 -28
- package/components/Banner/banner.css +2 -2
- package/components/Banner/banner.scss +2 -2
- package/components/Breadcrumb/breadcrumb.css +3 -2
- package/components/Breadcrumb/breadcrumb.scss +3 -2
- package/components/Button/button.css +63 -2
- package/components/Button/button.scss +74 -2
- package/components/Card/card.css +17 -0
- package/components/Card/card.scss +22 -0
- package/components/ClipboardCopy/clipboard-copy.css +3 -0
- package/components/ClipboardCopy/clipboard-copy.scss +4 -0
- package/components/Content/content.css +2 -1
- package/components/Content/content.scss +2 -1
- package/components/DescriptionList/description-list.css +3 -2
- package/components/DescriptionList/description-list.scss +3 -2
- package/components/Drawer/drawer.css +3 -1
- package/components/Drawer/drawer.scss +3 -1
- package/components/Form/form.css +3 -6
- package/components/Form/form.scss +3 -7
- package/components/HelperText/helper-text.css +13 -0
- package/components/HelperText/helper-text.scss +16 -0
- package/components/JumpLinks/jump-links.css +1 -1
- package/components/JumpLinks/jump-links.scss +1 -1
- package/components/Label/label.css +3 -2
- package/components/Label/label.scss +3 -2
- package/components/Masthead/masthead.css +1 -1
- package/components/Masthead/masthead.scss +1 -1
- package/components/Menu/menu.css +15 -7
- package/components/Menu/menu.scss +14 -5
- package/components/MenuToggle/menu-toggle.css +41 -0
- package/components/MenuToggle/menu-toggle.scss +49 -0
- package/components/Nav/nav.css +46 -13
- package/components/Nav/nav.scss +57 -17
- package/components/Page/page.css +16 -1
- package/components/Page/page.scss +17 -3
- package/components/Popover/popover.css +2 -0
- package/components/Popover/popover.scss +2 -0
- package/components/Progress/progress.css +3 -0
- package/components/Progress/progress.scss +3 -0
- package/components/ProgressStepper/progress-stepper.css +2 -1
- package/components/ProgressStepper/progress-stepper.scss +2 -1
- package/components/SimpleList/simple-list.css +2 -2
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Switch/switch.css +3 -1
- package/components/Switch/switch.scss +4 -2
- package/components/Table/table.css +3 -3
- package/components/Table/table.scss +3 -2
- package/components/Tabs/tabs.css +1 -1
- package/components/Tabs/tabs.scss +1 -1
- package/components/Timestamp/timestamp.css +2 -1
- package/components/Timestamp/timestamp.scss +2 -1
- package/components/ToggleGroup/toggle-group.css +1 -1
- package/components/ToggleGroup/toggle-group.scss +1 -1
- package/components/Toolbar/toolbar.css +6 -1
- package/components/Toolbar/toolbar.scss +7 -1
- package/components/Wizard/wizard.css +1 -1
- package/components/Wizard/wizard.scss +1 -1
- package/components/_index.css +310 -60
- package/docs/components/Alert/examples/Alert.md +6 -0
- package/docs/components/Avatar/examples/Avatar.md +4 -4
- package/docs/components/Brand/examples/Brand.md +2 -2
- package/docs/components/Button/examples/Button.md +29 -0
- package/docs/components/Card/examples/Card.md +30 -0
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +29 -0
- package/docs/components/DataList/examples/DataList.md +3 -3
- package/docs/components/DescriptionList/examples/DescriptionList.md +2 -2
- package/docs/components/Divider/examples/Divider.md +2 -2
- package/docs/components/Drawer/examples/Drawer.md +3 -3
- package/docs/components/JumpLinks/examples/JumpLinks.md +2 -2
- package/docs/components/Masthead/examples/masthead.md +1 -1
- package/docs/components/Menu/examples/Menu.md +8 -8
- package/docs/components/Nav/examples/Navigation.md +3 -0
- package/docs/components/Page/examples/Page.md +2 -2
- package/docs/components/Pagination/examples/Pagination.md +3 -3
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +2 -2
- package/docs/components/Sidebar/examples/Sidebar.md +1 -1
- package/docs/components/Table/examples/Table.md +17 -29
- package/docs/components/Tabs/examples/Tabs.md +148 -6
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +10 -0
- package/docs/components/Toolbar/examples/Toolbar.css +3 -0
- package/docs/components/Toolbar/examples/Toolbar.md +35 -7
- package/docs/demos/Card/examples/Card.md +32 -24
- package/docs/demos/CardView/examples/CardView.md +2 -0
- package/docs/demos/Nav/examples/Nav.md +2 -0
- package/docs/layouts/Flex/examples/Flex.md +1 -1
- package/docs/layouts/Gallery/examples/Gallery.md +2 -2
- package/docs/layouts/Grid/examples/Grid.md +4 -4
- package/docs/utilities/Accessibility/examples/Accessibility.md +1 -1
- package/docs/utilities/Alignment/examples/Alignment.md +1 -1
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +1 -1
- package/docs/utilities/Display/examples/Display.md +1 -1
- package/docs/utilities/Flex/examples/Flex.md +1 -1
- package/docs/utilities/Float/examples/Float.md +1 -1
- package/docs/utilities/Sizing/examples/Sizing.md +6 -6
- package/docs/utilities/Spacing/examples/Spacing.md +1 -1
- package/docs/utilities/Text/examples/Text.md +1 -1
- package/package.json +2 -2
- package/patternfly-base-no-globals.css +1 -1
- package/patternfly-base.css +3 -3
- package/patternfly-charts.css +83 -0
- package/patternfly-charts.scss +126 -0
- package/patternfly-no-globals.css +311 -61
- package/patternfly.css +313 -63
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/components/TabContent/examples/TabContent.md +0 -153
|
@@ -175,12 +175,22 @@
|
|
|
175
175
|
&:is(.pf-m-disabled, :disabled, .pf-m-aria-disabled, [aria-disabled="true"]) {
|
|
176
176
|
--#{$menu}__item--Color: var(--#{$menu}__item--m-disabled--Color);
|
|
177
177
|
--#{$menu}__item-toggle-icon--Color: var(--#{$menu}--icon--disabled--Color);
|
|
178
|
-
--#{$menu}__item-external
|
|
178
|
+
--#{$menu}__item-external--Color: transparent;
|
|
179
|
+
--#{$menu}__item-select-icon--Color: transparent;
|
|
179
180
|
--#{$menu}__item-description--Color: var(--#{$menu}--icon--disabled--Color);
|
|
180
181
|
--#{$menu}__list-item--BackgroundColor: transparent;
|
|
182
|
+
--#{$menu}__list-item--hover--BackgroundColor: transparent;
|
|
183
|
+
}
|
|
181
184
|
|
|
185
|
+
&:is(.pf-m-disabled, :disabled) {
|
|
182
186
|
pointer-events: none;
|
|
183
187
|
}
|
|
188
|
+
|
|
189
|
+
&.pf-m-aria-disabled {
|
|
190
|
+
.#{$menu}__item {
|
|
191
|
+
cursor: default;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
184
194
|
}
|
|
185
195
|
|
|
186
196
|
// - Menu hidden
|
|
@@ -384,12 +394,10 @@
|
|
|
384
394
|
|
|
385
395
|
// offset row-gap when scrollbar is present
|
|
386
396
|
.#{$menu}__content {
|
|
387
|
-
// TODO: figure out why this fixes the scrollable
|
|
388
397
|
position: relative;
|
|
389
398
|
z-index: var(--#{$menu}--ZIndex);
|
|
390
399
|
margin-block-start: calc(var(--#{$menu}--RowGap) * -1);
|
|
391
400
|
margin-block-end: calc(var(--#{$menu}--RowGap) * -1);
|
|
392
|
-
overflow: hidden; // hide scrollbars
|
|
393
401
|
}
|
|
394
402
|
|
|
395
403
|
.#{$menu}__list {
|
|
@@ -518,7 +526,7 @@
|
|
|
518
526
|
line-height: var(--#{$menu}__item--LineHeight);
|
|
519
527
|
color: var(--#{$menu}__item--Color);
|
|
520
528
|
text-align: start;
|
|
521
|
-
text-decoration: none;
|
|
529
|
+
text-decoration-line: none;
|
|
522
530
|
background-color: var(--#{$menu}__item--BackgroundColor);
|
|
523
531
|
border: 0;
|
|
524
532
|
outline-offset: var(--#{$menu}--OutlineOffset);
|
|
@@ -607,11 +615,12 @@
|
|
|
607
615
|
|
|
608
616
|
// TODO: standardize icon fitting
|
|
609
617
|
// - Menu item action
|
|
618
|
+
// TODO in breaking change - remove button styling here that is taken care of by favorite button now
|
|
610
619
|
.#{$menu}__item-toggle-icon,
|
|
611
620
|
.#{$menu}__item-action {
|
|
612
621
|
&.pf-m-favorited,
|
|
613
622
|
&.pf-m-favorited:hover,
|
|
614
|
-
&.pf-m-favorited .#{$button} {
|
|
623
|
+
&.pf-m-favorited .#{$button}:not(.pf-m-favorited) {
|
|
615
624
|
--#{$button}--m-plain__icon--Color: var(--#{$menu}__item-action--m-favorited--Color);
|
|
616
625
|
|
|
617
626
|
&:is(:hover, :focus) {
|
|
@@ -118,12 +118,16 @@
|
|
|
118
118
|
--pf-v6-c-menu-toggle--m-small--PaddingInlineStart: var(--pf-t--global--spacer--control--horizontal--compact);
|
|
119
119
|
--pf-v6-c-menu-toggle--m-small--PaddingInlineEnd: var(--pf-t--global--spacer--control--horizontal--compact);
|
|
120
120
|
--pf-v6-c-menu-toggle__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
121
|
+
--pf-v6-c-menu-toggle__status-icon--m-danger--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--icon--default);
|
|
122
|
+
--pf-v6-c-menu-toggle__status-icon--m-danger--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
|
|
121
123
|
--pf-v6-c-menu-toggle--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
|
|
122
124
|
--pf-v6-c-menu-toggle--m-success__status-icon--Color: var(--pf-t--global--icon--color--status--success--default);
|
|
123
125
|
--pf-v6-c-menu-toggle--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
|
|
124
126
|
--pf-v6-c-menu-toggle--m-warning__status-icon--Color: var(--pf-t--global--icon--color--status--warning--default);
|
|
125
127
|
--pf-v6-c-menu-toggle--m-danger--BorderColor: var(--pf-t--global--border--color--status--danger--default);
|
|
126
128
|
--pf-v6-c-menu-toggle--m-danger__status-icon--Color: var(--pf-t--global--icon--color--status--danger--default);
|
|
129
|
+
--pf-v6-c-menu-toggle--m-danger--AnimationDuration--Transform: var(--pf-t--global--motion--duration--fade--default);
|
|
130
|
+
--pf-v6-c-menu-toggle--m-danger--AnimationTimingFunction--Transform: var(--pf-t--global--motion--timing-function--default);
|
|
127
131
|
--pf-v6-c-menu-toggle--m-placeholder--Color: var(--pf-t--global--text--color--placeholder);
|
|
128
132
|
--pf-v6-c-menu-toggle__controls--Gap: var(--pf-t--global--spacer--sm);
|
|
129
133
|
}
|
|
@@ -272,6 +276,28 @@
|
|
|
272
276
|
--pf-v6-c-menu-toggle--BorderColor: var(--pf-v6-c-menu-toggle--m-danger--BorderColor);
|
|
273
277
|
--pf-v6-c-menu-toggle__status-icon--Color: var(--pf-v6-c-menu-toggle--m-danger__status-icon--Color);
|
|
274
278
|
}
|
|
279
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
280
|
+
.pf-v6-c-menu-toggle.pf-m-danger {
|
|
281
|
+
transform: translateX(var(--pf-v6-c-menu-toggle--m-danger--TranslateX, 0));
|
|
282
|
+
animation-name: pf-v6-c-menu-toggle-m-danger-motion;
|
|
283
|
+
animation-duration: var(--pf-v6-c-menu-toggle--m-danger--AnimationDuration--Transform);
|
|
284
|
+
animation-timing-function: var(--pf-v6-c-menu-toggle--m-danger--AnimationTimingFunction--Transform);
|
|
285
|
+
animation-fill-mode: both;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
.pf-v6-c-menu-toggle.pf-m-danger .pf-v6-c-menu-toggle__status-icon {
|
|
289
|
+
animation-name: pf-v6-c-menu-toggle-status-icon-fade-in;
|
|
290
|
+
animation-duration: var(--pf-v6-c-menu-toggle__status-icon--m-danger--TransitionDuration--Opacity);
|
|
291
|
+
animation-timing-function: var(--pf-v6-c-menu-toggle__status-icon--m-danger--TransitionTimingFunction--Opacity);
|
|
292
|
+
}
|
|
293
|
+
@keyframes pf-v6-c-menu-toggle-status-icon-fade-in {
|
|
294
|
+
from {
|
|
295
|
+
opacity: 0;
|
|
296
|
+
}
|
|
297
|
+
to {
|
|
298
|
+
opacity: 1;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
275
301
|
.pf-v6-c-menu-toggle.pf-m-placeholder {
|
|
276
302
|
--pf-v6-c-menu-toggle--Color: var(--pf-v6-c-menu-toggle--m-placeholder--Color);
|
|
277
303
|
}
|
|
@@ -287,6 +313,21 @@
|
|
|
287
313
|
pointer-events: none;
|
|
288
314
|
}
|
|
289
315
|
|
|
316
|
+
@property --pf-v6-c-menu-toggle--m-danger--TranslateX {
|
|
317
|
+
syntax: "<length>";
|
|
318
|
+
inherits: false;
|
|
319
|
+
initial-value: 0;
|
|
320
|
+
}
|
|
321
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
322
|
+
@keyframes pf-v6-c-menu-toggle-m-danger-motion {
|
|
323
|
+
33% {
|
|
324
|
+
--pf-v6-c-menu-toggle--m-danger--TranslateX: -2px;
|
|
325
|
+
}
|
|
326
|
+
66% {
|
|
327
|
+
--pf-v6-c-menu-toggle--m-danger--TranslateX: 3px;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
290
331
|
.pf-v6-c-menu-toggle.pf-m-split-button {
|
|
291
332
|
--pf-v6-c-menu-toggle--Gap: 0;
|
|
292
333
|
--pf-v6-c-menu-toggle--m-split-button--child--BorderInlineStartColor: var(--pf-v6-c-menu-toggle--BorderColor);
|
|
@@ -152,6 +152,8 @@
|
|
|
152
152
|
|
|
153
153
|
// Status icon
|
|
154
154
|
--#{$menu-toggle}__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
155
|
+
--#{$menu-toggle}__status-icon--m-danger--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--icon--default);
|
|
156
|
+
--#{$menu-toggle}__status-icon--m-danger--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
|
|
155
157
|
|
|
156
158
|
// Success
|
|
157
159
|
--#{$menu-toggle}--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
|
|
@@ -164,6 +166,8 @@
|
|
|
164
166
|
// Danger
|
|
165
167
|
--#{$menu-toggle}--m-danger--BorderColor: var(--pf-t--global--border--color--status--danger--default);
|
|
166
168
|
--#{$menu-toggle}--m-danger__status-icon--Color: var(--pf-t--global--icon--color--status--danger--default);
|
|
169
|
+
--#{$menu-toggle}--m-danger--AnimationDuration--Transform: var(--pf-t--global--motion--duration--fade--default);
|
|
170
|
+
--#{$menu-toggle}--m-danger--AnimationTimingFunction--Transform: var(--pf-t--global--motion--timing-function--default);
|
|
167
171
|
|
|
168
172
|
// Placeholder
|
|
169
173
|
--#{$menu-toggle}--m-placeholder--Color: var(--pf-t--global--text--color--placeholder);
|
|
@@ -337,6 +341,32 @@
|
|
|
337
341
|
&.pf-m-danger {
|
|
338
342
|
--#{$menu-toggle}--BorderColor: var(--#{$menu-toggle}--m-danger--BorderColor);
|
|
339
343
|
--#{$menu-toggle}__status-icon--Color: var(--#{$menu-toggle}--m-danger__status-icon--Color);
|
|
344
|
+
|
|
345
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
346
|
+
transform: translateX(var(--#{$menu-toggle}--m-danger--TranslateX, 0));
|
|
347
|
+
animation-name: #{$menu-toggle}-m-danger-motion;
|
|
348
|
+
animation-duration: var(--#{$menu-toggle}--m-danger--AnimationDuration--Transform);
|
|
349
|
+
animation-timing-function: var(--#{$menu-toggle}--m-danger--AnimationTimingFunction--Transform);
|
|
350
|
+
animation-fill-mode: both;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.#{$menu-toggle}__status-icon {
|
|
354
|
+
animation-name: #{$menu-toggle}-status-icon-fade-in;
|
|
355
|
+
animation-duration: var(--#{$menu-toggle}__status-icon--m-danger--TransitionDuration--Opacity);
|
|
356
|
+
animation-timing-function: var(--#{$menu-toggle}__status-icon--m-danger--TransitionTimingFunction--Opacity);
|
|
357
|
+
|
|
358
|
+
// stylelint-disable max-nesting-depth
|
|
359
|
+
@keyframes #{$menu-toggle}-status-icon-fade-in {
|
|
360
|
+
from {
|
|
361
|
+
opacity: 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
to {
|
|
365
|
+
opacity: 1;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
// stylelint-enable
|
|
369
|
+
}
|
|
340
370
|
}
|
|
341
371
|
|
|
342
372
|
&.pf-m-placeholder {
|
|
@@ -357,6 +387,25 @@
|
|
|
357
387
|
}
|
|
358
388
|
}
|
|
359
389
|
|
|
390
|
+
// Register the property type for the custom property to be animatable
|
|
391
|
+
@property --#{$menu-toggle}--m-danger--TranslateX {
|
|
392
|
+
syntax: "<length>";
|
|
393
|
+
inherits: false;
|
|
394
|
+
initial-value: 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
398
|
+
@keyframes #{$menu-toggle}-m-danger-motion {
|
|
399
|
+
33% {
|
|
400
|
+
--#{$menu-toggle}--m-danger--TranslateX: -2px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
66% {
|
|
404
|
+
--#{$menu-toggle}--m-danger--TranslateX: 3px;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
360
409
|
// - Menu toggle split button
|
|
361
410
|
.#{$menu-toggle}.pf-m-split-button {
|
|
362
411
|
--#{$menu-toggle}--Gap: 0;
|
package/components/Nav/nav.css
CHANGED
|
@@ -23,13 +23,15 @@
|
|
|
23
23
|
--pf-v6-c-nav__item--ScrollSnapAlign: end;
|
|
24
24
|
--pf-v6-c-nav__section-title--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
25
25
|
--pf-v6-c-nav__section-title--Color: var(--pf-t--global--text--color--regular);
|
|
26
|
-
--pf-v6-c-nav__section-title--PaddingBlockStart:
|
|
27
|
-
--pf-v6-c-nav__section-title--PaddingBlockEnd:
|
|
26
|
+
--pf-v6-c-nav__section-title--PaddingBlockStart: 0;
|
|
27
|
+
--pf-v6-c-nav__section-title--PaddingBlockEnd: 0;
|
|
28
28
|
--pf-v6-c-nav__section-title--PaddingInlineStart: var(--pf-v6-c-nav__link--PaddingInlineStart);
|
|
29
29
|
--pf-v6-c-nav__section-title--PaddingInlineEnd: var(--pf-v6-c-nav__link--PaddingInlineEnd);
|
|
30
30
|
--pf-v6-c-nav__item--RowGap: var(--pf-v6-c-nav__list--RowGap);
|
|
31
31
|
--pf-v6-c-nav__item__toggle-icon--Rotate: 0;
|
|
32
32
|
--pf-v6-c-nav__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
33
|
+
--pf-v6-c-nav__item__toggle-icon--TransitionDuration--transform: var(--pf-t--global--motion--duration--icon--default);
|
|
34
|
+
--pf-v6-c-nav__item__toggle-icon--TransitionTimingFunction--transform: var(--pf-t--global--motion--timing-function--default);
|
|
33
35
|
--pf-v6-c-nav__link--ColumnGap: var(--pf-t--global--spacer--sm);
|
|
34
36
|
--pf-v6-c-nav__link--AlignItems: baseline;
|
|
35
37
|
--pf-v6-c-nav__link--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
@@ -40,10 +42,19 @@
|
|
|
40
42
|
--pf-v6-c-nav__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--hover);
|
|
41
43
|
--pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
|
|
42
44
|
--pf-v6-c-nav__link--m-current--Color: var(--pf-t--global--text--color--regular);
|
|
45
|
+
--pf-v6-c-nav__link--TransitionDuration--background-color: var(--pf-t--global--motion--duration--fade--default);
|
|
46
|
+
--pf-v6-c-nav__link--TransitionTimingFunction--background-color: var(--pf-t--global--motion--timing-function--default);
|
|
47
|
+
--pf-v6-c-nav__link--m-current--TransitionDuration--color: var(--pf-t--global--motion--duration--fade--short);
|
|
48
|
+
--pf-v6-c-nav__link--m-current--TransitionTimingFunction--color: var(--pf-t--global--motion--timing-function--default);
|
|
43
49
|
--pf-v6-c-nav__link-icon--Color: var(--pf-t--global--icon--color--subtle);
|
|
44
50
|
--pf-v6-c-nav__link--m-current__link-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
45
51
|
--pf-v6-c-nav__subnav--RowGap: var(--pf-t--global--border--width--extra-strong);
|
|
52
|
+
--pf-v6-c-nav__subnav--PaddingBlockStart: var(--pf-v6-c-nav__item--RowGap);
|
|
53
|
+
--pf-v6-c-nav__subnav--PaddingBlockEnd: var(--pf-v6-c-nav__item--RowGap);
|
|
46
54
|
--pf-v6-c-nav__subnav--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
55
|
+
--pf-v6-c-nav__subnav--TransitionDuration--expansion: 0s;
|
|
56
|
+
--pf-v6-c-nav__subnav--hidden--TransitionDuration--expansion: 0s;
|
|
57
|
+
--pf-v6-c-nav__subnav--TransitionTimingFunction--expansion: var(--pf-t--global--motion--timing-function--default);
|
|
47
58
|
--pf-v6-c-nav__scroll-button--BorderColor: var(--pf-t--global--border--color--default);
|
|
48
59
|
--pf-v6-c-nav__scroll-button--BorderWidth: var(--pf-t--global--border--width--divider--default);
|
|
49
60
|
--pf-v6-c-nav__scroll-button--first-of-type--c-button--BorderStartStartRadius: var(--pf-t--global--border--radius--pill);
|
|
@@ -72,6 +83,12 @@
|
|
|
72
83
|
--pf-v6-c-nav--m-horizontal--m-subnav__link--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
73
84
|
--pf-v6-c-nav--m-horizontal--m-subnav__link--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
74
85
|
}
|
|
86
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
87
|
+
.pf-v6-c-nav {
|
|
88
|
+
--pf-v6-c-nav__subnav--TransitionDuration--expansion: var(--pf-t--global--motion--duration--slide-in--default);
|
|
89
|
+
--pf-v6-c-nav__subnav--hidden--TransitionDuration--expansion: var(--pf-t--global--motion--duration--slide-in--short);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
75
92
|
|
|
76
93
|
.pf-v6-c-nav,
|
|
77
94
|
.pf-v6-c-nav__section,
|
|
@@ -123,7 +140,7 @@
|
|
|
123
140
|
}
|
|
124
141
|
|
|
125
142
|
[class^=pf-v6-c-nav][hidden] {
|
|
126
|
-
|
|
143
|
+
visibility: hidden;
|
|
127
144
|
}
|
|
128
145
|
|
|
129
146
|
.pf-v6-c-nav__nav,
|
|
@@ -132,30 +149,43 @@
|
|
|
132
149
|
--pf-v6-c-nav__item--RowGap--row-offset: calc(var(--pf-v6-c-nav__list--RowGap) / 2 * -1);
|
|
133
150
|
--pf-v6-c-nav__link--clickable-inset--Block: var(--pf-v6-c-nav__item--RowGap--row-offset);
|
|
134
151
|
--pf-v6-c-nav__button--RowGap--row-offset: calc(var(--pf-v6-c-nav__item--RowGap) * -1);
|
|
152
|
+
visibility: visible;
|
|
135
153
|
}
|
|
136
154
|
|
|
137
155
|
.pf-v6-c-nav__list {
|
|
138
156
|
row-gap: var(--pf-v6-c-nav__list--RowGap);
|
|
139
157
|
column-gap: var(--pf-v6-c-nav__list--ColumnGap);
|
|
158
|
+
min-height: 0;
|
|
140
159
|
}
|
|
141
160
|
|
|
142
161
|
.pf-v6-c-nav__subnav {
|
|
143
162
|
--pf-v6-c-nav__list--RowGap: var(--pf-v6-c-nav__subnav--RowGap);
|
|
163
|
+
grid-template-rows: 1fr;
|
|
164
|
+
min-height: 0;
|
|
165
|
+
padding-block-start: var(--pf-v6-c-nav__subnav--PaddingBlockStart);
|
|
166
|
+
padding-block-end: var(--pf-v6-c-nav__subnav--PaddingBlockEnd);
|
|
144
167
|
padding-inline-start: var(--pf-v6-c-nav__subnav--PaddingInlineStart);
|
|
168
|
+
overflow-y: clip;
|
|
169
|
+
transition-timing-function: var(--pf-v6-c-nav__subnav--TransitionTimingFunction--expansion);
|
|
170
|
+
transition-duration: var(--pf-v6-c-nav__subnav--TransitionDuration--expansion);
|
|
171
|
+
transition-property: grid-template-rows, padding-block-start, padding-block-end, opacity;
|
|
172
|
+
}
|
|
173
|
+
.pf-v6-c-nav__subnav[hidden] {
|
|
174
|
+
--pf-v6-c-nav__subnav--TransitionDuration--expansion: var(--pf-v6-c-nav__subnav--hidden--TransitionDuration--expansion);
|
|
175
|
+
--pf-v6-c-nav__subnav--PaddingBlockStart: 0;
|
|
176
|
+
--pf-v6-c-nav__subnav--PaddingBlockEnd: 0;
|
|
177
|
+
grid-template-rows: 0fr;
|
|
178
|
+
opacity: 0;
|
|
145
179
|
}
|
|
146
180
|
|
|
147
181
|
.pf-v6-c-nav__item {
|
|
148
|
-
row-gap: var(--pf-v6-c-nav__item--RowGap);
|
|
149
182
|
scroll-snap-align: var(--pf-v6-c-nav__item--ScrollSnapAlign);
|
|
150
183
|
}
|
|
151
184
|
.pf-v6-c-nav__item > .pf-v6-c-nav__link[button] {
|
|
152
185
|
margin-block-end: var(--pf-v6-c-nav__button--RowGap--row-offset);
|
|
153
186
|
}
|
|
154
|
-
.pf-v6-c-nav__item.pf-m-expanded:
|
|
155
|
-
margin-block-end: var(--pf-v6-c-
|
|
156
|
-
}
|
|
157
|
-
.pf-v6-c-nav__item.pf-m-expanded:is(:not(:only-child, :last-child)) + .pf-v6-c-nav__item > .pf-v6-c-nav__link::before {
|
|
158
|
-
inset-block-start: calc(var(--pf-v6-c-nav__item--RowGap) * -1 - var(--pf-v6-c-nav__list--RowGap));
|
|
187
|
+
.pf-v6-c-nav__item.pf-m-expanded:last-child > .pf-v6-c-nav__subnav {
|
|
188
|
+
margin-block-end: calc(var(--pf-v6-c-nav__subnav--PaddingBlockEnd) * -1);
|
|
159
189
|
}
|
|
160
190
|
|
|
161
191
|
.pf-v6-c-nav__section {
|
|
@@ -186,13 +216,13 @@
|
|
|
186
216
|
line-height: var(--pf-v6-c-nav__link--LineHeight, inherit);
|
|
187
217
|
color: var(--pf-v6-c-nav__link--Color);
|
|
188
218
|
text-align: start;
|
|
189
|
-
text-decoration: none;
|
|
219
|
+
text-decoration-line: none;
|
|
190
220
|
background-color: var(--pf-v6-c-nav__link--BackgroundColor);
|
|
191
221
|
border: none;
|
|
192
222
|
border-radius: var(--pf-v6-c-nav__link--BorderRadius);
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
223
|
+
transition-timing-function: var(--pf-v6-c-nav__link--TransitionTimingFunction--background-color), var(--pf-v6-c-nav__link--m-current--TransitionTimingFunction--color);
|
|
224
|
+
transition-duration: var(--pf-v6-c-nav__link--TransitionDuration--background-color), var(--pf-v6-c-nav__link--m-current--TransitionDuration--color);
|
|
225
|
+
transition-property: background-color, color;
|
|
196
226
|
}
|
|
197
227
|
.pf-v6-c-nav__link:hover, .pf-v6-c-nav__link.pf-m-hover, .pf-v6-c-nav__link:focus {
|
|
198
228
|
color: var(--pf-v6-c-nav__link--hover--Color);
|
|
@@ -217,6 +247,9 @@
|
|
|
217
247
|
|
|
218
248
|
.pf-v6-c-nav__toggle-icon {
|
|
219
249
|
display: inline-block;
|
|
250
|
+
transition-timing-function: var(--pf-v6-c-nav__item__toggle-icon--TransitionTimingFunction--transform);
|
|
251
|
+
transition-duration: var(--pf-v6-c-nav__item__toggle-icon--TransitionDuration--transform);
|
|
252
|
+
transition-property: transform;
|
|
220
253
|
transform: rotate(var(--pf-v6-c-nav__item__toggle-icon--Rotate));
|
|
221
254
|
}
|
|
222
255
|
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-nav__toggle-icon {
|
package/components/Nav/nav.scss
CHANGED
|
@@ -32,15 +32,19 @@
|
|
|
32
32
|
// * Nav section title
|
|
33
33
|
--#{$nav}__section-title--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
34
34
|
--#{$nav}__section-title--Color: var(--pf-t--global--text--color--regular);
|
|
35
|
-
--#{$nav}__section-title--PaddingBlockStart:
|
|
36
|
-
--#{$nav}__section-title--PaddingBlockEnd:
|
|
35
|
+
--#{$nav}__section-title--PaddingBlockStart: 0;
|
|
36
|
+
--#{$nav}__section-title--PaddingBlockEnd: 0;
|
|
37
37
|
--#{$nav}__section-title--PaddingInlineStart: var(--#{$nav}__link--PaddingInlineStart);
|
|
38
38
|
--#{$nav}__section-title--PaddingInlineEnd: var(--#{$nav}__link--PaddingInlineEnd);
|
|
39
39
|
|
|
40
|
-
// * Nav
|
|
40
|
+
// * Nav item
|
|
41
41
|
--#{$nav}__item--RowGap: var(--#{$nav}__list--RowGap);
|
|
42
|
+
|
|
43
|
+
// * Nav item toggle icon
|
|
42
44
|
--#{$nav}__item__toggle-icon--Rotate: 0;
|
|
43
45
|
--#{$nav}__item--m-expanded__toggle-icon--Rotate: 90deg;
|
|
46
|
+
--#{$nav}__item__toggle-icon--TransitionDuration--transform: var(--pf-t--global--motion--duration--icon--default);
|
|
47
|
+
--#{$nav}__item__toggle-icon--TransitionTimingFunction--transform: var(--pf-t--global--motion--timing-function--default);
|
|
44
48
|
|
|
45
49
|
// * Nav link
|
|
46
50
|
--#{$nav}__link--ColumnGap: var(--pf-t--global--spacer--sm);
|
|
@@ -54,13 +58,31 @@
|
|
|
54
58
|
--#{$nav}__link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
|
|
55
59
|
--#{$nav}__link--m-current--Color: var(--pf-t--global--text--color--regular);
|
|
56
60
|
|
|
61
|
+
// background color transition on hover
|
|
62
|
+
--#{$nav}__link--TransitionDuration--background-color: var(--pf-t--global--motion--duration--fade--default);
|
|
63
|
+
--#{$nav}__link--TransitionTimingFunction--background-color: var(--pf-t--global--motion--timing-function--default);
|
|
64
|
+
|
|
65
|
+
// text color transition for current
|
|
66
|
+
--#{$nav}__link--m-current--TransitionDuration--color: var(--pf-t--global--motion--duration--fade--short);
|
|
67
|
+
--#{$nav}__link--m-current--TransitionTimingFunction--color: var(--pf-t--global--motion--timing-function--default);
|
|
68
|
+
|
|
57
69
|
// * Nav link icon
|
|
58
70
|
--#{$nav}__link-icon--Color: var(--pf-t--global--icon--color--subtle);
|
|
59
71
|
--#{$nav}__link--m-current__link-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
60
72
|
|
|
61
73
|
// * Nav subnav
|
|
62
74
|
--#{$nav}__subnav--RowGap: var(--pf-t--global--border--width--extra-strong);
|
|
75
|
+
--#{$nav}__subnav--PaddingBlockStart: var(--#{$nav}__item--RowGap); // needed to keep focus outline on first item from being cut off
|
|
76
|
+
--#{$nav}__subnav--PaddingBlockEnd: var(--#{$nav}__item--RowGap); // needed to keep focus outline on last item from being cut off
|
|
63
77
|
--#{$nav}__subnav--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
78
|
+
--#{$nav}__subnav--TransitionDuration--expansion: 0s; // no slide by default
|
|
79
|
+
--#{$nav}__subnav--hidden--TransitionDuration--expansion: 0s;
|
|
80
|
+
--#{$nav}__subnav--TransitionTimingFunction--expansion: var(--pf-t--global--motion--timing-function--default);
|
|
81
|
+
|
|
82
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
83
|
+
--#{$nav}__subnav--TransitionDuration--expansion: var(--pf-t--global--motion--duration--slide-in--default);
|
|
84
|
+
--#{$nav}__subnav--hidden--TransitionDuration--expansion: var(--pf-t--global--motion--duration--slide-in--short);
|
|
85
|
+
}
|
|
64
86
|
|
|
65
87
|
// * Nav scroll button
|
|
66
88
|
--#{$nav}__scroll-button--BorderColor: var(--pf-t--global--border--color--default);
|
|
@@ -149,7 +171,7 @@
|
|
|
149
171
|
.#{$menu}__list {
|
|
150
172
|
row-gap: var(--#{$nav}__subnav--RowGap);
|
|
151
173
|
}
|
|
152
|
-
|
|
174
|
+
|
|
153
175
|
.#{$menu}__list-item::before {
|
|
154
176
|
border-radius: var(--#{$nav}__link--BorderRadius);
|
|
155
177
|
}
|
|
@@ -158,7 +180,7 @@
|
|
|
158
180
|
}
|
|
159
181
|
|
|
160
182
|
[class^="#{$nav}"][hidden] {
|
|
161
|
-
|
|
183
|
+
visibility: hidden;
|
|
162
184
|
}
|
|
163
185
|
|
|
164
186
|
// Magic value calcs
|
|
@@ -169,35 +191,52 @@
|
|
|
169
191
|
--#{$nav}__item--RowGap--row-offset: calc(var(--#{$nav}__list--RowGap) / 2 * -1); // row gap offset calcs 1/2 height of row gap
|
|
170
192
|
--#{$nav}__link--clickable-inset--Block: var(--#{$nav}__item--RowGap--row-offset); // set link's clickable area offset based on 1/2 row gap
|
|
171
193
|
--#{$nav}__button--RowGap--row-offset: calc(var(--#{$nav}__item--RowGap) * -1); // match extra bottom paddings applied to expanded nav_links
|
|
194
|
+
|
|
195
|
+
visibility: visible;
|
|
172
196
|
}
|
|
173
197
|
|
|
174
198
|
// - Nav list
|
|
175
199
|
.#{$nav}__list {
|
|
176
200
|
row-gap: var(--#{$nav}__list--RowGap);
|
|
177
201
|
column-gap: var(--#{$nav}__list--ColumnGap);
|
|
202
|
+
min-height: 0;
|
|
178
203
|
}
|
|
179
204
|
|
|
180
205
|
// - Nav subnav
|
|
181
206
|
.#{$nav}__subnav {
|
|
182
207
|
--#{$nav}__list--RowGap: var(--#{$nav}__subnav--RowGap); // this value is passed to --#{$nav}__item--RowGap--row-offset and updates clickable area based on value passed
|
|
183
208
|
|
|
209
|
+
grid-template-rows: 1fr;
|
|
210
|
+
min-height: 0;
|
|
211
|
+
padding-block-start: var(--#{$nav}__subnav--PaddingBlockStart);
|
|
212
|
+
padding-block-end: var(--#{$nav}__subnav--PaddingBlockEnd);
|
|
184
213
|
padding-inline-start: var(--#{$nav}__subnav--PaddingInlineStart); // indent nested lists
|
|
214
|
+
overflow-y: clip;
|
|
215
|
+
transition-timing-function: var(--#{$nav}__subnav--TransitionTimingFunction--expansion);
|
|
216
|
+
transition-duration: var(--#{$nav}__subnav--TransitionDuration--expansion);
|
|
217
|
+
transition-property: grid-template-rows, padding-block-start, padding-block-end, opacity;
|
|
218
|
+
|
|
219
|
+
&[hidden] {
|
|
220
|
+
--#{$nav}__subnav--TransitionDuration--expansion: var(--#{$nav}__subnav--hidden--TransitionDuration--expansion);
|
|
221
|
+
--#{$nav}__subnav--PaddingBlockStart: 0;
|
|
222
|
+
--#{$nav}__subnav--PaddingBlockEnd: 0;
|
|
223
|
+
|
|
224
|
+
grid-template-rows: 0fr;
|
|
225
|
+
opacity: 0;
|
|
226
|
+
}
|
|
185
227
|
}
|
|
186
228
|
|
|
187
229
|
// - Nav item
|
|
188
230
|
.#{$nav}__item {
|
|
189
|
-
row-gap: var(--#{$nav}__item--RowGap); // no fallback here as this value is used to calc clickable offsets
|
|
190
231
|
scroll-snap-align: var(--#{$nav}__item--ScrollSnapAlign);
|
|
191
232
|
|
|
192
233
|
> .#{$nav}__link[button] {
|
|
193
234
|
margin-block-end: var(--#{$nav}__button--RowGap--row-offset);
|
|
194
235
|
}
|
|
195
236
|
|
|
196
|
-
&.pf-m-expanded:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
+ .#{$nav}__item > .#{$nav}__link::before {
|
|
200
|
-
inset-block-start: calc(var(--#{$nav}__item--RowGap) * -1 - var(--#{$nav}__list--RowGap));
|
|
237
|
+
&.pf-m-expanded:last-child {
|
|
238
|
+
> .#{$nav}__subnav {
|
|
239
|
+
margin-block-end: calc(var(--#{$nav}__subnav--PaddingBlockEnd) * -1); // offset bottom padding
|
|
201
240
|
}
|
|
202
241
|
}
|
|
203
242
|
}
|
|
@@ -233,15 +272,13 @@
|
|
|
233
272
|
line-height: var(--#{$nav}__link--LineHeight, inherit); // default to nav line height if no custom value is set
|
|
234
273
|
color: var(--#{$nav}__link--Color);
|
|
235
274
|
text-align: start;
|
|
236
|
-
text-decoration: none;
|
|
275
|
+
text-decoration-line: none;
|
|
237
276
|
background-color: var(--#{$nav}__link--BackgroundColor);
|
|
238
277
|
border: none;
|
|
239
278
|
border-radius: var(--#{$nav}__link--BorderRadius);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
inset-block-end: calc(var(--#{$nav}__item--RowGap) * -1);
|
|
244
|
-
}
|
|
279
|
+
transition-timing-function: var(--#{$nav}__link--TransitionTimingFunction--background-color), var(--#{$nav}__link--m-current--TransitionTimingFunction--color);
|
|
280
|
+
transition-duration: var(--#{$nav}__link--TransitionDuration--background-color), var(--#{$nav}__link--m-current--TransitionDuration--color);
|
|
281
|
+
transition-property: background-color, color;
|
|
245
282
|
|
|
246
283
|
// explicitly set background-color prop to avoid affecting child elements settings
|
|
247
284
|
&:hover,
|
|
@@ -278,6 +315,9 @@
|
|
|
278
315
|
// - Nav toggle icon
|
|
279
316
|
.#{$nav}__toggle-icon {
|
|
280
317
|
display: inline-block;
|
|
318
|
+
transition-timing-function: var(--#{$nav}__item__toggle-icon--TransitionTimingFunction--transform);
|
|
319
|
+
transition-duration: var(--#{$nav}__item__toggle-icon--TransitionDuration--transform);
|
|
320
|
+
transition-property: transform;
|
|
281
321
|
transform: rotate(var(--#{$nav}__item__toggle-icon--Rotate));
|
|
282
322
|
|
|
283
323
|
@include pf-v6-mirror-inline-on-rtl;
|
package/components/Page/page.css
CHANGED
|
@@ -36,12 +36,18 @@
|
|
|
36
36
|
--pf-v6-c-page__main-container--GridArea: main;
|
|
37
37
|
--pf-v6-c-page--masthead--main-container--GridArea: sidebar / sidebar / main / main;
|
|
38
38
|
--pf-v6-c-page__main-container--MaxHeight: calc(100% - var(--pf-t--global--spacer--lg));
|
|
39
|
+
--pf-v6-c-page__main-container--AlignSelf: start;
|
|
39
40
|
--pf-v6-c-page__main-container--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
40
41
|
--pf-v6-c-page__main-container--MarginInlineStart: var(--pf-v6-c-page--inset);
|
|
41
42
|
--pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-v6-c-page--inset);
|
|
42
43
|
--pf-v6-c-page__main-container--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
43
44
|
--pf-v6-c-page__main-container--BorderWidth: 0.25rem;
|
|
44
45
|
--pf-v6-c-page__main-container--BorderColor: var(--pf-v6-c-page__main-container--BackgroundColor);
|
|
46
|
+
--pf-v6-c-page__main-container--xs--AlignSelf: stretch;
|
|
47
|
+
--pf-v6-c-page__main-container--xs--BorderRadius: 0;
|
|
48
|
+
--pf-v6-c-page__main-container--xs--MarginInlineStart: 0;
|
|
49
|
+
--pf-v6-c-page__main-container--xs--MaxHeight: 100%;
|
|
50
|
+
--pf-v6-c-page__main-container--xs--MarginInlineEnd: 0;
|
|
45
51
|
--pf-v6-c-page__main-section--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
46
52
|
--pf-v6-c-page__main-section--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
|
|
47
53
|
--pf-v6-c-page__main-section--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
@@ -399,7 +405,7 @@
|
|
|
399
405
|
.pf-v6-c-page__main-container {
|
|
400
406
|
display: flex;
|
|
401
407
|
flex-direction: column;
|
|
402
|
-
align-self:
|
|
408
|
+
align-self: var(--pf-v6-c-page__main-container--AlignSelf);
|
|
403
409
|
max-height: var(--pf-v6-c-page__main-container--MaxHeight);
|
|
404
410
|
margin-inline-start: var(--pf-v6-c-page__main-container--MarginInlineStart);
|
|
405
411
|
margin-inline-end: var(--pf-v6-c-page__main-container--MarginInlineEnd);
|
|
@@ -407,6 +413,15 @@
|
|
|
407
413
|
border: var(--pf-v6-c-page__main-container--BorderWidth) solid var(--pf-v6-c-page__main-container--BorderColor);
|
|
408
414
|
border-radius: var(--pf-v6-c-page__main-container--BorderRadius);
|
|
409
415
|
}
|
|
416
|
+
@media screen and (max-width: calc(48rem - 1px)) {
|
|
417
|
+
.pf-v6-c-page__main-container {
|
|
418
|
+
--pf-v6-c-page__main-container--AlignSelf: var(--pf-v6-c-page__main-container--xs--AlignSelf);
|
|
419
|
+
--pf-v6-c-page__main-container--MarginInlineStart: var(--pf-v6-c-page__main-container--xs--MarginInlineStart);
|
|
420
|
+
--pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-v6-c-page__main-container--xs--MarginInlineEnd);
|
|
421
|
+
--pf-v6-c-page__main-container--MaxHeight: var(--pf-v6-c-page__main-container--xs--MaxHeight);
|
|
422
|
+
--pf-v6-c-page__main-container--BorderRadius: var(--pf-v6-c-page__main-container--xs--BorderRadius);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
410
425
|
|
|
411
426
|
.pf-v6-c-page__main-container,
|
|
412
427
|
.pf-v6-c-page__drawer {
|
|
@@ -60,12 +60,18 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
60
60
|
--#{$page}__main-container--GridArea: main;
|
|
61
61
|
--#{$page}--masthead--main-container--GridArea: sidebar / sidebar / main / main; // no sidebar
|
|
62
62
|
--#{$page}__main-container--MaxHeight: calc(100% - var(--pf-t--global--spacer--lg));
|
|
63
|
+
--#{$page}__main-container--AlignSelf: start;
|
|
63
64
|
--#{$page}__main-container--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
64
|
-
--#{$page}__main-container--MarginInlineStart: var(--#{$page}--inset);
|
|
65
|
+
--#{$page}__main-container--MarginInlineStart: var(--#{$page}--inset);
|
|
65
66
|
--#{$page}__main-container--MarginInlineEnd: var(--#{$page}--inset);
|
|
66
67
|
--#{$page}__main-container--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
67
68
|
--#{$page}__main-container--BorderWidth: #{pf-size-prem(4px)}; // TODO Change to be a page outline token
|
|
68
69
|
--#{$page}__main-container--BorderColor: var(--#{$page}__main-container--BackgroundColor); // TODO Border should match the background to blend in - change to be a page outline token
|
|
70
|
+
--#{$page}__main-container--xs--AlignSelf: stretch;
|
|
71
|
+
--#{$page}__main-container--xs--BorderRadius: 0;
|
|
72
|
+
--#{$page}__main-container--xs--MarginInlineStart: 0;
|
|
73
|
+
--#{$page}__main-container--xs--MaxHeight: 100%;
|
|
74
|
+
--#{$page}__main-container--xs--MarginInlineEnd: 0;
|
|
69
75
|
|
|
70
76
|
// Main section
|
|
71
77
|
--#{$page}__main-section--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
@@ -80,7 +86,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
80
86
|
|
|
81
87
|
// Limit width
|
|
82
88
|
--#{$page}--section--m-limit-width--MaxWidth: calc(#{pf-size-prem(2000px)} - var(--#{$page}__sidebar--Width));
|
|
83
|
-
|
|
89
|
+
|
|
84
90
|
// Sticky
|
|
85
91
|
--#{$page}--section--m-sticky-top--ZIndex: var(--pf-t--global--z-index--md);
|
|
86
92
|
--#{$page}--section--m-sticky-top--BoxShadow: var(--pf-t--global--box-shadow--sm--bottom);
|
|
@@ -320,13 +326,21 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
320
326
|
.#{$page}__main-container {
|
|
321
327
|
display: flex;
|
|
322
328
|
flex-direction: column;
|
|
323
|
-
align-self:
|
|
329
|
+
align-self: var(--#{$page}__main-container--AlignSelf);
|
|
324
330
|
max-height: var(--#{$page}__main-container--MaxHeight);
|
|
325
331
|
margin-inline-start: var(--#{$page}__main-container--MarginInlineStart);
|
|
326
332
|
margin-inline-end: var(--#{$page}__main-container--MarginInlineEnd);
|
|
327
333
|
background: var(--#{$page}__main-container--BackgroundColor);
|
|
328
334
|
border: var(--#{$page}__main-container--BorderWidth) solid var(--#{$page}__main-container--BorderColor);
|
|
329
335
|
border-radius: var(--#{$page}__main-container--BorderRadius);
|
|
336
|
+
|
|
337
|
+
@media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
|
|
338
|
+
--#{$page}__main-container--AlignSelf: var(--#{$page}__main-container--xs--AlignSelf);
|
|
339
|
+
--#{$page}__main-container--MarginInlineStart: var(--#{$page}__main-container--xs--MarginInlineStart);
|
|
340
|
+
--#{$page}__main-container--MarginInlineEnd: var(--#{$page}__main-container--xs--MarginInlineEnd);
|
|
341
|
+
--#{$page}__main-container--MaxHeight: var(--#{$page}__main-container--xs--MaxHeight);
|
|
342
|
+
--#{$page}__main-container--BorderRadius: var(--#{$page}__main-container--xs--BorderRadius);
|
|
343
|
+
}
|
|
330
344
|
}
|
|
331
345
|
|
|
332
346
|
.#{$page}__main-container,
|
|
@@ -187,9 +187,11 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.pf-v6-c-popover__title-text {
|
|
190
|
+
min-width: 0;
|
|
190
191
|
font-size: var(--pf-v6-c-popover__title-text--FontSize);
|
|
191
192
|
font-weight: var(--pf-v6-c-popover__title-text--FontWeight);
|
|
192
193
|
color: var(--pf-v6-c-popover__title-text--Color);
|
|
194
|
+
overflow-wrap: break-word;
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
.pf-v6-c-popover__body {
|
|
@@ -247,9 +247,11 @@
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
.#{$popover}__title-text {
|
|
250
|
+
min-width: 0;
|
|
250
251
|
font-size: var(--#{$popover}__title-text--FontSize);
|
|
251
252
|
font-weight: var(--#{$popover}__title-text--FontWeight);
|
|
252
253
|
color: var(--#{$popover}__title-text--Color);
|
|
254
|
+
overflow-wrap: break-word;
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
// Body
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
--pf-v6-c-progress--GridGap: var(--pf-t--global--spacer--md);
|
|
3
3
|
--pf-v6-c-progress__bar--Height: var(--pf-t--global--spacer--md);
|
|
4
4
|
--pf-v6-c-progress__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default);
|
|
5
|
+
--pf-v6-c-progress__bar--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
5
6
|
--pf-v6-c-progress__measure--m-static-width--MinWidth: 4.5ch;
|
|
6
7
|
--pf-v6-c-progress__status--Gap: var(--pf-t--global--spacer--sm);
|
|
7
8
|
--pf-v6-c-progress__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
@@ -143,7 +144,9 @@
|
|
|
143
144
|
grid-column: 1/3;
|
|
144
145
|
align-self: center;
|
|
145
146
|
height: var(--pf-v6-c-progress__bar--Height);
|
|
147
|
+
overflow: hidden;
|
|
146
148
|
background-color: var(--pf-v6-c-progress__bar--BackgroundColor);
|
|
149
|
+
border-radius: var(--pf-v6-c-progress__bar--BorderRadius);
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
.pf-v6-c-progress__indicator {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// Element variables
|
|
8
8
|
--#{$progress}__bar--Height: var(--pf-t--global--spacer--md);
|
|
9
9
|
--#{$progress}__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default); // the bar always needs white under it so that the semi-transparent color shows correctly
|
|
10
|
+
--#{$progress}__bar--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
10
11
|
--#{$progress}__measure--m-static-width--MinWidth: 4.5ch; // 4.5 because the % character is wider than a 0
|
|
11
12
|
--#{$progress}__status--Gap: var(--pf-t--global--spacer--sm);
|
|
12
13
|
--#{$progress}__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
@@ -187,7 +188,9 @@
|
|
|
187
188
|
grid-column: 1 / 3;
|
|
188
189
|
align-self: center;
|
|
189
190
|
height: var(--#{$progress}__bar--Height);
|
|
191
|
+
overflow: hidden;
|
|
190
192
|
background-color: var(--#{$progress}__bar--BackgroundColor);
|
|
193
|
+
border-radius: var(--#{$progress}__bar--BorderRadius);
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
// the progress__indicator is the part that advances (widens) as progress is made
|