@patternfly/patternfly 6.5.0-prerelease.51 → 6.5.0-prerelease.53
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/Button/button.css +22 -2
- package/components/Button/button.scss +26 -2
- package/components/Card/card.css +20 -8
- package/components/Card/card.scss +26 -7
- package/components/Masthead/masthead.css +38 -4
- package/components/Masthead/masthead.scss +52 -4
- package/components/MenuToggle/menu-toggle.css +26 -2
- package/components/MenuToggle/menu-toggle.scss +30 -2
- package/components/Nav/nav.css +16 -8
- package/components/Nav/nav.scss +16 -8
- package/components/Page/page.css +59 -7
- package/components/Page/page.scss +79 -15
- package/components/_index.css +181 -31
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +0 -1
- package/docs/components/Button/examples/Button.md +339 -0
- package/docs/components/Masthead/examples/masthead.md +1 -1
- package/docs/components/Menu/examples/Menu.md +0 -2
- package/docs/components/MenuToggle/examples/MenuToggle.md +1 -4
- package/docs/components/Pagination/examples/Pagination.md +0 -13
- package/docs/components/Toolbar/examples/Toolbar.md +0 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +1 -0
- package/docs/demos/Alert/examples/Alert.md +3 -0
- package/docs/demos/BackToTop/examples/BackToTop.md +1 -0
- package/docs/demos/Banner/examples/Banner.md +2 -0
- package/docs/demos/Card/examples/Card.md +564 -86
- package/docs/demos/CardView/examples/CardView.md +16 -3
- package/docs/demos/Compass/examples/Compass.md +551 -134
- package/docs/demos/Dashboard/examples/Dashboard.md +435 -100
- package/docs/demos/DataList/examples/DataList.md +4 -8
- package/docs/demos/DescriptionList/examples/DescriptionList.md +3 -0
- package/docs/demos/Drawer/examples/Drawer.md +5 -0
- package/docs/demos/JumpLinks/examples/JumpLinks.md +6 -0
- package/docs/demos/Masthead/examples/Masthead.md +9 -58
- package/docs/demos/Modal/examples/Modal.md +6 -0
- package/docs/demos/Nav/examples/Nav.md +305 -160
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +5 -0
- package/docs/demos/Page/examples/Page.md +14 -0
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +7 -6
- package/docs/demos/Skeleton/examples/Skeleton.md +1 -0
- package/docs/demos/Table/examples/Table.md +16 -27
- package/docs/demos/Tabs/examples/Tabs.md +6 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +2 -8
- package/docs/demos/Wizard/examples/Wizard.md +9 -0
- package/package.json +1 -1
- package/patternfly-no-globals.css +181 -31
- package/patternfly.css +181 -31
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +3 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--pf-v6-c-button--AlignItems: baseline;
|
|
4
4
|
--pf-v6-c-button--JustifyContent: center;
|
|
5
5
|
--pf-v6-c-button--Gap: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
6
|
-
--pf-v6-c-button--MinWidth:
|
|
6
|
+
--pf-v6-c-button--MinWidth: initial;
|
|
7
7
|
--pf-v6-c-button--PaddingBlockStart: var(--pf-t--global--spacer--control--vertical--default);
|
|
8
8
|
--pf-v6-c-button--PaddingInlineEnd: var(--pf-t--global--spacer--action--horizontal--default);
|
|
9
9
|
--pf-v6-c-button--PaddingBlockEnd: var(--pf-t--global--spacer--control--vertical--default);
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
gap: var(--pf-v6-c-button--Gap);
|
|
372
372
|
align-items: var(--pf-v6-c-button--AlignItems);
|
|
373
373
|
justify-content: var(--pf-v6-c-button--JustifyContent);
|
|
374
|
-
min-width: var(--pf-v6-c-button--MinWidth);
|
|
374
|
+
min-width: var(--pf-v6-c-button--MinWidth, revert);
|
|
375
375
|
padding-block-start: var(--pf-v6-c-button--PaddingBlockStart);
|
|
376
376
|
padding-block-end: var(--pf-v6-c-button--PaddingBlockEnd);
|
|
377
377
|
padding-inline-start: var(--pf-v6-c-button--PaddingInlineStart);
|
|
@@ -858,8 +858,28 @@ span.pf-v6-c-button.pf-m-link.pf-m-inline {
|
|
|
858
858
|
animation-duration: var(--pf-v6-c-button--m-notify__icon--AnimationDuration--notify);
|
|
859
859
|
animation-timing-function: var(--pf-v6-c-button--m-notify__icon--AnimationTimingFunction--notify);
|
|
860
860
|
}
|
|
861
|
+
.pf-v6-c-button.pf-m-dock {
|
|
862
|
+
justify-content: flex-start;
|
|
863
|
+
width: 100%;
|
|
864
|
+
}
|
|
865
|
+
@media (min-width: 62rem) {
|
|
866
|
+
.pf-v6-c-button.pf-m-dock {
|
|
867
|
+
justify-content: center;
|
|
868
|
+
}
|
|
869
|
+
.pf-v6-c-button.pf-m-dock .pf-v6-c-button__text {
|
|
870
|
+
display: none;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-button, .pf-v6-c-button.pf-m-text-expanded {
|
|
874
|
+
justify-content: flex-start;
|
|
875
|
+
width: 100%;
|
|
876
|
+
}
|
|
877
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-button .pf-v6-c-button__text, .pf-v6-c-button.pf-m-text-expanded .pf-v6-c-button__text {
|
|
878
|
+
display: revert;
|
|
879
|
+
}
|
|
861
880
|
|
|
862
881
|
.pf-v6-c-button__icon {
|
|
882
|
+
min-width: 1lh;
|
|
863
883
|
margin-inline-start: var(--pf-v6-c-button__icon--MarginInlineStart);
|
|
864
884
|
margin-inline-end: var(--pf-v6-c-button__icon--MarginInlineEnd);
|
|
865
885
|
color: var(--pf-v6-c-button__icon--Color);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--#{$button}--AlignItems: baseline;
|
|
6
6
|
--#{$button}--JustifyContent: center;
|
|
7
7
|
--#{$button}--Gap: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
8
|
-
--#{$button}--MinWidth:
|
|
8
|
+
--#{$button}--MinWidth: initial;
|
|
9
9
|
--#{$button}--PaddingBlockStart: var(--pf-t--global--spacer--control--vertical--default);
|
|
10
10
|
--#{$button}--PaddingInlineEnd: var(--pf-t--global--spacer--action--horizontal--default);
|
|
11
11
|
--#{$button}--PaddingBlockEnd: var(--pf-t--global--spacer--control--vertical--default);
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
gap: var(--#{$button}--Gap);
|
|
436
436
|
align-items: var(--#{$button}--AlignItems);
|
|
437
437
|
justify-content: var(--#{$button}--JustifyContent);
|
|
438
|
-
min-width: var(--#{$button}--MinWidth);
|
|
438
|
+
min-width: var(--#{$button}--MinWidth, revert);
|
|
439
439
|
padding-block-start: var(--#{$button}--PaddingBlockStart);
|
|
440
440
|
padding-block-end: var(--#{$button}--PaddingBlockEnd);
|
|
441
441
|
padding-inline-start: var(--#{$button}--PaddingInlineStart);
|
|
@@ -986,9 +986,33 @@
|
|
|
986
986
|
animation-duration: var(--#{$button}--m-notify__icon--AnimationDuration--notify);
|
|
987
987
|
animation-timing-function: var(--#{$button}--m-notify__icon--AnimationTimingFunction--notify);
|
|
988
988
|
}
|
|
989
|
+
|
|
990
|
+
&.pf-m-dock {
|
|
991
|
+
justify-content: flex-start;
|
|
992
|
+
width: 100%;
|
|
993
|
+
|
|
994
|
+
@media (min-width: $pf-v6-global--breakpoint--dock--expand) {
|
|
995
|
+
justify-content: center;
|
|
996
|
+
|
|
997
|
+
.#{$button}__text {
|
|
998
|
+
display: none;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
@at-root .#{$page}__dock.pf-m-text-expanded &,
|
|
1004
|
+
&.pf-m-text-expanded {
|
|
1005
|
+
justify-content: flex-start;
|
|
1006
|
+
width: 100%;
|
|
1007
|
+
|
|
1008
|
+
.#{$button}__text {
|
|
1009
|
+
display: revert;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
989
1012
|
}
|
|
990
1013
|
|
|
991
1014
|
.#{$button}__icon {
|
|
1015
|
+
min-width: 1lh;
|
|
992
1016
|
margin-inline-start: var(--#{$button}__icon--MarginInlineStart);
|
|
993
1017
|
margin-inline-end: var(--#{$button}__icon--MarginInlineEnd);
|
|
994
1018
|
color: var(--#{$button}__icon--Color);
|
package/components/Card/card.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
.pf-v6-c-card {
|
|
2
2
|
--pf-v6-c-card--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
3
|
-
--pf-v6-c-card--BorderColor: var(--pf-t--global--border--color--
|
|
3
|
+
--pf-v6-c-card--BorderColor: var(--pf-t--global--border--color--subtle);
|
|
4
4
|
--pf-v6-c-card--BorderStyle: solid;
|
|
5
5
|
--pf-v6-c-card--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
6
6
|
--pf-v6-c-card--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
7
|
+
--pf-v6-c-card--BoxShadow: var(--pf-t--global--box-shadow--sm);
|
|
7
8
|
--pf-v6-c-card--first-child--PaddingBlockStart: var(--pf-t--global--spacer--lg);
|
|
8
9
|
--pf-v6-c-card--child--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
|
|
9
10
|
--pf-v6-c-card--child--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
|
|
@@ -33,7 +34,8 @@
|
|
|
33
34
|
--pf-v6-c-card__header-toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
34
35
|
--pf-v6-c-card__header-toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
|
|
35
36
|
--pf-v6-c-card--m-expanded__header-toggle-icon--Rotate: -180deg;
|
|
36
|
-
--pf-v6-c-card--m-selectable--BorderWidth: var(--pf-
|
|
37
|
+
--pf-v6-c-card--m-selectable--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
38
|
+
--pf-v6-c-card--m-selectable--BorderColor: var(--pf-t--global--border--color--control--default);
|
|
37
39
|
--pf-v6-c-card--m-clickable--m-current--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
38
40
|
--pf-v6-c-card--m-clickable--m-current--BorderWidth: var(--pf-t--global--border--width--box--clicked);
|
|
39
41
|
--pf-v6-c-card--m-selectable--m-selected--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
@@ -70,13 +72,14 @@
|
|
|
70
72
|
--pf-v6-c-card--m-display-lg--c-divider--child--PaddingBlockStart: var(--pf-t--global--spacer--xl);
|
|
71
73
|
--pf-v6-c-card--m-display-lg__title--not--last-child--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
|
|
72
74
|
--pf-v6-c-card--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
73
|
-
--pf-v6-c-card--m-secondary--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
74
|
-
--pf-v6-c-card--m-secondary--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
75
75
|
--pf-v6-c-card--m-full-height--Height: 100%;
|
|
76
76
|
--pf-v6-c-card--m-plain--BorderColor: transparent;
|
|
77
77
|
--pf-v6-c-card--m-plain--BackgroundColor: transparent;
|
|
78
|
+
--pf-v6-c-card--m-plain--BoxShadow: none;
|
|
78
79
|
--pf-v6-c-card__header--m-toggle-right--toggle--MarginInlineEnd: calc(var(--pf-t--global--spacer--action--horizontal--plain--default) * -1);
|
|
79
80
|
--pf-v6-c-card__header--m-toggle-right--toggle--MarginInlineStart: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
81
|
+
--pf-v6-c-card--m-as-tile--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
82
|
+
--pf-v6-c-card--m-as-tile--BorderColor: var(--pf-t--global--border--color--control--default);
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
.pf-v6-c-card {
|
|
@@ -87,6 +90,7 @@
|
|
|
87
90
|
background-color: var(--pf-v6-c-card--BackgroundColor);
|
|
88
91
|
border: 0;
|
|
89
92
|
border-radius: var(--pf-v6-c-card--BorderRadius);
|
|
93
|
+
box-shadow: var(--pf-v6-c-card--BoxShadow);
|
|
90
94
|
}
|
|
91
95
|
.pf-v6-c-card::before {
|
|
92
96
|
position: absolute;
|
|
@@ -100,6 +104,7 @@
|
|
|
100
104
|
gap: 0;
|
|
101
105
|
}
|
|
102
106
|
.pf-v6-c-card.pf-m-selectable, .pf-v6-c-card.pf-m-clickable {
|
|
107
|
+
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-selectable--BorderColor);
|
|
103
108
|
isolation: isolate;
|
|
104
109
|
}
|
|
105
110
|
.pf-v6-c-card.pf-m-selectable::before, .pf-v6-c-card.pf-m-clickable::before {
|
|
@@ -134,12 +139,16 @@
|
|
|
134
139
|
.pf-v6-c-card.pf-m-selectable.pf-m-clickable .pf-v6-c-card__selectable-actions :is(.pf-v6-c-check__input, .pf-v6-c-radio__input):where(:disabled) ~ :is(.pf-v6-c-check__label, .pf-v6-c-radio__label), .pf-v6-c-card.pf-m-selectable.pf-m-clickable.pf-m-disabled {
|
|
135
140
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-selectable--m-disabled--BackgroundColor);
|
|
136
141
|
}
|
|
137
|
-
.pf-v6-c-card__actions:has(> .pf-v6-c-card__selectable-actions input.pf-v6-screen-reader), .pf-v6-c-card.pf-
|
|
142
|
+
.pf-v6-c-card__actions:has(> .pf-v6-c-card__selectable-actions input.pf-v6-screen-reader), .pf-v6-c-card:has(.pf-v6-c-card__selectable-actions input.pf-v6-screen-reader) {
|
|
143
|
+
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-as-tile--BackgroundColor);
|
|
144
|
+
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-as-tile--BorderColor);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pf-v6-c-card.pf-m-clickable:not(.pf-m-selectable) {
|
|
138
148
|
--pf-v6-c-card__actions--PaddingInlineStart: 0;
|
|
139
149
|
--pf-v6-c-card__actions--MarginBlockStart: 0;
|
|
140
150
|
--pf-v6-c-card__actions--MarginBlockEnd: 0;
|
|
141
151
|
}
|
|
142
|
-
|
|
143
152
|
.pf-v6-c-card.pf-m-compact {
|
|
144
153
|
--pf-v6-c-card__title-text--FontSize: var(--pf-v6-c-card--m-compact__title-text--FontSize);
|
|
145
154
|
--pf-v6-c-card__body--FontSize: var(--pf-v6-c-card--m-compact__body--FontSize);
|
|
@@ -163,13 +172,16 @@
|
|
|
163
172
|
--pf-v6-c-card__title--not--last-child--PaddingBlockEnd: var(--pf-v6-c-card--m-display-lg__title--not--last-child--PaddingBlockEnd);
|
|
164
173
|
}
|
|
165
174
|
.pf-v6-c-card.pf-m-secondary {
|
|
166
|
-
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-secondary--BorderColor);
|
|
167
|
-
--pf-v6-c-card--BorderWidth: var(--pf-v6-c-card--m-secondary--BorderWidth);
|
|
168
175
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-secondary--BackgroundColor);
|
|
169
176
|
}
|
|
177
|
+
.pf-v6-c-card.pf-m-secondary.pf-m-selectable:not(.pf-m-current, .pf-m-selected), .pf-v6-c-card.pf-m-secondary.pf-m-clickable:not(.pf-m-current, .pf-m-selected) {
|
|
178
|
+
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-selectable--BorderColor);
|
|
179
|
+
--pf-v6-c-card--BorderWidth: var(--pf-v6-c-card--m-selectable--BorderWidth);
|
|
180
|
+
}
|
|
170
181
|
.pf-v6-c-card.pf-m-plain {
|
|
171
182
|
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-plain--BorderColor);
|
|
172
183
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-plain--BackgroundColor);
|
|
184
|
+
--pf-v6-c-card--BoxShadow: var(--pf-v6-c-card--m-plain--BoxShadow);
|
|
173
185
|
}
|
|
174
186
|
.pf-v6-c-card.pf-m-expanded .pf-v6-c-card__header-toggle-icon {
|
|
175
187
|
transform: rotate(var(--pf-v6-c-card--m-expanded__header-toggle-icon--Rotate));
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@include pf-root($card) {
|
|
4
4
|
--#{$card}--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
5
|
-
--#{$card}--BorderColor: var(--pf-t--global--border--color--
|
|
5
|
+
--#{$card}--BorderColor: var(--pf-t--global--border--color--subtle);
|
|
6
6
|
--#{$card}--BorderStyle: solid;
|
|
7
7
|
--#{$card}--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
8
8
|
--#{$card}--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
9
|
+
--#{$card}--BoxShadow: var(--pf-t--global--box-shadow--sm);
|
|
9
10
|
--#{$card}--first-child--PaddingBlockStart: var(--pf-t--global--spacer--lg);
|
|
10
11
|
--#{$card}--child--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
|
|
11
12
|
--#{$card}--child--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
--#{$card}--m-expanded__header-toggle-icon--Rotate: -180deg;
|
|
40
41
|
|
|
41
42
|
// Selectable/Clickable
|
|
42
|
-
--#{$card}--m-selectable--BorderWidth: var(
|
|
43
|
+
--#{$card}--m-selectable--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
44
|
+
--#{$card}--m-selectable--BorderColor: var(--pf-t--global--border--color--control--default);
|
|
43
45
|
|
|
44
46
|
// Clickable clicked
|
|
45
47
|
--#{$card}--m-clickable--m-current--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
@@ -97,8 +99,6 @@
|
|
|
97
99
|
|
|
98
100
|
// Secondary
|
|
99
101
|
--#{$card}--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
100
|
-
--#{$card}--m-secondary--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
101
|
-
--#{$card}--m-secondary--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
102
102
|
|
|
103
103
|
// Full height
|
|
104
104
|
--#{$card}--m-full-height--Height: 100%;
|
|
@@ -106,10 +106,15 @@
|
|
|
106
106
|
// Plain - no border or background color
|
|
107
107
|
--#{$card}--m-plain--BorderColor: transparent;
|
|
108
108
|
--#{$card}--m-plain--BackgroundColor: transparent;
|
|
109
|
+
--#{$card}--m-plain--BoxShadow: none;
|
|
109
110
|
|
|
110
111
|
// Toggle right
|
|
111
112
|
--#{$card}__header--m-toggle-right--toggle--MarginInlineEnd: calc(var(--pf-t--global--spacer--action--horizontal--plain--default) * -1);
|
|
112
113
|
--#{$card}__header--m-toggle-right--toggle--MarginInlineStart: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
114
|
+
|
|
115
|
+
// As tile
|
|
116
|
+
--#{$card}--m-as-tile--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
117
|
+
--#{$card}--m-as-tile--BorderColor: var(--pf-t--global--border--color--control--default);
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
.#{$card} {
|
|
@@ -120,6 +125,7 @@
|
|
|
120
125
|
background-color: var(--#{$card}--BackgroundColor);
|
|
121
126
|
border: 0;
|
|
122
127
|
border-radius: var(--#{$card}--BorderRadius);
|
|
128
|
+
box-shadow: var(--#{$card}--BoxShadow);
|
|
123
129
|
|
|
124
130
|
&::before {
|
|
125
131
|
position: absolute;
|
|
@@ -141,6 +147,8 @@
|
|
|
141
147
|
// SELECTABLE or CLICKABLE CARDS
|
|
142
148
|
&.pf-m-selectable,
|
|
143
149
|
&.pf-m-clickable {
|
|
150
|
+
--#{$card}--BorderColor: var(--#{$card}--m-selectable--BorderColor);
|
|
151
|
+
|
|
144
152
|
isolation: isolate;
|
|
145
153
|
|
|
146
154
|
&::before {
|
|
@@ -196,8 +204,14 @@
|
|
|
196
204
|
}
|
|
197
205
|
// stylelint-enable selector-max-class
|
|
198
206
|
|
|
199
|
-
|
|
207
|
+
|
|
200
208
|
@at-root .#{$card}__actions:has(> .#{$card}__selectable-actions input.#{$pf-prefix}screen-reader), // targets "card as tile", which are selectable cards with inputs
|
|
209
|
+
&:has(.#{$card}__selectable-actions input.#{$pf-prefix}screen-reader) {
|
|
210
|
+
--#{$card}--BackgroundColor: var(--#{$card}--m-as-tile--BackgroundColor);
|
|
211
|
+
--#{$card}--BorderColor: var(--#{$card}--m-as-tile--BorderColor);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// when the whole card is clickable and the card actions are invisible, remove the padding/margin so it doesn't take up space
|
|
201
215
|
&.pf-m-clickable:not(.pf-m-selectable) {
|
|
202
216
|
--#{$card}__actions--PaddingInlineStart: 0;
|
|
203
217
|
--#{$card}__actions--MarginBlockStart: 0;
|
|
@@ -229,14 +243,19 @@
|
|
|
229
243
|
}
|
|
230
244
|
|
|
231
245
|
&.pf-m-secondary {
|
|
232
|
-
--#{$card}--BorderColor: var(--#{$card}--m-secondary--BorderColor);
|
|
233
|
-
--#{$card}--BorderWidth: var(--#{$card}--m-secondary--BorderWidth);
|
|
234
246
|
--#{$card}--BackgroundColor: var(--#{$card}--m-secondary--BackgroundColor);
|
|
247
|
+
|
|
248
|
+
&.pf-m-selectable:not(.pf-m-current, .pf-m-selected),
|
|
249
|
+
&.pf-m-clickable:not(.pf-m-current, .pf-m-selected) {
|
|
250
|
+
--#{$card}--BorderColor: var(--#{$card}--m-selectable--BorderColor);
|
|
251
|
+
--#{$card}--BorderWidth: var(--#{$card}--m-selectable--BorderWidth);
|
|
252
|
+
}
|
|
235
253
|
}
|
|
236
254
|
|
|
237
255
|
&.pf-m-plain {
|
|
238
256
|
--#{$card}--BorderColor: var(--#{$card}--m-plain--BorderColor);
|
|
239
257
|
--#{$card}--BackgroundColor: var(--#{$card}--m-plain--BackgroundColor);
|
|
258
|
+
--#{$card}--BoxShadow: var(--#{$card}--m-plain--BoxShadow);
|
|
240
259
|
}
|
|
241
260
|
|
|
242
261
|
&.pf-m-expanded {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--pf-v6-c-masthead--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
9
9
|
--pf-v6-c-masthead__main--ColumnGap: var(--pf-t--global--spacer--md);
|
|
10
10
|
--pf-v6-c-masthead__main--MarginInlineEnd: var(--pf-t--global--spacer--inset--page-chrome);
|
|
11
|
+
--pf-v6-c-masthead--m-docked__main--RowGap: var(--pf-t--global--spacer--gap--group--vertical);
|
|
11
12
|
--pf-v6-c-masthead__logo--MaxHeight: 2.375rem;
|
|
12
13
|
--pf-v6-c-masthead__logo--Width: 11.8125rem;
|
|
13
14
|
--pf-v6-c-masthead__toggle--Size: var(--pf-t--global--icon--size--xl);
|
|
@@ -124,24 +125,57 @@
|
|
|
124
125
|
--pf-v6-c-masthead--m-display-inline--breakpoint--xl--GridTemplateColumns: auto;
|
|
125
126
|
--pf-v6-c-masthead__main--GridColumn: auto;
|
|
126
127
|
--pf-v6-c-masthead__content--GridColumn: auto;
|
|
127
|
-
--pf-v6-c-masthead__logo--Width: auto;
|
|
128
128
|
--pf-v6-c-masthead__main--MarginInlineEnd: 0;
|
|
129
129
|
display: flex;
|
|
130
130
|
flex-direction: column;
|
|
131
|
-
align-items:
|
|
132
|
-
width: fit-content;
|
|
131
|
+
align-items: stretch;
|
|
133
132
|
height: 100%;
|
|
134
133
|
backdrop-filter: var(--pf-v6-c-masthead--m-docked--BackdropFilter);
|
|
135
134
|
}
|
|
135
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo {
|
|
136
|
+
width: revert;
|
|
137
|
+
}
|
|
138
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo.pf-m-compact {
|
|
139
|
+
display: none;
|
|
140
|
+
max-width: 2.3125rem;
|
|
141
|
+
max-height: revert;
|
|
142
|
+
}
|
|
143
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__main {
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
row-gap: var(--pf-v6-c-masthead--m-docked__main--RowGap);
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
}
|
|
136
148
|
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__content {
|
|
137
149
|
flex-grow: 1;
|
|
138
150
|
flex-direction: column;
|
|
151
|
+
align-items: stretch;
|
|
139
152
|
align-self: revert;
|
|
140
153
|
}
|
|
141
154
|
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-toolbar {
|
|
142
|
-
--pf-v6-c-
|
|
155
|
+
--pf-v6-c-toolbar--m-vertical--Width: auto;
|
|
143
156
|
height: var(--pf-v6-c-masthead--m-docked--c-toolbar--Height);
|
|
144
157
|
}
|
|
158
|
+
@media (min-width: 62rem) {
|
|
159
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__main {
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
.pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo.pf-m-compact {
|
|
166
|
+
display: revert;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo {
|
|
170
|
+
display: revert;
|
|
171
|
+
}
|
|
172
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__logo.pf-m-compact {
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-masthead.pf-m-docked .pf-v6-c-masthead__main {
|
|
176
|
+
align-items: flex-start;
|
|
177
|
+
}
|
|
178
|
+
|
|
145
179
|
.pf-v6-c-masthead .pf-v6-c-toolbar__content-section {
|
|
146
180
|
flex-wrap: nowrap;
|
|
147
181
|
min-width: 0;
|
|
@@ -16,6 +16,7 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
16
16
|
// * Masthead main container holds the toggle and brand
|
|
17
17
|
--#{$masthead}__main--ColumnGap: var(--pf-t--global--spacer--md);
|
|
18
18
|
--#{$masthead}__main--MarginInlineEnd: var(--pf-t--global--spacer--inset--page-chrome);
|
|
19
|
+
--#{$masthead}--m-docked__main--RowGap: var(--pf-t--global--spacer--gap--group--vertical);
|
|
19
20
|
|
|
20
21
|
// * Masthead brand
|
|
21
22
|
--#{$masthead}__logo--MaxHeight: #{pf-size-prem(38px)};
|
|
@@ -155,27 +156,74 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
155
156
|
--#{$masthead}--m-display-inline--breakpoint--xl--GridTemplateColumns: auto;
|
|
156
157
|
--#{$masthead}__main--GridColumn: auto;
|
|
157
158
|
--#{$masthead}__content--GridColumn: auto;
|
|
158
|
-
--#{$masthead}__logo--Width: auto;
|
|
159
159
|
--#{$masthead}__main--MarginInlineEnd: 0;
|
|
160
160
|
|
|
161
161
|
display: flex;
|
|
162
162
|
flex-direction: column;
|
|
163
|
-
align-items:
|
|
164
|
-
width: fit-content;
|
|
163
|
+
align-items: stretch;
|
|
165
164
|
height: 100%;
|
|
166
165
|
backdrop-filter: var(--#{$masthead}--m-docked--BackdropFilter);
|
|
167
166
|
|
|
167
|
+
.#{$masthead}__logo {
|
|
168
|
+
width: revert;
|
|
169
|
+
|
|
170
|
+
&.pf-m-compact {
|
|
171
|
+
display: none;
|
|
172
|
+
max-width: #{pf-size-prem(37px)};
|
|
173
|
+
max-height: revert;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.#{$masthead}__main {
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
row-gap: var(--#{$masthead}--m-docked__main--RowGap);
|
|
180
|
+
align-items: flex-start;
|
|
181
|
+
}
|
|
182
|
+
|
|
168
183
|
.#{$masthead}__content {
|
|
169
184
|
flex-grow: 1;
|
|
170
185
|
flex-direction: column;
|
|
186
|
+
align-items: stretch;
|
|
171
187
|
align-self: revert;
|
|
172
188
|
}
|
|
173
189
|
|
|
174
190
|
.#{$toolbar} {
|
|
175
|
-
|
|
191
|
+
--pf-v6-c-toolbar--m-vertical--Width: auto;
|
|
176
192
|
|
|
177
193
|
height: var(--#{$masthead}--m-docked--c-toolbar--Height);
|
|
178
194
|
}
|
|
195
|
+
|
|
196
|
+
@media (min-width: $pf-v6-global--breakpoint--dock--expand) {
|
|
197
|
+
.#{$masthead}__main {
|
|
198
|
+
align-items: center;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.#{$masthead}__logo {
|
|
202
|
+
display: none;
|
|
203
|
+
|
|
204
|
+
// stylelint-disable max-nesting-depth
|
|
205
|
+
&.pf-m-compact {
|
|
206
|
+
display: revert;
|
|
207
|
+
}
|
|
208
|
+
// stylelint-enable
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@at-root .#{$page}__dock.pf-m-text-expanded & {
|
|
213
|
+
.#{$masthead}__logo {
|
|
214
|
+
display: revert;
|
|
215
|
+
|
|
216
|
+
// stylelint-disable max-nesting-depth
|
|
217
|
+
&.pf-m-compact {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
// stylelint-enable
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.#{$masthead}__main {
|
|
224
|
+
align-items: flex-start;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
179
227
|
}
|
|
180
228
|
|
|
181
229
|
.#{$toolbar}__content-section {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--pf-v6-c-menu-toggle--PaddingInlineEnd: var(--pf-t--global--spacer--control--horizontal--default);
|
|
5
5
|
--pf-v6-c-menu-toggle--PaddingBlockEnd: var(--pf-t--global--spacer--control--vertical--default);
|
|
6
6
|
--pf-v6-c-menu-toggle--PaddingInlineStart: var(--pf-t--global--spacer--control--horizontal--default);
|
|
7
|
-
--pf-v6-c-menu-toggle--MinWidth:
|
|
7
|
+
--pf-v6-c-menu-toggle--MinWidth: initial;
|
|
8
8
|
--pf-v6-c-menu-toggle--FontSize: var(--pf-t--global--font--size--body--default);
|
|
9
9
|
--pf-v6-c-menu-toggle--Color: var(--pf-t--global--text--color--regular);
|
|
10
10
|
--pf-v6-c-menu-toggle--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
gap: var(--pf-v6-c-menu-toggle--Gap);
|
|
156
156
|
align-items: center;
|
|
157
157
|
justify-content: center;
|
|
158
|
-
min-width: var(--pf-v6-c-menu-toggle--MinWidth);
|
|
158
|
+
min-width: var(--pf-v6-c-menu-toggle--MinWidth, revert);
|
|
159
159
|
max-width: 100%;
|
|
160
160
|
padding-block-start: var(--pf-v6-c-menu-toggle--PaddingBlockStart);
|
|
161
161
|
padding-block-end: var(--pf-v6-c-menu-toggle--PaddingBlockEnd);
|
|
@@ -349,6 +349,29 @@
|
|
|
349
349
|
.pf-v6-c-menu-toggle:is(:disabled, .pf-m-disabled) .pf-v6-c-button {
|
|
350
350
|
pointer-events: none;
|
|
351
351
|
}
|
|
352
|
+
.pf-v6-c-menu-toggle.pf-m-dock {
|
|
353
|
+
justify-content: flex-start;
|
|
354
|
+
width: 100%;
|
|
355
|
+
}
|
|
356
|
+
@media (min-width: 62rem) {
|
|
357
|
+
.pf-v6-c-menu-toggle.pf-m-dock {
|
|
358
|
+
justify-content: center;
|
|
359
|
+
width: auto;
|
|
360
|
+
}
|
|
361
|
+
.pf-v6-c-menu-toggle.pf-m-dock .pf-v6-c-menu-toggle__text,
|
|
362
|
+
.pf-v6-c-menu-toggle.pf-m-dock .pf-v6-c-menu-toggle__controls {
|
|
363
|
+
display: none;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-menu-toggle, .pf-v6-c-menu-toggle.pf-m-text-expanded {
|
|
367
|
+
justify-content: flex-start;
|
|
368
|
+
width: 100%;
|
|
369
|
+
}
|
|
370
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-menu-toggle .pf-v6-c-menu-toggle__text,
|
|
371
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-menu-toggle .pf-v6-c-menu-toggle__controls, .pf-v6-c-menu-toggle.pf-m-text-expanded .pf-v6-c-menu-toggle__text,
|
|
372
|
+
.pf-v6-c-menu-toggle.pf-m-text-expanded .pf-v6-c-menu-toggle__controls {
|
|
373
|
+
display: revert;
|
|
374
|
+
}
|
|
352
375
|
|
|
353
376
|
@property --pf-v6-c-menu-toggle--m-danger--TranslateX {
|
|
354
377
|
syntax: "<length>";
|
|
@@ -496,6 +519,7 @@
|
|
|
496
519
|
|
|
497
520
|
.pf-v6-c-menu-toggle__icon {
|
|
498
521
|
flex-shrink: 0;
|
|
522
|
+
min-width: 1lh;
|
|
499
523
|
transition-delay: var(--pf-v6-c-menu-toggle__icon--TransitionDelay);
|
|
500
524
|
transition-duration: var(--pf-v6-c-menu-toggle__icon--TransitionDuration);
|
|
501
525
|
transition-property: var(--pf-v6-c-menu-toggle__icon--TransitionProperty);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--#{$menu-toggle}--PaddingInlineEnd: var(--pf-t--global--spacer--control--horizontal--default);
|
|
7
7
|
--#{$menu-toggle}--PaddingBlockEnd: var(--pf-t--global--spacer--control--vertical--default);
|
|
8
8
|
--#{$menu-toggle}--PaddingInlineStart: var(--pf-t--global--spacer--control--horizontal--default);
|
|
9
|
-
--#{$menu-toggle}--MinWidth:
|
|
9
|
+
--#{$menu-toggle}--MinWidth: initial;
|
|
10
10
|
--#{$menu-toggle}--FontSize: var(--pf-t--global--font--size--body--default);
|
|
11
11
|
--#{$menu-toggle}--Color: var(--pf-t--global--text--color--regular);
|
|
12
12
|
--#{$menu-toggle}--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
gap: var(--#{$menu-toggle}--Gap);
|
|
202
202
|
align-items: center;
|
|
203
203
|
justify-content: center;
|
|
204
|
-
min-width: var(--#{$menu-toggle}--MinWidth);
|
|
204
|
+
min-width: var(--#{$menu-toggle}--MinWidth, revert);
|
|
205
205
|
max-width: 100%;
|
|
206
206
|
padding-block-start: var(--#{$menu-toggle}--PaddingBlockStart);
|
|
207
207
|
padding-block-end: var(--#{$menu-toggle}--PaddingBlockEnd);
|
|
@@ -426,6 +426,33 @@
|
|
|
426
426
|
pointer-events: none;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
+
|
|
430
|
+
&.pf-m-dock {
|
|
431
|
+
justify-content: flex-start;
|
|
432
|
+
width: 100%;
|
|
433
|
+
|
|
434
|
+
@media (min-width: $pf-v6-global--breakpoint--dock--expand) {
|
|
435
|
+
justify-content: center;
|
|
436
|
+
width: auto;
|
|
437
|
+
|
|
438
|
+
.#{$menu-toggle}__text,
|
|
439
|
+
.#{$menu-toggle}__controls {
|
|
440
|
+
display: none;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@at-root .#{$page}__dock.pf-m-text-expanded &,
|
|
446
|
+
&.pf-m-text-expanded {
|
|
447
|
+
justify-content: flex-start;
|
|
448
|
+
width: 100%;
|
|
449
|
+
|
|
450
|
+
.#{$menu-toggle}__text,
|
|
451
|
+
.#{$menu-toggle}__controls {
|
|
452
|
+
display: revert;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
429
456
|
}
|
|
430
457
|
|
|
431
458
|
// Register the property type for the custom property to be animatable
|
|
@@ -615,6 +642,7 @@
|
|
|
615
642
|
|
|
616
643
|
.#{$menu-toggle}__icon {
|
|
617
644
|
flex-shrink: 0;
|
|
645
|
+
min-width: 1lh;
|
|
618
646
|
transition-delay: var(--#{$menu-toggle}__icon--TransitionDelay);
|
|
619
647
|
transition-duration: var(--#{$menu-toggle}__icon--TransitionDuration);
|
|
620
648
|
transition-property: var(--#{$menu-toggle}__icon--TransitionProperty);
|
package/components/Nav/nav.css
CHANGED
|
@@ -158,17 +158,23 @@
|
|
|
158
158
|
--pf-v6-c-nav__link--PaddingInlineEnd: var(--pf-v6-c-nav--m-docked__link--PaddingInlineEnd);
|
|
159
159
|
--pf-v6-c-nav__link--hover--BackgroundColor: var(--pf-v6-c-nav--m-docked__link--hover--BackgroundColor);
|
|
160
160
|
--pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-v6-c-nav--m-docked__link--m-current--BackgroundColor);
|
|
161
|
-
width:
|
|
161
|
+
width: 100%;
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
163
|
+
@media (min-width: 62rem) {
|
|
164
|
+
.pf-v6-c-nav.pf-m-docked {
|
|
165
|
+
width: fit-content;
|
|
166
|
+
}
|
|
167
|
+
.pf-v6-c-nav.pf-m-docked .pf-v6-c-nav__link-text {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
168
170
|
}
|
|
169
|
-
.pf-v6-c-nav.pf-m-docked .pf-v6-c-
|
|
170
|
-
|
|
171
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-nav.pf-m-docked, .pf-v6-c-nav.pf-m-docked.pf-m-text-expanded {
|
|
172
|
+
width: 100%;
|
|
173
|
+
}
|
|
174
|
+
.pf-v6-c-page__dock.pf-m-text-expanded .pf-v6-c-nav.pf-m-docked .pf-v6-c-nav__link-text, .pf-v6-c-nav.pf-m-docked.pf-m-text-expanded .pf-v6-c-nav__link-text {
|
|
175
|
+
display: revert;
|
|
171
176
|
}
|
|
177
|
+
|
|
172
178
|
.pf-v6-c-nav .pf-v6-c-menu {
|
|
173
179
|
--pf-v6-c-menu--MinWidth: 100%;
|
|
174
180
|
}
|
|
@@ -318,7 +324,9 @@
|
|
|
318
324
|
}
|
|
319
325
|
|
|
320
326
|
.pf-v6-c-nav__link-icon {
|
|
327
|
+
min-width: 1lh;
|
|
321
328
|
color: var(--pf-v6-c-nav__link-icon--Color);
|
|
329
|
+
text-align: center;
|
|
322
330
|
}
|
|
323
331
|
|
|
324
332
|
.pf-v6-c-nav__link-text {
|
package/components/Nav/nav.scss
CHANGED
|
@@ -198,17 +198,23 @@
|
|
|
198
198
|
--#{$nav}__link--hover--BackgroundColor: var(--#{$nav}--m-docked__link--hover--BackgroundColor);
|
|
199
199
|
--#{$nav}__link--m-current--BackgroundColor: var(--#{$nav}--m-docked__link--m-current--BackgroundColor);
|
|
200
200
|
|
|
201
|
-
width:
|
|
201
|
+
width: 100%;
|
|
202
|
+
|
|
203
|
+
@media (min-width: #{$pf-v6-global--breakpoint--dock--expand}) {
|
|
204
|
+
width: fit-content;
|
|
202
205
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
min-width: 1lh;
|
|
207
|
-
text-align: center;
|
|
206
|
+
.#{$nav}__link-text {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
208
209
|
}
|
|
209
210
|
|
|
210
|
-
.#{$
|
|
211
|
-
|
|
211
|
+
@at-root .#{$page}__dock.pf-m-text-expanded &,
|
|
212
|
+
&.pf-m-text-expanded {
|
|
213
|
+
width: 100%;
|
|
214
|
+
|
|
215
|
+
.#{$nav}__link-text {
|
|
216
|
+
display: revert;
|
|
217
|
+
}
|
|
212
218
|
}
|
|
213
219
|
}
|
|
214
220
|
|
|
@@ -393,7 +399,9 @@
|
|
|
393
399
|
|
|
394
400
|
// - Nav link icon
|
|
395
401
|
.#{$nav}__link-icon {
|
|
402
|
+
min-width: 1lh;
|
|
396
403
|
color: var(--#{$nav}__link-icon--Color);
|
|
404
|
+
text-align: center;
|
|
397
405
|
}
|
|
398
406
|
|
|
399
407
|
// - Nav link text
|