@patternfly/patternfly 6.0.0-alpha.38 → 6.0.0-alpha.39

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.
Files changed (36) hide show
  1. package/components/Divider/divider.css +97 -177
  2. package/components/Divider/divider.scss +60 -79
  3. package/components/Masthead/masthead.css +267 -435
  4. package/components/Masthead/masthead.scss +118 -233
  5. package/docs/components/Divider/examples/Divider.css +3 -1
  6. package/docs/components/Divider/examples/Divider.md +4 -5
  7. package/docs/components/Masthead/examples/masthead.md +441 -16
  8. package/docs/demos/AboutModal/examples/AboutModal.md +40 -42
  9. package/docs/demos/Alert/examples/Alert.md +120 -126
  10. package/docs/demos/BackToTop/examples/BackToTop.md +40 -42
  11. package/docs/demos/Banner/examples/Banner.md +79 -80
  12. package/docs/demos/CardView/examples/CardView.md +40 -42
  13. package/docs/demos/ContextSelector/examples/ContextSelector.md +129 -146
  14. package/docs/demos/Dashboard/examples/Dashboard.md +40 -42
  15. package/docs/demos/DataList/examples/DataList.md +160 -279
  16. package/docs/demos/DescriptionList/examples/DescriptionList.md +120 -126
  17. package/docs/demos/Drawer/examples/Drawer.md +200 -210
  18. package/docs/demos/JumpLinks/examples/JumpLinks.md +240 -252
  19. package/docs/demos/Masthead/examples/Masthead.md +143 -224
  20. package/docs/demos/Modal/examples/Modal.md +240 -252
  21. package/docs/demos/Nav/examples/Nav.md +320 -336
  22. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +200 -210
  23. package/docs/demos/Page/examples/Page.md +360 -378
  24. package/docs/demos/Page/examples/Penta.md +8 -15
  25. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +280 -294
  26. package/docs/demos/Skeleton/examples/Skeleton.md +40 -42
  27. package/docs/demos/Table/examples/Table.md +617 -647
  28. package/docs/demos/Tabs/examples/Tabs.md +240 -252
  29. package/docs/demos/Toolbar/examples/Toolbar.md +80 -84
  30. package/docs/demos/Wizard/examples/Wizard.md +360 -378
  31. package/package.json +1 -1
  32. package/patternfly-no-globals.css +363 -611
  33. package/patternfly-theme-dark-unversioned.css +363 -611
  34. package/patternfly.css +363 -611
  35. package/patternfly.min.css +1 -1
  36. package/patternfly.min.css.map +1 -1
@@ -2,175 +2,87 @@
2
2
  $pf-v5-c-masthead--breakpoint-map: build-breakpoint-map();
3
3
  $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
4
4
 
