@patternfly/patternfly 6.0.0-alpha.201 → 6.0.0-alpha.203

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 (37) hide show
  1. package/components/Masthead/masthead.css +194 -96
  2. package/components/Masthead/masthead.scss +83 -50
  3. package/components/Nav/nav.css +5 -4
  4. package/components/Nav/nav.scss +5 -4
  5. package/components/Page/page.css +32 -18
  6. package/components/Page/page.scss +33 -20
  7. package/components/_index.css +231 -118
  8. package/docs/components/Masthead/examples/masthead.md +506 -493
  9. package/docs/components/Nav/examples/Navigation.md +0 -1
  10. package/docs/components/Page/examples/Page.md +98 -89
  11. package/docs/components/Wizard/examples/Wizard.md +1 -1
  12. package/docs/demos/AboutModal/examples/AboutModal.md +87 -83
  13. package/docs/demos/Alert/examples/Alert.md +263 -251
  14. package/docs/demos/BackToTop/examples/BackToTop.md +87 -83
  15. package/docs/demos/Banner/examples/Banner.md +177 -173
  16. package/docs/demos/CardView/examples/CardView.md +90 -88
  17. package/docs/demos/Dashboard/examples/Dashboard.md +87 -83
  18. package/docs/demos/DataList/examples/DataList.md +352 -344
  19. package/docs/demos/DescriptionList/examples/DescriptionList.md +262 -252
  20. package/docs/demos/Drawer/examples/Drawer.md +437 -423
  21. package/docs/demos/JumpLinks/examples/JumpLinks.md +524 -500
  22. package/docs/demos/Masthead/examples/Masthead.md +772 -736
  23. package/docs/demos/Modal/examples/Modal.md +522 -498
  24. package/docs/demos/Nav/examples/Nav.md +511 -487
  25. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +435 -425
  26. package/docs/demos/Page/examples/Page.md +1567 -915
  27. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +611 -584
  28. package/docs/demos/Skeleton/examples/Skeleton.md +87 -83
  29. package/docs/demos/Table/examples/Table.md +1320 -1288
  30. package/docs/demos/Tabs/examples/Tabs.md +526 -504
  31. package/docs/demos/Toolbar/examples/Toolbar.md +174 -166
  32. package/docs/demos/Wizard/examples/Wizard.md +790 -767
  33. package/package.json +1 -1
  34. package/patternfly-no-globals.css +231 -118
  35. package/patternfly.css +231 -118
  36. package/patternfly.min.css +1 -1
  37. package/patternfly.min.css.map +1 -1
@@ -6,37 +6,54 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
6
6
  :where(:root, .#{$masthead}) {
7
7
  // * Masthead
8
8
  --#{$masthead}--RowGap: var(--pf-t--global--spacer--sm);
9
- --#{$masthead}--ColumnGap: var(--pf-t--global--spacer--md);
9
+ --#{$masthead}--ColumnGap: var(--pf-t--global--spacer--gutter--default);
10
10
  --#{$masthead}--BorderWidth: var(--pf-t--global--border--width--divider--default);
11
11
  --#{$masthead}--PaddingBlock: var(--pf-t--global--spacer--md);
12
12
  --#{$masthead}--PaddingInline: var(--pf-t--global--spacer--lg);
13
13
  --#{$masthead}--BorderColor: var(--pf-t--global--border--color--default);
14
14
  --#{$masthead}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
15
15
 
16
+ // * Masthead main container holds the toggle and brand
17
+ --#{$masthead}__main--ColumnGap: var(--pf-t--global--spacer--md);
18
+ --#{$masthead}__main--MarginInlineEnd: var(--pf-t--global--spacer--inset--page-chrome);
19
+
16
20
  // * Masthead brand
17
- --#{$masthead}__brand--MarginInlineEnd: var(--pf-t--global--spacer--md);
18
- --#{$masthead}__brand--MaxHeight: #{pf-size-prem(38px)};
21
+ --#{$masthead}__logo--MaxHeight: #{pf-size-prem(38px)};
22
+ --#{$masthead}__logo--Width: #{pf-size-prem(189px)}; // width of sidebar - toggle - inline padding - gutter = 189
19
23
 
20
24
  // * Masthead toggle
21
25
  --#{$masthead}__toggle--Size: var(--pf-t--global--icon--size--xl);
22
26
 
27
+ // * Masthead content
28
+ --#{$masthead}__content--ColumnGap: var(--pf-t--global--spacer--md);
29
+
23
30
  // * Masthead stack
31
+ --#{$masthead}--m-display-stack--ColumnGap: var(--pf-t--global--spacer--gutter--default);
24
32
  --#{$masthead}--m-display-stack--GridTemplateColumns: max-content 1fr;
25
- --#{$masthead}--m-display-stack__main--GridColumn: -1 / 1;
26
- --#{$masthead}--m-display-stack__main--Order: -1;
27
- --#{$masthead}--m-display-stack__main--PaddingBlockEnd: var(--#{$masthead}--RowGap);
28
- --#{$masthead}--m-display-stack__main--BorderBlockEnd: var(--#{$masthead}--BorderWidth) solid var(--#{$masthead}--BorderColor);
29
- --#{$masthead}--m-display-stack__content--GridColumn: 2;
33
+ --#{$masthead}--m-display-stack__brand--GridColumn: -1 / 1;
34
+ --#{$masthead}--m-display-stack__brand--Order: -1;
35
+ --#{$masthead}--m-display-stack__brand--PaddingBlockEnd: var(--#{$masthead}--RowGap);
36
+ --#{$masthead}--m-display-stack__brand--BorderBlockEnd: var(--#{$masthead}--BorderWidth) solid var(--#{$masthead}--BorderColor);
37
+ --#{$masthead}--m-display-stack__content--GridColumn: 1;
30
38
  --#{$masthead}--m-display-stack__content--Order: 1;
39
+ --#{$masthead}--m-display-stack__main--toggle--content--GridColumn: 2;
40
+ --#{$masthead}--m-display-stack__main--Display: contents;
41
+ --#{$masthead}--m-display-stack__main--ColumnGap: unset; // no column gap needed until it's flex display
31
42
 
32
43
  // * Masthead inline
33
- --#{$masthead}--m-display-inline--GridTemplateColumns: max-content max-content 1fr;
34
- --#{$masthead}--m-display-inline__main--GridColumn: 2;
35
- --#{$masthead}--m-display-inline__main--Order: 0;
36
- --#{$masthead}--m-display-inline__main--PaddingBlockEnd: 0;
37
- --#{$masthead}--m-display-inline__main--BorderBlockEnd: 0;
38
- --#{$masthead}--m-display-inline__content--GridColumn: 3;
44
+ --#{$masthead}--m-display-inline--ColumnGap: 0;
45
+ --#{$masthead}--m-display-inline--GridTemplateColumns: min-content 1fr;
46
+ --#{$masthead}--m-display-inline--breakpoint--xl--GridTemplateColumns: subgrid;
47
+ --#{$masthead}--m-display-inline__brand--GridColumn: initial;
48
+ --#{$masthead}--m-display-inline__brand--Order: initial;
49
+ --#{$masthead}--m-display-inline__brand--PaddingBlockEnd: 0;
50
+ --#{$masthead}--m-display-inline__brand--BorderBlockEnd: 0;
51
+ --#{$masthead}--m-display-inline__main--GridColumn: 1;
52
+ --#{$masthead}--m-display-inline__content--GridColumn: 2;
39
53
  --#{$masthead}--m-display-inline__content--Order: 0;
54
+ --#{$masthead}--m-display-inline__main--toggle--content--GridColumn: 2;
55
+ --#{$masthead}--m-display-inline__main--Display: flex;
56
+ --#{$masthead}--m-display-inline__main--ColumnGap: var(--pf-t--global--spacer--md);
40
57
 
41
58
  // * Masthead toolbar
42
59
  --#{$masthead}__expandable-content--BoxShadow: var(--pf-t--global--box-shadow--md--bottom);
@@ -45,29 +62,38 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
45
62
  // * Masthead toolbar
46
63
  --#{$masthead}--c-toolbar--Width: 100%;
47
64
  --#{$masthead}--c-toolbar--PaddingBlock: 0;
48
- --#{$masthead}--c-toolbar--PaddingInline: 0;
49
65
  }
50
66
 
51
67
  // * Masthead display stack