5
- :root {
6
- --#{$masthead}--PaddingLeft: var(--#{$masthead}--inset);
7
- --#{$masthead}--PaddingRight: var(--#{$masthead}--inset);
5
+ :root,
6
+ :where(.#{$masthead}) {
7
+ // * Masthead
8
+ --#{$masthead}--inset: var(--pf-t--global--spacer--lg);
9
+ --#{$masthead}--PaddingBlockStart: var(--pf-t--global--spacer--md);
10
+ --#{$masthead}--PaddingBlockEnd: var(--pf-t--global--spacer--md);
11
+ --#{$masthead}--PaddingInlineStart: var(--#{$masthead}--inset);
12
+ --#{$masthead}--PaddingInlineEnd: var(--#{$masthead}--inset);
13
+ --#{$masthead}--AlignItems: start;
14
+ --#{$masthead}--RowGap: var(--pf-t--global--spacer--sm);
15
+ --#{$masthead}--ColumnGap: var(--pf-t--global--spacer--md);
8
16
  --#{$masthead}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
17
+ --#{$masthead}--BorderWidth: var(--pf-t--global--border--width--divider--default);
18
+ --#{$masthead}--BorderColor: var(--pf-t--global--border--color--default);
9
19
 
10
- // Insets
11
- --#{$masthead}--inset: var(--pf-t--global--spacer--md); // match page insets
12
- --#{$masthead}--xl--inset: var(--pf-t--global--spacer--lg); // match page insets
20
+ // * Masthead brand
21
+ --#{$masthead}__brand--MarginInlineEnd: var(--pf-t--global--spacer--md);
22
+ --#{$masthead}__brand--MaxHeight: #{pf-size-prem(38px)};
13
23
 
14
- // Stack
24
+ // * Masthead toggle
25
+ --#{$masthead}__toggle--Size: var(--pf-t--global--icon--size--xl);
26
+
27
+ // * Masthead stack
15
28
  --#{$masthead}--m-display-stack--GridTemplateColumns: max-content 1fr;
16
29
  --#{$masthead}--m-display-stack__main--GridColumn: -1 / 1;
17
- --#{$masthead}--m-display-stack__main--MinHeight: #{pf-size-prem(70px)};
18
30
  --#{$masthead}--m-display-stack__main--Order: -1;
19
- --#{$masthead}--m-display-stack__main--FlexBasis: 100%;
20
- --#{$masthead}--m-display-stack__main--PaddingTop: var(--pf-t--global--spacer--lg);
21
- --#{$masthead}--m-display-stack__main--PaddingBottom: var(--pf-t--global--spacer--md);
22
- --#{$masthead}--m-display-stack__main--MarginRight: 0;
23
- --#{$masthead}--m-display-stack__main--before--BorderBottom: var(--#{$masthead}__main--before--BorderBottomWidth) solid var(--#{$masthead}__main--before--BorderBottomColor);
24
- --#{$masthead}--m-display-stack__toggle--GridColumn: 1;
31
+ --#{$masthead}--m-display-stack__main--PaddingBlockEnd: var(--#{$masthead}--RowGap);
32
+ --#{$masthead}--m-display-stack__main--BorderBlockEnd: var(--#{$masthead}--BorderWidth) solid var(--#{$masthead}--BorderColor);
25
33
  --#{$masthead}--m-display-stack__content--GridColumn: 2;
26
- --#{$masthead}--m-display-stack__content--MinHeight: auto;
27
34
  --#{$masthead}--m-display-stack__content--Order: 1;
28
- --#{$masthead}--m-display-stack__content--PaddingTop: var(--pf-t--global--spacer--xs);
29
- --#{$masthead}--m-display-stack__content--PaddingBottom: var(--pf-t--global--spacer--xs);
30
- --#{$masthead}--m-display-stack__content--MarginLeft: 0;
31
- --#{$masthead}--m-display-stack__content--c-nav--m-horizontal--MarginRight: calc(var(--#{$masthead}--inset) * -1);
32
- --#{$masthead}--m-display-stack__content--c-nav--m-horizontal--MarginLeft: calc(var(--#{$masthead}--inset) * -1);
33
35
 
34
- // Inline
36
+ // * Masthead inline
35
37
  --#{$masthead}--m-display-inline--GridTemplateColumns: max-content max-content 1fr;
36
38
  --#{$masthead}--m-display-inline__main--GridColumn: 2;
37
- --#{$masthead}--m-display-inline__main--MinHeight: #{pf-size-prem(70px)};
38
39
  --#{$masthead}--m-display-inline__main--Order: 0;
39
- --#{$masthead}--m-display-inline__main--FlexBasis: auto;
40
- --#{$masthead}--m-display-inline__main--PaddingTop: 0;
41
- --#{$masthead}--m-display-inline__main--PaddingBottom: 0;
42
- --#{$masthead}--m-display-inline__main--MarginRight: calc(var(--pf-t--global--spacer--lg) / 2); // split gutter
43
- --#{$masthead}--m-display-inline__main--BorderBottom: 0;
44
- --#{$masthead}--m-display-inline__toggle--GridColumn: 1;
40
+ --#{$masthead}--m-display-inline__main--PaddingBlockEnd: 0;
41
+ --#{$masthead}--m-display-inline__main--BorderBlockEnd: 0;
45
42
  --#{$masthead}--m-display-inline__content--GridColumn: 3;
46
- --#{$masthead}--m-display-inline__content--MinHeight: #{pf-size-prem(70px)};
47
43
  --#{$masthead}--m-display-inline__content--Order: 0;
48
- --#{$masthead}--m-display-inline__content--PaddingTop: 0;
49
- --#{$masthead}--m-display-inline__content--PaddingBottom: 0;
50
- --#{$masthead}--m-display-inline__content--MarginLeft: calc(var(--pf-t--global--spacer--lg) / 2); // split gutter
51
- --#{$masthead}--m-display-inline__content--c-nav--m-horizontal--MarginRight: 0;
52
- --#{$masthead}--m-display-inline__content--c-nav--m-horizontal--MarginLeft: 0;
53
-
54
- // Main border
55
- --#{$masthead}__main--before--Right: calc(var(--#{$masthead}--inset) * -1);
56
- --#{$masthead}__main--before--Left: calc(var(--#{$masthead}--inset) * -1);
57
- --#{$masthead}__main--before--BorderBottomWidth: var(--pf-t--global--border--width--divider--default);
58
- --#{$masthead}__main--before--BorderBottomColor: var(--pf-t--global--border--color--default);
59
-
60
- // Content
61
- --#{$masthead}__content--Gap: var(--pf-t--global--spacer--sm);
62
-
63
- // Toggle
64
- --#{$masthead}__toggle--MarginRight: var(--pf-t--global--spacer--sm);
65
- --#{$masthead}__toggle--MarginLeft: calc(var(--pf-t--global--spacer--sm) * -1); // offset by button padding
66
- --#{$masthead}__toggle--c-button--FontSize: var(--pf-t--global--icon--size--lg);
67
-
68
- // Toolbar item
69
- --#{$masthead}--c-toolbar__item--Display: flex;
70
-
71
- // Borders
72
- --#{$masthead}--item-border-color--base: var(--pf-t--global--border--color--default);
73
-
74
- // Context selector
75
- --#{$masthead}--c-context-selector--Width: auto;
76
- --#{$masthead}--c-context-selector__toggle--BorderTopColor: var(--#{$masthead}--item-border-color--base);
77
- --#{$masthead}--c-context-selector__toggle--BorderRightColor: var(--#{$masthead}--item-border-color--base);
78
- --#{$masthead}--c-context-selector__toggle--BorderLeftColor: var(--#{$masthead}--item-border-color--base);
79
- --#{$masthead}--c-context-selector--m-full-height__toggle--BorderTopColor: transparent;
80
- --#{$masthead}--c-context-selector--m-full-height__toggle--BorderBottomColor: transparent;
81
44
 
82
- // Dropdown
83
- --#{$masthead}--c-dropdown__toggle--before--BorderTopColor: var(--#{$masthead}--item-border-color--base);
84
- --#{$masthead}--c-dropdown__toggle--before--BorderRightColor: var(--#{$masthead}--item-border-color--base);
85
- --#{$masthead}--c-dropdown__toggle--before--BorderLeftColor: var(--#{$masthead}--item-border-color--base);
86
- --#{$masthead}--c-dropdown--m-full-height__toggle--before--BorderTopColor: transparent;
87
- --#{$masthead}--c-dropdown--m-full-height__toggle--before--BorderBottomColor: transparent;
88
-
89
- // Menu toggle
90
- --#{$masthead}--c-menu-toggle--before--BorderTopColor: var(--#{$masthead}--item-border-color--base);
91
- --#{$masthead}--c-menu-toggle--before--BorderRightColor: var(--#{$masthead}--item-border-color--base);
92
- --#{$masthead}--c-menu-toggle--before--BorderLeftColor: var(--#{$masthead}--item-border-color--base);
93
-
94
- // Toolbar
95
- --#{$masthead}--c-toolbar--BackgroundColor: var(--#{$masthead}--BackgroundColor);
96
- --#{$masthead}--c-toolbar--AlignItems--base: center;
97
- --#{$masthead}--c-toolbar__content--PaddingRight: 0;
98
- --#{$masthead}--c-toolbar__content--PaddingLeft: 0;
99
- --#{$masthead}--c-toolbar__expandable-content--PaddingTop: var(--pf-t--global--spacer--md);
100
- --#{$masthead}--c-toolbar__expandable-content--PaddingRight: var(--#{$masthead}--inset);
101
- --#{$masthead}--c-toolbar__expandable-content--PaddingBottom: var(--pf-t--global--spacer--md);
102
- --#{$masthead}--c-toolbar__expandable-content--PaddingLeft: var(--#{$masthead}--inset);
103
- --#{$masthead}--c-toolbar__expandable-content--before--BorderTopWidth: var(--pf-t--global--border--width--divider--default);
104
- --#{$masthead}--c-toolbar__expandable-content--before--BorderTopColor: var(--#{$masthead}--item-border-color--base);
45
+ // * Masthead toolbar
46
+ --#{$masthead}__expandable-content--BoxShadow: var(--pf-t--global--box-shadow--md--bottom); // TODO: update after toolbar updates
47
+ --#{$masthead}__expandable-content--BorderBlockStart: var(--#{$masthead}--BorderWidth) solid var(--#{$masthead}--BorderColor); // TODO: update after toolbar updates
105
48
  }
106
49
 
50
+ // * Masthead display stack
107
51
  @mixin pf-v5-c-masthead--m-display-stack {
108
52
  --#{$masthead}--GridTemplateColumns: var(--#{$masthead}--m-display-stack--GridTemplateColumns);
109
53
  --#{$masthead}__main--GridColumn: var(--#{$masthead}--m-display-stack__main--GridColumn);
110
- --#{$masthead}__main--MinHeight: var(--#{$masthead}--m-display-stack__main--MinHeight);
111
54
  --#{$masthead}__main--Order: var(--#{$masthead}--m-display-stack__main--Order);
112
- --#{$masthead}__main--FlexBasis: var(--#{$masthead}--m-display-stack__main--FlexBasis);
113
- --#{$masthead}__main--PaddingTop: var(--#{$masthead}--m-display-stack__main--PaddingTop);
114
- --#{$masthead}__main--PaddingBottom: var(--#{$masthead}--m-display-stack__main--PaddingBottom);
115
- --#{$masthead}__main--MarginRight: var(--#{$masthead}--m-display-stack__main--MarginRight);
116
- --#{$masthead}__main--before--BorderBottom: var(--#{$masthead}--m-display-stack__main--before--BorderBottom);
55
+ --#{$masthead}__main--PaddingBlockEnd: var(--#{$masthead}--m-display-stack__main--PaddingBlockEnd);
56
+ --#{$masthead}__main--BorderBlockEnd: var(--#{$masthead}--m-display-stack__main--BorderBlockEnd);
117
57
  --#{$masthead}__content--GridColumn: var(--#{$masthead}--m-display-stack__content--GridColumn);
118
- --#{$masthead}__content--MinHeight: var(--#{$masthead}--m-display-stack__content--MinHeight);
119
58
  --#{$masthead}__content--Order: var(--#{$masthead}--m-display-stack__content--Order);
120
- --#{$masthead}__content--PaddingTop: var(--#{$masthead}--m-display-stack__content--PaddingTop);
121
- --#{$masthead}__content--PaddingBottom: var(--#{$masthead}--m-display-stack__content--PaddingBottom);
122
- --#{$masthead}__content--MarginLeft: var(--#{$masthead}--m-display-stack__content--MarginLeft);
123
- --#{$masthead}__content--c-nav--m-horizontal--MarginRight: var(--#{$masthead}--m-display-stack__content--c-nav--m-horizontal--MarginRight);
124
- --#{$masthead}__content--c-nav--m-horizontal--MarginLeft: var(--#{$masthead}--m-display-stack__content--c-nav--m-horizontal--MarginLeft);
125
59
  }
126
60
 
61
+ // * Masthead display inline
127
62
  @mixin pf-v5-c-masthead--m-display-inline {
128
63
  --#{$masthead}--GridTemplateColumns: var(--#{$masthead}--m-display-inline--GridTemplateColumns);
129
64
  --#{$masthead}__main--GridColumn: var(--#{$masthead}--m-display-inline__main--GridColumn);
130
- --#{$masthead}__main--MinHeight: var(--#{$masthead}--m-display-inline__main--MinHeight);
131
65
  --#{$masthead}__main--Order: var(--#{$masthead}--m-display-inline__main--Order);
132
- --#{$masthead}__main--FlexBasis: var(--#{$masthead}--m-display-inline__main--FlexBasis);
133
- --#{$masthead}__main--PaddingTop: var(--#{$masthead}--m-display-inline__main--PaddingTop);
134
- --#{$masthead}__main--PaddingBottom: var(--#{$masthead}--m-display-inline__main--PaddingBottom);
135
- --#{$masthead}__main--MarginRight: var(--#{$masthead}--m-display-inline__main--MarginRight);
136
- --#{$masthead}__main--before--BorderBottom: var(--#{$masthead}--m-display-inline__main--BorderBottom);
66
+ --#{$masthead}__main--PaddingBlockEnd: var(--#{$masthead}--m-display-inline__main--PaddingBlockEnd);
67
+ --#{$masthead}__main--BorderBlockEnd: var(--#{$masthead}--m-display-inline__main--BorderBlockEnd);
137
68
  --#{$masthead}__content--GridColumn: var(--#{$masthead}--m-display-inline__content--GridColumn);
138
- --#{$masthead}__content--MinHeight: var(--#{$masthead}--m-display-inline__content--MinHeight);
139
69
  --#{$masthead}__content--Order: var(--#{$masthead}--m-display-inline__content--Order);
140
- --#{$masthead}__content--PaddingTop: var(--#{$masthead}--m-display-inline__content--PaddingTop);
141
- --#{$masthead}__content--PaddingBottom: var(--#{$masthead}--m-display-inline__content--PaddingBottom);
142
- --#{$masthead}__content--MarginLeft: var(--#{$masthead}--m-display-inline__content--MarginLeft);
143
- --#{$masthead}__content--c-nav--m-horizontal--MarginRight: var(--#{$masthead}--m-display-inline__content--c-nav--m-horizontal--MarginRight);
144
- --#{$masthead}__content--c-nav--m-horizontal--MarginLeft: var(--#{$masthead}--m-display-inline__content--c-nav--m-horizontal--MarginLeft);
145
70
  }
146
71
 
72
+ // - Masthead
147
73
  .#{$masthead} {
148
- // Toolbar
149
- --#{$toolbar}--BackgroundColor: var(--#{$masthead}--c-toolbar--BackgroundColor);
150
- --#{$toolbar}--AlignItems--base: var(--#{$masthead}--c-toolbar--AlignItems--base);
151
- --#{$toolbar}__content--PaddingRight: var(--#{$masthead}--c-toolbar__content--PaddingRight);
152
- --#{$toolbar}__content--PaddingLeft: var(--#{$masthead}--c-toolbar__content--PaddingLeft);
153
- --#{$toolbar}__expandable-content--PaddingTop: var(--#{$masthead}--c-toolbar__expandable-content--PaddingTop);
154
- --#{$toolbar}__expandable-content--PaddingRight: var(--#{$masthead}--c-toolbar__expandable-content--PaddingRight);
155
- --#{$toolbar}__expandable-content--PaddingBottom: var(--#{$masthead}--c-toolbar__expandable-content--PaddingBottom);
156
- --#{$toolbar}__expandable-content--PaddingLeft: var(--#{$masthead}--c-toolbar__expandable-content--PaddingLeft);
157
-
158
- // Context selector
159
- --#{$context-selector}--Width: var(--#{$masthead}--c-context-selector--Width);
160
- --#{$context-selector}__toggle--BorderTopColor: var(--#{$masthead}--c-context-selector__toggle--BorderTopColor);
161
- --#{$context-selector}__toggle--BorderRightColor: var(--#{$masthead}--c-context-selector__toggle--BorderRightColor);
162
- --#{$context-selector}__toggle--BorderLeftColor: var(--#{$masthead}--c-context-selector__toggle--BorderLeftColor);
163
-
164
- // Dropdown
165
- --#{$dropdown}__toggle--before--BorderTopColor: var(--#{$masthead}--c-dropdown__toggle--before--BorderTopColor);
166
- --#{$dropdown}__toggle--before--BorderRightColor: var(--#{$masthead}--c-dropdown__toggle--before--BorderRightColor);
167
- --#{$dropdown}__toggle--before--BorderLeftColor: var(--#{$masthead}--c-dropdown__toggle--before--BorderLeftColor);
168
-
169
- // Menu toggle
170
- --#{$menu-toggle}--before--BorderTopColor: var(--#{$masthead}--c-menu-toggle--before--BorderTopColor);
171
- --#{$menu-toggle}--before--BorderRightColor: var(--#{$masthead}--c-menu-toggle--before--BorderRightColor);
172
- --#{$menu-toggle}--before--BorderLeftColor: var(--#{$masthead}--c-menu-toggle--before--BorderLeftColor);
173
- --#{$menu-toggle}--m-full-height__toggle--after--BorderBottomWidth: 0;
74
+ --#{$toolbar}--PaddingTop: 0; // TODO: update after toolbar updates
75
+ --#{$toolbar}--PaddingBottom: 0; // TODO: update after toolbar updates
76
+ --#{$toolbar}__content--PaddingRight: 0; // TODO: update after toolbar updates
77
+ --#{$toolbar}__content--PaddingLeft: 0; // TODO: update after toolbar updates
78
+ --#{$toolbar}__expandable-content--PaddingTop: var(--pf-t--global--spacer--md); // TODO: update after toolbar updates
79
+ --#{$toolbar}__expandable-content--PaddingRight: var(--#{$masthead}--inset); // TODO: update after toolbar updates
80
+ --#{$toolbar}__expandable-content--PaddingBottom: var(--pf-t--global--spacer--md); // TODO: update after toolbar updates
81
+ --#{$toolbar}__expandable-content--PaddingLeft: var(--#{$masthead}--inset); // TODO: update after toolbar updates
82
+ --#{$toolbar}__expandable-content--BackgroundColor: var(--#{$masthead}--BackgroundColor); // TODO: update after toolbar updates
83
+ --#{$toolbar}__expandable-content--lg--PaddingRight: var(--#{$masthead}--PaddingInlineStart); // TODO: update after toolbar updates
84
+ --#{$toolbar}__expandable-content--lg--PaddingBottom: var(--pf-t--global--spacer--md); // TODO: update after toolbar updates
85
+ --#{$toolbar}__expandable-content--lg--PaddingLeft: var(--#{$masthead}--PaddingInlineEnd); // TODO: update after toolbar updates
174
86
 
175
87
  // Set layout to stack by default
176
88
  @include pf-v5-c-masthead--m-display-stack;
@@ -182,141 +94,115 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
182
94
  }