52
68
  @mixin pf-v6-c-masthead--m-display-stack {
69
+ --#{$masthead}--ColumnGap: var(--#{$masthead}--m-display-stack--ColumnGap);
53
70
  --#{$masthead}--GridTemplateColumns: var(--#{$masthead}--m-display-stack--GridTemplateColumns);
54
- --#{$masthead}__main--GridColumn: var(--#{$masthead}--m-display-stack__main--GridColumn);
55
- --#{$masthead}__main--Order: var(--#{$masthead}--m-display-stack__main--Order);
56
- --#{$masthead}__main--PaddingBlockEnd: var(--#{$masthead}--m-display-stack__main--PaddingBlockEnd);
57
- --#{$masthead}__main--BorderBlockEnd: var(--#{$masthead}--m-display-stack__main--BorderBlockEnd);
71
+ --#{$masthead}__brand--GridColumn: var(--#{$masthead}--m-display-stack__brand--GridColumn);
72
+ --#{$masthead}__brand--Order: var(--#{$masthead}--m-display-stack__brand--Order);
73
+ --#{$masthead}__brand--PaddingBlockEnd: var(--#{$masthead}--m-display-stack__brand--PaddingBlockEnd);
74
+ --#{$masthead}__brand--BorderBlockEnd: var(--#{$masthead}--m-display-stack__brand--BorderBlockEnd);
75
+ --#{$masthead}__main--GridColumn: unset;
58
76
  --#{$masthead}__content--GridColumn: var(--#{$masthead}--m-display-stack__content--GridColumn);
59
77
  --#{$masthead}__content--Order: var(--#{$masthead}--m-display-stack__content--Order);
78
+ --#{$masthead}__main--toggle--content--GridColumn: var(--#{$masthead}--m-display-stack__main--toggle--content--GridColumn);
79
+ --#{$masthead}__main--Display: var(--#{$masthead}--m-display-stack__main--Display);
80
+ --#{$masthead}__main--ColumnGap: var(--#{$masthead}--m-display-stack__main--ColumnGap);
60
81
  }
61
82
 
62
83
  // * Masthead display inline
63
84
  @mixin pf-v6-c-masthead--m-display-inline {
85
+ --#{$masthead}--ColumnGap: var(--#{$masthead}--m-display-inline--ColumnGap);
64
86
  --#{$masthead}--GridTemplateColumns: var(--#{$masthead}--m-display-inline--GridTemplateColumns);
87
+ --#{$masthead}__brand--GridColumn: var(--#{$masthead}--m-display-inline__brand--GridColumn);
88
+ --#{$masthead}__brand--Order: var(--#{$masthead}--m-display-inline__brand--Order);
89
+ --#{$masthead}__brand--PaddingBlockEnd: var(--#{$masthead}--m-display-inline__brand--PaddingBlockEnd);
90
+ --#{$masthead}__brand--BorderBlockEnd: var(--#{$masthead}--m-display-inline__brand--BorderBlockEnd);
65
91
  --#{$masthead}__main--GridColumn: var(--#{$masthead}--m-display-inline__main--GridColumn);
66
- --#{$masthead}__main--Order: var(--#{$masthead}--m-display-inline__main--Order);
67
- --#{$masthead}__main--PaddingBlockEnd: var(--#{$masthead}--m-display-inline__main--PaddingBlockEnd);
68
- --#{$masthead}__main--BorderBlockEnd: var(--#{$masthead}--m-display-inline__main--BorderBlockEnd);
69
92
  --#{$masthead}__content--GridColumn: var(--#{$masthead}--m-display-inline__content--GridColumn);
70
93
  --#{$masthead}__content--Order: var(--#{$masthead}--m-display-inline__content--Order);
94
+ --#{$masthead}__main--toggle--content--GridColumn: var(--#{$masthead}--m-display-inline__main--toggle--content--GridColumn);
95
+ --#{$masthead}__main--Display: var(--#{$masthead}--m-display-inline__main--Display);
96
+ --#{$masthead}__main--ColumnGap: var(--#{$masthead}--m-display-inline__main--ColumnGap);
71
97
  }
72
98
 
73
99
  // - Masthead
@@ -75,7 +101,6 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
75
101
  .#{$toolbar} {
76
102
  --#{$toolbar}--Width: var(--#{$masthead}--c-toolbar--Width);
77
103
  --#{$toolbar}--PaddingBlockEnd: 0;
78
- --#{$toolbar}__content--PaddingInline: var(--#{$masthead}--c-toolbar--PaddingInline);
79
104
  --#{$toolbar}__content--MinWidth: 0;
80
105
  }
81
106
 
@@ -135,53 +160,61 @@ $pf-v6-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
135
160
  }
136
161
  }
137
162
 