183
95
  }
184
96
 
185
- @media screen and (min-width: $pf-v5-global--breakpoint--xl) {
186
- --#{$masthead}--inset: var(--#{$masthead}--xl--inset);
187
- }
188
-
189
- position: relative;
97
+ // - Masthead
190
98
  display: grid;
191
99
  grid-template-columns: var(--#{$masthead}--GridTemplateColumns);
192
- align-items: center;
100
+ row-gap: var(--#{$masthead}--RowGap);
101
+ column-gap: var(--#{$masthead}--ColumnGap);
102
+ align-items: var(--#{$masthead}--AlignItems);
193
103
  min-width: 0;
194
- padding-inline-start: var(--#{$masthead}--PaddingLeft);
195
- padding-inline-end: var(--#{$masthead}--PaddingRight);
104
+ padding-block-start: var(--#{$masthead}--PaddingBlockStart);
105
+ padding-block-end: var(--#{$masthead}--PaddingBlockEnd);
106
+ padding-inline-start: var(--#{$masthead}--inset);
107
+ padding-inline-end: var(--#{$masthead}--inset);
196
108
  background-color: var(--#{$masthead}--BackgroundColor);
197
109
 
110
+ // TODO: update when toolbar updates
111
+ // - Masthead toolbar
198
112
  .#{$toolbar} {
199
113
  width: 100%;
200
114
  }
201
115
 
202
- .#{$toolbar}__content-section {
203
- flex-wrap: nowrap;
204
- }
205
-
116
+ // TODO: update when toolbar updates
117
+ // - Masthead toolbar expandable content
206
118
  .#{$toolbar}__expandable-content {
207
119
  inset-block-start: 100%;
208
-
209
- &::before {
210
- position: absolute;
211
- inset: 0;
212
- content: '';
213
- border-block-start: var(--#{$masthead}--c-toolbar__expandable-content--before--BorderTopWidth) solid var(--#{$masthead}--c-toolbar__expandable-content--before--BorderTopColor);
214
- box-shadow: var(--#{$toolbar}__expandable-content--before--BoxShadow);
215
- }
120
+ border-block-start: var(--#{$masthead}__expandable-content--BorderBlockStart);
121
+ box-shadow: var(--#{$masthead}__expandable-content--BoxShadow);
216
122
  }
217
123
 
218
- .#{$context-selector}.pf-m-full-height {
219
- --#{$context-selector}__toggle--BorderTopColor: var(--#{$masthead}--c-context-selector--m-full-height__toggle--BorderTopColor);
220
- --#{$context-selector}__toggle--BorderBottomColor: var(--#{$masthead}--c-context-selector--m-full-height__toggle--BorderBottomColor);
124
+ // - Masthead display stack
125
+ &.pf-m-display-stack {
126
+ @include pf-v5-c-masthead--m-display-stack;
221
127
  }
222
128
 
223
- .#{$dropdown}.pf-m-full-height {
224
- --#{$dropdown}__toggle--before--BorderTopColor: var(--#{$masthead}--c-dropdown--m-full-height__toggle--before--BorderTopColor);
225
- --#{$dropdown}__toggle--before--BorderBottomColor: var(--#{$masthead}--c-dropdown--m-full-height__toggle--before--BorderBottomColor);
129
+ // - Masthead display inline
130
+ &.pf-m-display-inline {
131
+ @include pf-v5-c-masthead--m-display-inline;
226
132
  }
227
133
 
228
- .#{$nav} {
229
- align-self: stretch;
134
+ // - Masthead insets
135
+ @each $inset, $inset-value in $pf-v5-c-masthead--inset-map {
136
+ &.pf-m-inset-#{$inset} {
137
+ padding-inline-start: #{$inset-value};
138
+ padding-inline-end: #{$inset-value};
139
+ }
230
140
  }
231
141
  }
232
142
 
233
- // Main
143
+ // - Masthead main masthead content masthead logo
144
+ .#{$masthead},
234
145
  .#{$masthead}__main {
235
146
  position: relative;
147
+ }
148
+
149
+ .#{$masthead}__main,
150
+ .#{$masthead}__content,
151
+ .#{$masthead}__logo,
152
+ .#{$masthead}__brand {
236
153
  display: flex;
237
- flex-basis: var(--#{$masthead}__main--FlexBasis);
238
- grid-column: var(--#{$masthead}__main--GridColumn);
239
- align-items: center;
240
154
  align-self: stretch;
241
- order: var(--#{$masthead}__main--Order);
242
- min-height: var(--#{$masthead}__main--MinHeight);
243
- padding-block-start: var(--#{$masthead}__main--PaddingTop);
244
- padding-block-end: var(--#{$masthead}__main--PaddingBottom);
245
- margin-inline-end: var(--#{$masthead}__main--MarginRight);
246
-
247
- &::before {
248
- position: absolute;
249
- inset-block-end: 0;
250
- inset-inline-start: var(--#{$masthead}__main--before--Left);
251
- inset-inline-end: var(--#{$masthead}__main--before--Right);
252
- content: "";
253
- border-block-end: var(--#{$masthead}__main--before--BorderBottom);
254
- }
155
+ }
255
156
 
256
- &:last-child {
257
- --#{$masthead}__main--MarginRight: 0;
258
- }
157
+ // - Masthead main masthead brand masthead content
158
+ .#{$masthead}__main,
159
+ .#{$masthead}__brand,
160
+ .#{$masthead}__content {
161
+ min-width: #{pf-size-prem(4ch)}; // allow flex containers to shrink to fit possible overflow
259
162
  }
260
163
 
261
- .#{$masthead}__logo {
262
- display: flex;
263
- gap: var(--pf-t--global--spacer--md);
164
+ // - Masthead Main
165
+ .#{$masthead}__main {
166
+ grid-column: var(--#{$masthead}__main--GridColumn);
167
+ row-gap: var(--#{$masthead}__main--RowGap, var(--#{$masthead}--RowGap));
168
+ align-items: var(--#{$masthead}__main--AlignItems, var(--#{$masthead}--AlignItems));
169
+ order: var(--#{$masthead}__main--Order);
170
+ padding-block-end: var(--#{$masthead}__main--PaddingBlockEnd);
171
+ border-block-end: var(--#{$masthead}__main--BorderBlockEnd);
264
172
  }
265
173
 
266
- // Content
174
+ // - Masthead content
267
175
  .#{$masthead}__content {
268
- display: flex;
269
- flex-grow: 1;
270
- flex-shrink: 1;
176
+ flex-wrap: wrap;
271
177
  grid-column: var(--#{$masthead}__content--GridColumn);
272
178
  grid-column-end: -1; // force content to right edge or full available width
273
- gap: var(--#{$masthead}__content--Gap);
274
- align-items: center;
275
- align-self: stretch;
179
+ row-gap: var(--#{$masthead}__content-RowGap, var(--#{$masthead}--RowGap));
180
+ column-gap: var(--#{$masthead}__content-ColumnGap, var(--#{$masthead}--ColumnGap));
181
+ align-items: var(--#{$masthead}__content--AlignItems, var(--#{$masthead}--AlignItems));
276
182
  order: var(--#{$masthead}__content--Order);
277
- min-height: var(--#{$masthead}__content--MinHeight);
278
- padding-block-start: var(--#{$masthead}__content--PaddingTop);
279
- padding-block-end: var(--#{$masthead}__content--PaddingBottom);
280
- margin-inline-start: var(--#{$masthead}__content--MarginLeft);
281
-
282
- &:only-child {
283
- --#{$masthead}__content--MarginLeft: 0;
284
- }
285
-
286
- .#{$nav}.pf-m-horizontal {
287
- margin-inline-start: var(--#{$masthead}__content--c-nav--m-horizontal--MarginLeft);
288
- margin-inline-end: var(--#{$masthead}__content--c-nav--m-horizontal--MarginRight);
289
- }
290
-
291
- .#{$masthead}__toggle ~ & {
292
- --#{$masthead}__content--c-nav--m-horizontal--MarginLeft: calc(var(--#{$masthead}__content--MarginLeft) * -1);
293
- }
294
183
  }
295
184
 
296
- .#{$masthead}__main,
297
- .#{$masthead}__brand,
298
- .#{$masthead}__content {
299
- min-width: 0; // allow flex containers to shrink to fit possible overflow
300
- }
301
-
302
- // Brand
185
+ // - Masthead brand
303
186
  .#{$masthead}__brand {
304
- display: inline-flex;
305
- align-self: center;
187
+ align-items: var(--#{$masthead}__brand--AlignItems, var(--#{$masthead}--AlignItems));
188
+ max-height: var(--#{$masthead}__brand--MaxHeight);
189
+ margin-inline-end: var(--#{$masthead}__brand--MarginInlineEnd);
306
190
  }
307
191
 
308
- // Toggle
192
+ // - Masthead toggle
309
193
  .#{$masthead}__toggle {
310
- grid-column: var(--#{$masthead}__toggle--GridColumn);
311
- align-self: center;
312
- margin-inline-start: var(--#{$masthead}__toggle--MarginLeft);
313
- margin-inline-end: var(--#{$masthead}__toggle--MarginRight);
194
+ --#{$button}--FontSize: var(--#{$masthead}__toggle--Size);
195
+ }
314
196
 
315
- .#{$button} {
316
- --#{$button}--FontSize: var(--#{$masthead}__toggle--c-button--FontSize);
317
- }
197
+ // - Masthead expandable content
198
+ .#{$masthead}__expandable-content {
199
+ row-gap: var(--#{$masthead}__expandable-content-RowGap, var(--#{$masthead}--RowGap));
200
+ background-color: var(--#{$masthead}--BackgroundColor);
318
201
  }
319
202
 
203
+
204
+ // TODO: move this sass to separate file for resize observer updates
205
+ // TODO: make this an opt in/out
320
206
  // stylelint-disable no-duplicate-selectors
321
207
  .#{$masthead} {
322
208
  @each $breakpoint, $breakpoint-value in $pf-v5-c-masthead--breakpoint-map {
@@ -332,11 +218,10 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
332
218
  }
333
219
  }
334
220
 
335
- @include pf-v5-apply-breakpoint($breakpoint) {
336
- @each $spacer, $spacer-value in $pf-v5-c-masthead--inset-map {
337
- &.pf-m-inset-#{$spacer}#{$breakpoint-name} {
338
- --#{$masthead}--inset: #{$spacer-value};
339
- }
221
+ @each $inset, $inset-value in $pf-v5-c-masthead--inset-map {
222
+ &.pf-m-inset-#{$inset} {
223
+ padding-inline-start: #{$inset-value};
224
+ padding-inline-end: #{$inset-value};
340
225
  }
341
226
  }
342
227
  }
@@ -3,11 +3,13 @@
3
3
  align-items: center;
4
4
  }
5
5
 
6
+ [id*="divider-vertical"],
6
7
  [id*="ws-core-c-divider-vertical"],
7
8
  #ws-core-c-divider-horizontal-on-lg {
8
- height: 4rem;
9
+ height: 6rem;
9
10
  }
10
11
 
11
12
  [id*="ws-core-c-divider"] .ws-preview-html {
12
13
  height: 100%;
13
14
  }
15
+
@@ -34,24 +34,23 @@ cssPrefix: pf-v5-c-divider
34
34
  ### Inset medium
35
35
 
36
36
  ```html
37
- <div class="pf-v5-c-divider pf-m-inset-md" role="separator"></div>
37
+ <hr class="pf-v5-c-divider pf-m-inset-md" />
38
38
 
39
39
  ```
40
40
 
41
41
  ### Md inset, no inset on md, 3xl inset on lg, lg inset on xl
42
42
 
43
43
  ```html
44
- <div
44
+ <hr
45
45
  class="pf-v5-c-divider pf-m-inset-md pf-m-inset-none-on-md pf-m-inset-3xl-on-lg pf-m-inset-lg-on-xl"
46
- role="separator"
47
- ></div>
46
+ />
48
47
 
49
48
  ```
50
49
 
51
50
  ### Vertical
52
51
 
53
52
  ```html
54
- <div class="pf-v5-c-divider pf-m-vertical pf-m-inset-md" role="separator"></div>
53
+ <div class="pf-v5-c-divider pf-m-vertical" role="separator"></div>
55
54
 
56
55
  ```
57
56