163
+ .#{$masthead}__main {
164
+ display: var(--#{$masthead}__main--Display);
165
+ grid-column: var(--#{$masthead}__main--GridColumn);
166
+ column-gap: var(--#{$masthead}__main--ColumnGap);
167
+ align-items: center;
168
+ margin-inline-end: var(--#{$masthead}__main--MarginInlineEnd);
169
+
170
+ &:has(.#{$masthead}__toggle) ~ .#{$masthead}__content {
171
+ --#{$masthead}__content--GridColumn: var(--#{$masthead}__main--toggle--content--GridColumn);
172
+ }
173
+ }
174
+
138
175
  // - Masthead main masthead content masthead logo
139
176
  .#{$masthead},
140
- .#{$masthead}__main {
177
+ .#{$masthead}__brand {
141
178
  position: relative;
142
179
  }
143
180
 
144
- .#{$masthead}__main,
145
- .#{$masthead}__content,
146
- .#{$masthead}__logo,
181
+ // - Masthead brand
147
182
  .#{$masthead}__brand {
148
183
  display: flex;
184
+ flex-shrink: 0;
185
+ grid-column: var(--#{$masthead}__brand--GridColumn, revert);
186
+ row-gap: var(--#{$masthead}__brand--RowGap, var(--#{$masthead}--RowGap));
149
187
  align-self: stretch;
150
- }
151
-
152
- // - Masthead main masthead brand masthead content
153
- .#{$masthead}__main,
154
- .#{$masthead}__brand,
155
- .#{$masthead}__content {
188
+ order: var(--#{$masthead}__brand--Order, revert);
156
189
  min-width: #{pf-size-prem(4ch)}; // allow flex containers to shrink to fit possible overflow
157
- }
158
-
159
- // - Masthead Main
160
- .#{$masthead}__main {
161
- grid-column: var(--#{$masthead}__main--GridColumn);
162
- row-gap: var(--#{$masthead}__main--RowGap, var(--#{$masthead}--RowGap));
163
- align-items: var(--#{$masthead}__main--AlignItems, var(--#{$masthead}--AlignItems));
164
- order: var(--#{$masthead}__main--Order);
165
- padding-block-end: var(--#{$masthead}__main--PaddingBlockEnd);
166
- border-block-end: var(--#{$masthead}__main--BorderBlockEnd);
190
+ padding-block-end: var(--#{$masthead}__brand--PaddingBlockEnd);
191
+ border-block-end: var(--#{$masthead}__brand--BorderBlockEnd);
167
192
  }
168
193
 
169
194
  // - Masthead content
170
195
  .#{$masthead}__content {
196
+ display: flex;
171
197
  flex-wrap: wrap;
172
198
  grid-column: var(--#{$masthead}__content--GridColumn);
173
199
  grid-column-end: -1; // force content to right edge or full available width
174
200
  row-gap: var(--#{$masthead}__content-RowGap, var(--#{$masthead}--RowGap));
175
- column-gap: var(--#{$masthead}__content-ColumnGap, var(--#{$masthead}--ColumnGap));
176
- align-items: var(--#{$masthead}__content--AlignItems, var(--#{$masthead}--AlignItems));
201
+ column-gap: var(--#{$masthead}__content--ColumnGap, var(--#{$masthead}--ColumnGap));
202
+ align-self: stretch;
177
203
  order: var(--#{$masthead}__content--Order);
204
+ min-width: #{pf-size-prem(4ch)}; // allow flex containers to shrink to fit possible overflow
178
205
  }
179
206
 
180
- // - Masthead brand
181
- .#{$masthead}__brand {
182
- align-items: var(--#{$masthead}__brand--AlignItems, var(--#{$masthead}--AlignItems));
183
- max-height: var(--#{$masthead}__brand--MaxHeight);
184
- margin-inline-end: var(--#{$masthead}__brand--MarginInlineEnd);
207
+ // - Masthead logo
208
+ .#{$masthead}__logo {
209
+ position: relative;
210
+ width: var(--#{$masthead}__logo--Width);
211
+ max-height: var(--#{$masthead}__logo--MaxHeight);
212
+
213
+ > * {
214
+ max-width: 100%;
215
+ max-height: 100%;
216
+ vertical-align: middle;
217
+ }
185
218
  }
186
219
 
187
220
  // - Masthead toggle
@@ -7,8 +7,8 @@
7
7
  --pf-v6-c-nav__list--ColumnGap: var(--pf-t--global--spacer--xs);
8
8
  --pf-v6-c-nav--PaddingBlockStart: var(--pf-t--global--spacer--md);
9
9
  --pf-v6-c-nav--PaddingBlockEnd: var(--pf-t--global--spacer--md);
10
- --pf-v6-c-nav--PaddingInlineStart: var(--pf-t--global--spacer--md);
11
- --pf-v6-c-nav--PaddingInlineEnd: var(--pf-t--global--spacer--md);
10
+ --pf-v6-c-nav--PaddingInlineStart: 0;
11
+ --pf-v6-c-nav--PaddingInlineEnd: 0;
12
12
  --pf-v6-c-nav--RowGap: var(--pf-t--global--spacer--lg);
13
13
  --pf-v6-c-nav--ColumnGap: 0;
14
14
  --pf-v6-c-nav--AlignItems: baseline;
@@ -98,8 +98,9 @@
98
98
  .pf-v6-c-nav.pf-m-overflow-hidden {
99
99
  overflow: hidden;
100
100
  }
101
- .pf-v6-c-nav.pf-m-full-width {
102
- width: 100%;
101
+ .pf-v6-c-nav.pf-m-inset {
102
+ --pf-v6-c-nav--PaddingInlineStart: var(--pf-t--global--spacer--md);
103
+ --pf-v6-c-nav--PaddingInlineEnd: var(--pf-t--global--spacer--md);
103
104
  }
104
105
  .pf-v6-c-nav.pf-m-fill {
105
106
  flex-grow: 1;
@@ -12,8 +12,8 @@
12
12
  // * Nav // default to row gap if no custom value is set
13
13
  --#{$nav}--PaddingBlockStart: var(--pf-t--global--spacer--md);
14
14
  --#{$nav}--PaddingBlockEnd: var(--pf-t--global--spacer--md);
15
- --#{$nav}--PaddingInlineStart: var(--pf-t--global--spacer--md);
16
- --#{$nav}--PaddingInlineEnd: var(--pf-t--global--spacer--md);
15
+ --#{$nav}--PaddingInlineStart: 0;
16
+ --#{$nav}--PaddingInlineEnd: 0;
17
17
  --#{$nav}--RowGap: var(--pf-t--global--spacer--lg);
18
18
  --#{$nav}--ColumnGap: 0;
19
19
  --#{$nav}--AlignItems: baseline;
@@ -126,8 +126,9 @@
126
126
  overflow: hidden;
127
127
  }
128
128
 
129
- &.pf-m-full-width {
130
- width: 100%;
129
+ &.pf-m-inset {
130
+ --#{$nav}--PaddingInlineStart: var(--pf-t--global--spacer--md);
131
+ --#{$nav}--PaddingInlineEnd: var(--pf-t--global--spacer--md);
131
132
  }
132
133
 
133
134
  &.pf-m-fill {
@@ -1,7 +1,6 @@
1
1
  :where(:root, .pf-v6-c-page) {
2
2
  --pf-v6-c-page--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
3
- --pf-v6-c-page--inset: var(--pf-t--global--spacer--md);
4
- --pf-v6-c-page--xl--inset: var(--pf-t--global--spacer--xl);
3
+ --pf-v6-c-page--inset: var(--pf-t--global--spacer--inset--page-chrome);
5
4
  --pf-v6-c-page--c-masthead--ZIndex: var(--pf-t--global--z-index--md);
6
5
  --pf-v6-c-page__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
7
6
  --pf-v6-c-page__sidebar--Width: 18.125rem;
@@ -15,6 +14,7 @@
15
14
  --pf-v6-c-page__sidebar--MarginInlineEnd: 0;
16
15
  --pf-v6-c-page__sidebar--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
17
16
  --pf-v6-c-page__sidebar--PaddingInlineStart: 0;
17
+ --pf-v6-c-page__sidebar--PaddingInlineEnd: 0;
18
18
  --pf-v6-c-page__sidebar-header--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
19
19
  --pf-v6-c-page__sidebar-header--BorderBlockEndColor: var(--pf-t--global--border--color--default);
20
20
  --pf-v6-c-page__sidebar-header--PaddingBlockStart: var(--pf-t--global--spacer--sm);
@@ -24,17 +24,19 @@
24
24
  --pf-v6-c-page__sidebar-title--LineHeight: var(--pf-t--global--font--line-height--heading);
25
25
  --pf-v6-c-page__sidebar-title--FontFamily: var(--pf-t--global--font--family--heading);
26
26
  --pf-v6-c-page__sidebar-title--FontWeight: var(--pf-t--global--font--weight--heading--default);
27
- --pf-v6-c-page__sidebar-body--PaddingInlineEnd: 0;
28
- --pf-v6-c-page__sidebar-body--PaddingInlineStart: 0;
27
+ --pf-v6-c-page__sidebar-body--PaddingInlineEnd: var(--pf-t--global--spacer--inset--page-chrome);
28
+ --pf-v6-c-page__sidebar-body--PaddingInlineStart: var(--pf-t--global--spacer--inset--page-chrome);
29
29
  --pf-v6-c-page__sidebar-body--m-page-insets--PaddingInlineEnd: var(--pf-v6-c-page--inset);
30
30
  --pf-v6-c-page__sidebar-body--m-page-insets--PaddingInlineStart: var(--pf-v6-c-page--inset);
31
31
  --pf-v6-c-page__sidebar-body--m-context-selector--PaddingInlineEnd: var(--pf-t--global--spacer--md);
32
32
  --pf-v6-c-page__sidebar-body--m-context-selector--PaddingInlineStart: var(--pf-t--global--spacer--md);
33
33
  --pf-v6-c-page__main-container--ZIndex: var(--pf-t--global--z-index--xs);
34
+ --pf-v6-c-page__main-container--GridArea: main;
35
+ --pf-v6-c-page--masthead--main-container--GridArea: sidebar / sidebar / main / main;
34
36
  --pf-v6-c-page__main-container--MaxHeight: calc(100% - var(--pf-t--global--spacer--lg));
35
37
  --pf-v6-c-page__main-container--BackgroundColor: var(--pf-t--global--background--color--primary--default);
36
- --pf-v6-c-page__main-container--MarginInlineStart: var(--pf-t--global--spacer--lg);
37
- --pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-t--global--spacer--lg);
38
+ --pf-v6-c-page__main-container--MarginInlineStart: var(--pf-v6-c-page--inset);
39
+ --pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-v6-c-page--inset);
38
40
  --pf-v6-c-page__main-container--BorderRadius: var(--pf-t--global--border--radius--large);
39
41
  --pf-v6-c-page__main-container--BorderWidth: var(--pf-t--global--spacer--sm);
40
42
  --pf-v6-c-page__main-container--BorderColor: var(--pf-v6-c-page__main-container--BackgroundColor);
@@ -75,11 +77,6 @@
75
77
  --pf-v6-c-page__main-wizard--BorderBlockStartColor: var(--pf-t--global--border--color--default);
76
78
  --pf-v6-c-page__main-wizard--BorderBlockStartWidth: var(--pf-t--global--border--width--action--default);
77
79
  }
78
- @media (min-width: 75rem) {
79
- :where(:root, .pf-v6-c-page) {
80
- --pf-v6-c-page--inset: var(--pf-v6-c-page--xl--inset);
81
- }
82
- }
83
80
  @media screen and (min-width: 75rem) {
84
81
  :where(:root, .pf-v6-c-page) {
85
82
  --pf-v6-c-page__sidebar--TranslateX: var(--pf-v6-c-page__sidebar--xl--TranslateX);
@@ -99,7 +96,7 @@
99
96
  @media (min-width: 75rem) {
100
97
  .pf-v6-c-page {
101
98
  grid-template-areas: "header header" "sidebar main";
102
- grid-template-columns: max-content 1fr;
99
+ grid-template-columns: var(--pf-v6-c-page__sidebar--Width) 1fr;
103
100
  }
104
101
  }
105
102
 
@@ -107,6 +104,11 @@
107
104
  z-index: var(--pf-v6-c-page--c-masthead--ZIndex);
108
105
  grid-area: header;
109
106
  }
107
+ @media (min-width: 75rem) {
108
+ .pf-v6-c-page > .pf-v6-c-masthead {
109
+ --pf-v6-c-masthead--m-display-inline--GridTemplateColumns: var(--pf-v6-c-masthead--m-display-inline--breakpoint--xl--GridTemplateColumns);
110
+ }
111
+ }
110
112
 
111
113
  .pf-v6-c-page__sidebar {
112
114
  z-index: var(--pf-v6-c-page__sidebar--ZIndex);
@@ -119,6 +121,7 @@
119
121
  padding-block-start: 0;
120
122
  padding-block-end: var(--pf-v6-c-page__sidebar--PaddingBlockEnd);
121
123
  padding-inline-start: var(--pf-v6-c-page__sidebar--PaddingInlineStart);
124
+ padding-inline-end: var(--pf-v6-c-page__sidebar--PaddingInlineEnd);
122
125
  margin-inline-end: var(--pf-v6-c-page__sidebar--MarginInlineEnd);
123
126
  overflow-x: hidden;
124
127
  overflow-y: auto;
@@ -390,26 +393,37 @@
390
393
  flex-direction: column;
391
394
  align-self: start;
392
395
  max-height: var(--pf-v6-c-page__main-container--MaxHeight);
393
- margin-block-start: 0;
394
396
  margin-inline-start: var(--pf-v6-c-page__main-container--MarginInlineStart);
395
397
  margin-inline-end: var(--pf-v6-c-page__main-container--MarginInlineEnd);
396
- overflow: auto;
397
398
  background: var(--pf-v6-c-page__main-container--BackgroundColor);
398
399
  border: var(--pf-v6-c-page__main-container--BorderWidth) solid var(--pf-v6-c-page__main-container--BorderColor);
399
400
  border-radius: var(--pf-v6-c-page__main-container--BorderRadius);
400
401
  }
401
- .pf-v6-c-page__main-container.pf-m-fill, .pf-v6-c-page__main-container:has(.pf-v6-c-page__main-wizard) {
402
- align-self: stretch;
403
- }
404
402
 
405
403
  .pf-v6-c-page__main-container,
406
404
  .pf-v6-c-page__drawer {
407
405
  z-index: var(--pf-v6-c-page__main-container--ZIndex);
408
- grid-area: main;
406
+ grid-area: var(--pf-v6-c-page__main-container--GridArea);
409
407
  overflow-x: hidden;
410
408
  overflow-y: auto;
411
409
  -webkit-overflow-scrolling: touch;
412
410
  }
411
+ @media screen and (min-width: 75rem) {
412
+ .pf-v6-c-masthead + .pf-v6-c-page__main-container, .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__main-container,
413
+ .pf-v6-c-masthead + .pf-v6-c-page__drawer,
414
+ .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__drawer {
415
+ --pf-v6-c-page__main-container--GridArea: var(--pf-v6-c-page--masthead--main-container--GridArea);
416
+ }
417
+ .pf-v6-c-page__sidebar:not(.pf-m-collapsed) + .pf-v6-c-page__main-container,
418
+ .pf-v6-c-page__sidebar:not(.pf-m-collapsed) + .pf-v6-c-page__drawer {
419
+ --pf-v6-c-page__main-container--MarginInlineStart: 0;
420
+ }
421
+ }
422
+ .pf-v6-c-page__main-container.pf-m-fill, .pf-v6-c-page__main-container:has(.pf-v6-c-page__main-wizard),
423
+ .pf-v6-c-page__drawer.pf-m-fill,
424
+ .pf-v6-c-page__drawer:has(.pf-v6-c-page__main-wizard) {
425
+ align-self: stretch;
426
+ }
413
427
  .pf-v6-c-page__main-container:focus,
414
428
  .pf-v6-c-page__drawer:focus {
415
429
  outline: 0;
@@ -7,16 +7,11 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
7
7
 
8
8
  :where(:root, .#{$page}) {
9
9
  --#{$page}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
10
- --#{$page}--inset: var(--pf-t--global--spacer--md);
11
- --#{$page}--xl--inset: var(--pf-t--global--spacer--xl);
10
+ --#{$page}--inset: var(--pf-t--global--spacer--inset--page-chrome);
12
11
 
13
12
  // Header
14
13
  --#{$page}--c-masthead--ZIndex: var(--pf-t--global--z-index--md);
15
14
 
16
- @media (min-width: $pf-v6-global--breakpoint--xl) {
17
- --#{$page}--inset: var(--#{$page}--xl--inset);
18
- }
19
-
20
15
  // Sidebar
21
16
  --#{$page}__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
22
17
  --#{$page}__sidebar--Width: #{pf-size-prem(290px)};
@@ -30,6 +25,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
30
25
  --#{$page}__sidebar--MarginInlineEnd: 0;
31
26
  --#{$page}__sidebar--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
32
27
  --#{$page}__sidebar--PaddingInlineStart: 0;
28
+ --#{$page}__sidebar--PaddingInlineEnd: 0;
33
29
 
34
30
 
35
31
  // Sidebar header
@@ -44,8 +40,8 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
44
40
  --#{$page}__sidebar-title--FontWeight: var(--pf-t--global--font--weight--heading--default);
45
41
 
46
42
  // Sidebar body
47
- --#{$page}__sidebar-body--PaddingInlineEnd: 0;
48
- --#{$page}__sidebar-body--PaddingInlineStart: 0;
43
+ --#{$page}__sidebar-body--PaddingInlineEnd: var(--pf-t--global--spacer--inset--page-chrome);
44
+ --#{$page}__sidebar-body--PaddingInlineStart: var(--pf-t--global--spacer--inset--page-chrome);
49
45
  --#{$page}__sidebar-body--m-page-insets--PaddingInlineEnd: var(--#{$page}--inset);
50
46
  --#{$page}__sidebar-body--m-page-insets--PaddingInlineStart: var(--#{$page}--inset);
51
47
  --#{$page}__sidebar-body--m-context-selector--PaddingInlineEnd: var(--pf-t--global--spacer--md);
@@ -57,10 +53,12 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
57
53
 
58
54
  // Container for the main content area (grid area)
59
55
  --#{$page}__main-container--ZIndex: var(--pf-t--global--z-index--xs);
56
+ --#{$page}__main-container--GridArea: main;
57
+ --#{$page}--masthead--main-container--GridArea: sidebar / sidebar / main / main; // no sidebar
60
58
  --#{$page}__main-container--MaxHeight: calc(100% - var(--pf-t--global--spacer--lg));
61
59
  --#{$page}__main-container--BackgroundColor: var(--pf-t--global--background--color--primary--default);
62
- --#{$page}__main-container--MarginInlineStart: var(--pf-t--global--spacer--lg);
63
- --#{$page}__main-container--MarginInlineEnd: var(--pf-t--global--spacer--lg);
60
+ --#{$page}__main-container--MarginInlineStart: var(--#{$page}--inset);
61
+ --#{$page}__main-container--MarginInlineEnd: var(--#{$page}--inset);
64
62
  --#{$page}__main-container--BorderRadius: var(--pf-t--global--border--radius--large);
65
63
  --#{$page}__main-container--BorderWidth: var(--pf-t--global--spacer--sm); // TODO Change to be a page outline token
66
64
  --#{$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
@@ -135,12 +133,16 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
135
133
  grid-template-areas:
136
134
  "header header"
137
135
  "sidebar main";
138
- grid-template-columns: max-content 1fr;
136
+ grid-template-columns: var(--#{$page}__sidebar--Width) 1fr;
139
137
  }
140
- }
138
+ }
141
139
 
142
140
  // Header
143
141
  .#{$page} > .#{$masthead} {
142
+ @media (min-width: $pf-v6-global--breakpoint--xl) {
143
+ --#{$masthead}--m-display-inline--GridTemplateColumns: var(--#{$masthead}--m-display-inline--breakpoint--xl--GridTemplateColumns);
144
+ }
145
+
144
146
  z-index: var(--#{$page}--c-masthead--ZIndex);
145
147
  grid-area: header;
146
148
  }
@@ -157,6 +159,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
157
159
  padding-block-start: 0;
158
160
  padding-block-end: var(--#{$page}__sidebar--PaddingBlockEnd);
159
161
  padding-inline-start: var(--#{$page}__sidebar--PaddingInlineStart);
162
+ padding-inline-end: var(--#{$page}__sidebar--PaddingInlineEnd);
160
163
  margin-inline-end: var(--#{$page}__sidebar--MarginInlineEnd);
161
164
  overflow-x: hidden;
162
165
  overflow-y: auto;
@@ -310,28 +313,38 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
310
313
  flex-direction: column;
311
314
  align-self: start;
312
315
  max-height: var(--#{$page}__main-container--MaxHeight);
313
- margin-block-start: 0;
314
316
  margin-inline-start: var(--#{$page}__main-container--MarginInlineStart);
315
317
  margin-inline-end: var(--#{$page}__main-container--MarginInlineEnd);
316
- overflow: auto;
317
318
  background: var(--#{$page}__main-container--BackgroundColor);
318
319
  border: var(--#{$page}__main-container--BorderWidth) solid var(--#{$page}__main-container--BorderColor);
319
320
  border-radius: var(--#{$page}__main-container--BorderRadius);
320
-
321
- &.pf-m-fill,
322
- &:has(.#{$page}__main-wizard) {
323
- align-self: stretch;
324
- }
325
321
  }
326
322
 
327
323
  .#{$page}__main-container,
328
324
  .#{$page}__drawer {
329
325
  z-index: var(--#{$page}__main-container--ZIndex);
330
- grid-area: main;
326
+ grid-area: var(--#{$page}__main-container--GridArea);
331
327
  overflow-x: hidden;
332
328
  overflow-y: auto;
333
329
  -webkit-overflow-scrolling: touch;
334
330
 
331
+ @media screen and (min-width: $pf-v6-global--breakpoint--xl) {
332
+ .#{$masthead} + &,
333
+ .#{$page}__sidebar.pf-m-collapsed + & {
334
+ --#{$page}__main-container--GridArea: var(--#{$page}--masthead--main-container--GridArea);
335
+ }
336
+
337
+ .#{$page}__sidebar:not(.pf-m-collapsed) + & {
338
+ --#{$page}__main-container--MarginInlineStart: 0;
339
+ }
340
+ }
341
+
342
+ &.pf-m-fill,
343
+ &:has(.#{$page}__main-wizard) {
344
+ align-self: stretch;
345
+ }
346
+
347
+
335
348
  &:focus {
336
349
  outline: 0;
337
350
  }