@patternfly/patternfly 6.0.0-alpha.34 → 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 (76) hide show
  1. package/CODE_OF_CONDUCT.md +1 -2
  2. package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
  3. package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
  4. package/assets/images/PF-IconLogo-color.svg +17 -0
  5. package/components/Backdrop/backdrop.css +6 -2
  6. package/components/Backdrop/backdrop.scss +5 -2
  7. package/components/Banner/banner.css +4 -0
  8. package/components/Banner/banner.scss +5 -0
  9. package/components/Card/card.css +3 -0
  10. package/components/Card/card.scss +8 -0
  11. package/components/Divider/divider.css +97 -177
  12. package/components/Divider/divider.scss +60 -79
  13. package/components/Form/form.css +6 -0
  14. package/components/Form/form.scss +4 -1
  15. package/components/Masthead/masthead.css +267 -435
  16. package/components/Masthead/masthead.scss +118 -233
  17. package/components/MenuToggle/menu-toggle.css +1 -0
  18. package/components/MenuToggle/menu-toggle.scss +2 -0
  19. package/components/Popover/popover.css +0 -2
  20. package/components/Popover/popover.scss +2 -2
  21. package/components/SimpleList/simple-list.css +35 -52
  22. package/components/SimpleList/simple-list.scss +41 -51
  23. package/components/Table/table.scss +1 -0
  24. package/components/Tooltip/tooltip.css +0 -2
  25. package/components/Tooltip/tooltip.scss +3 -3
  26. package/components/Truncate/truncate.css +4 -0
  27. package/components/Truncate/truncate.scss +3 -0
  28. package/docs/components/Accordion/examples/Accordion.md +6 -6
  29. package/docs/components/Alert/examples/Alert.md +2 -2
  30. package/docs/components/Brand/examples/Brand.md +9 -33
  31. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  32. package/docs/components/Card/examples/Card.md +18 -20
  33. package/docs/components/Check/examples/Check.md +1 -0
  34. package/docs/components/Content/examples/Content.md +5 -5
  35. package/docs/components/Divider/examples/Divider.css +3 -1
  36. package/docs/components/Divider/examples/Divider.md +4 -5
  37. package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
  38. package/docs/components/Label/examples/Label.md +11 -11
  39. package/docs/components/Masthead/examples/masthead.md +441 -16
  40. package/docs/components/Nav/examples/Navigation.css +18 -2
  41. package/docs/components/Nav/examples/Navigation.md +1 -1
  42. package/docs/components/Radio/examples/Radio.md +1 -1
  43. package/docs/components/SimpleList/examples/SimpleList.md +3 -3
  44. package/docs/components/Table/examples/Table.md +8 -8
  45. package/docs/components/Truncate/examples/Truncate.css +2 -2
  46. package/docs/demos/AboutModal/examples/AboutModal.md +40 -42
  47. package/docs/demos/Alert/examples/Alert.md +120 -126
  48. package/docs/demos/BackToTop/examples/BackToTop.md +40 -42
  49. package/docs/demos/Banner/examples/Banner.md +79 -80
  50. package/docs/demos/CardView/examples/CardView.md +40 -42
  51. package/docs/demos/ContextSelector/examples/ContextSelector.md +129 -146
  52. package/docs/demos/Dashboard/examples/Dashboard.md +40 -42
  53. package/docs/demos/DataList/examples/DataList.md +160 -279
  54. package/docs/demos/DescriptionList/examples/DescriptionList.md +120 -126
  55. package/docs/demos/Drawer/examples/Drawer.md +200 -210
  56. package/docs/demos/JumpLinks/examples/JumpLinks.md +240 -252
  57. package/docs/demos/Masthead/examples/Masthead.md +143 -224
  58. package/docs/demos/Modal/examples/Modal.md +240 -252
  59. package/docs/demos/Nav/examples/Nav.md +320 -336
  60. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +200 -210
  61. package/docs/demos/Page/examples/Page.md +360 -378
  62. package/docs/demos/Page/examples/Penta.md +8 -15
  63. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +280 -294
  64. package/docs/demos/Skeleton/examples/Skeleton.md +40 -42
  65. package/docs/demos/Table/examples/Table.md +617 -647
  66. package/docs/demos/Tabs/examples/Tabs.md +240 -252
  67. package/docs/demos/Toolbar/examples/Toolbar.md +80 -84
  68. package/docs/demos/Wizard/examples/Wizard.md +360 -378
  69. package/docs/layouts/Flex/examples/Flex.md +11 -11
  70. package/package.json +32 -32
  71. package/patternfly-no-globals.css +422 -673
  72. package/patternfly-theme-dark-unversioned.css +422 -673
  73. package/patternfly.css +422 -673
  74. package/patternfly.min.css +1 -1
  75. package/patternfly.min.css.map +1 -1
  76. package/components/SimpleList/themes/dark/simple-list.scss +0 -14
@@ -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
  }
@@ -273,6 +273,7 @@
273
273
  align-self: stretch;
274
274
  }
275
275
  .pf-v5-c-menu-toggle.pf-m-split-button > .pf-v5-c-check .pf-v5-c-check__input {
276
+ --pf-v5-c-check__input--TranslateY: 0;
276
277
  align-self: center;
277
278
  }
278
279
  .pf-v5-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *::after {
@@ -360,6 +360,8 @@
360
360
  align-self: stretch;
361
361
 
362
362
  .#{$check}__input {
363
+ --#{$check}__input--TranslateY: 0;
364
+
363
365
  align-self: center;
364
366
  }
365
367
  }
@@ -157,12 +157,10 @@
157
157
 
158
158
  .pf-v5-c-popover__arrow {
159
159
  position: absolute;
160
- /* stylelint-disable liberty/use-logical-spec */
161
160
  top: var(--pf-v5-c-popover__arrow--Top, auto);
162
161
  right: var(--pf-v5-c-popover__arrow--Right, auto);
163
162
  bottom: var(--pf-v5-c-popover__arrow--Bottom, auto);
164
163
  left: var(--pf-v5-c-popover__arrow--Left, auto);
165
- /* stylelint-enable */
166
164
  width: var(--pf-v5-c-popover__arrow--Width);
167
165
  height: var(--pf-v5-c-popover__arrow--Height);
168
166
  pointer-events: none;
@@ -215,12 +215,12 @@
215
215
 
216
216
  .#{$popover}__arrow {
217
217
  position: absolute;
218
- /* stylelint-disable liberty/use-logical-spec */
218
+ // stylelint-disable liberty/use-logical-spec
219
219
  top: var(--#{$popover}__arrow--Top, auto);
220
220
  right: var(--#{$popover}__arrow--Right, auto);
221
221
  bottom: var(--#{$popover}__arrow--Bottom, auto);
222
222
  left: var(--#{$popover}__arrow--Left, auto);
223
- /* stylelint-enable */
223
+ // stylelint-enable
224
224
  width: var(--#{$popover}__arrow--Width);
225
225
  height: var(--#{$popover}__arrow--Height);
226
226
  pointer-events: none;
@@ -1,31 +1,28 @@
1
- .pf-v5-c-simple-list {
2
- --pf-v5-c-simple-list__item-link--PaddingTop: var(--pf-v5-global--spacer--xs);
3
- --pf-v5-c-simple-list__item-link--PaddingRight: var(--pf-v5-global--spacer--md);
4
- --pf-v5-c-simple-list__item-link--PaddingBottom: var(--pf-v5-global--spacer--xs);
5
- --pf-v5-c-simple-list__item-link--PaddingLeft: var(--pf-v5-global--spacer--md);
6
- --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
7
- --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-global--Color--100);
8
- --pf-v5-c-simple-list__item-link--FontSize: var(--pf-v5-global--FontSize--sm);
9
- --pf-v5-c-simple-list__item-link--FontWeight: var(--pf-v5-global--FontWeight--normal);
10
- --pf-v5-c-simple-list__item-link--m-current--Color: var(--pf-v5-global--link--Color);
11
- --pf-v5-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
12
- --pf-v5-c-simple-list__item-link--m-current--FontWeight: var(--pf-v5-global--FontWeight--normal);
13
- --pf-v5-c-simple-list__item-link--hover--Color: var(--pf-v5-global--Color--100);
14
- --pf-v5-c-simple-list__item-link--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
15
- --pf-v5-c-simple-list__item-link--focus--Color: var(--pf-v5-global--Color--100);
16
- --pf-v5-c-simple-list__item-link--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
17
- --pf-v5-c-simple-list__item-link--focus--FontWeight: var(--pf-v5-global--FontWeight--normal);
18
- --pf-v5-c-simple-list__item-link--active--Color: var(--pf-v5-global--Color--100);
19
- --pf-v5-c-simple-list__item-link--active--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
20
- --pf-v5-c-simple-list__item-link--active--FontWeight: var(--pf-v5-global--FontWeight--normal);
21
- --pf-v5-c-simple-list__title--PaddingTop: var(--pf-v5-global--spacer--sm);
22
- --pf-v5-c-simple-list__title--PaddingRight: var(--pf-v5-global--spacer--md);
23
- --pf-v5-c-simple-list__title--PaddingBottom: var(--pf-v5-global--spacer--sm);
24
- --pf-v5-c-simple-list__title--PaddingLeft: var(--pf-v5-global--spacer--md);
25
- --pf-v5-c-simple-list__title--FontSize: var(--pf-v5-global--FontSize--sm);
26
- --pf-v5-c-simple-list__title--Color: var(--pf-v5-global--Color--dark-200);
27
- --pf-v5-c-simple-list__title--FontWeight: var(--pf-v5-global--FontWeight--bold);
28
- --pf-v5-c-simple-list__section--section--MarginTop: var(--pf-v5-global--spacer--sm);
1
+ :root, .pf-v5-c-simple-list {
2
+ --pf-v5-c-simple-list__item-link--PaddingTop: var(--pf-t--global--spacer--xs);
3
+ --pf-v5-c-simple-list__item-link--PaddingRight: var(--pf-t--global--spacer--md);
4
+ --pf-v5-c-simple-list__item-link--PaddingBottom: var(--pf-t--global--spacer--xs);
5
+ --pf-v5-c-simple-list__item-link--PaddingLeft: var(--pf-t--global--spacer--md);
6
+ --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
7
+ --pf-v5-c-simple-list__item-link--Color: var(--pf-t--global--text--color--subtle);
8
+ --pf-v5-c-simple-list__item-link--FontSize: var(--pf-t--global--font--size--body);
9
+ --pf-v5-c-simple-list__item-link--m-current--Color: var(--pf-t--global--text--color--regular);
10
+ --pf-v5-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--selected);
11
+ --pf-v5-c-simple-list__item-link--hover--Color: var(--pf-t--global--text--color--subtle);
12
+ --pf-v5-c-simple-list__item-link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
13
+ --pf-v5-c-simple-list__item-link--MixBlendMode: var(--pf-t--global--background--color--action--plain--hover--blend);
14
+ --pf-v5-c-simple-list__item-link--BorderRadius: var(--pf-t--global--border--radius--tiny);
15
+ --pf-v5-c-simple-list__item-link--m-link--Color: var(--pf-t--global--text--color--link--default);
16
+ --pf-v5-c-simple-list__item-link--m-link--m-current--Color: var(--pf-t--global--text--color--link--hover);
17
+ --pf-v5-c-simple-list__item-link--m-link--hover--Color: var(--pf-t--global--text--color--link--hover);
18
+ --pf-v5-c-simple-list__title--PaddingTop: var(--pf-t--global--spacer--sm);
19
+ --pf-v5-c-simple-list__title--PaddingRight: var(--pf-t--global--spacer--md);
20
+ --pf-v5-c-simple-list__title--PaddingBottom: var(--pf-t--global--spacer--sm);
21
+ --pf-v5-c-simple-list__title--PaddingLeft: var(--pf-t--global--spacer--md);
22
+ --pf-v5-c-simple-list__title--FontSize: var(--pf-t--global--font--size--body--sm);
23
+ --pf-v5-c-simple-list__title--Color: var(--pf-t--global--text--color--regular);
24
+ --pf-v5-c-simple-list__title--FontWeight: var(--pf-t--global--font--weight--body--bold);
25
+ --pf-v5-c-simple-list__section--section--MarginTop: var(--pf-t--global--spacer--sm);
29
26
  }
30
27
 
31
28
  .pf-v5-c-simple-list__item-link {
@@ -36,31 +33,28 @@
36
33
  padding-inline-start: var(--pf-v5-c-simple-list__item-link--PaddingLeft);
37
34
  padding-inline-end: var(--pf-v5-c-simple-list__item-link--PaddingRight);
38
35
  font-size: var(--pf-v5-c-simple-list__item-link--FontSize);
39
- font-weight: var(--pf-v5-c-simple-list__item-link--FontWeight);
40
36
  color: var(--pf-v5-c-simple-list__item-link--Color);
41
37
  text-align: start;
38
+ text-decoration: none;
42
39
  background-color: var(--pf-v5-c-simple-list__item-link--BackgroundColor);
43
40
  border: none;
41
+ border-radius: var(--pf-v5-c-simple-list__item-link--BorderRadius);
42
+ }
43
+ .pf-v5-c-simple-list__item-link.pf-m-link {
44
+ --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-c-simple-list__item-link--m-link--Color);
45
+ --pf-v5-c-simple-list__item-link--hover--Color: var(--pf-v5-c-simple-list__item-link--m-link--m-current--Color);
46
+ --pf-v5-c-simple-list__item-link--m-current--Color: var(--pf-v5-c-simple-list__item-link--m-link--hover--Color);
44
47
  }
45
- .pf-v5-c-simple-list__item-link:hover {
48
+ .pf-v5-c-simple-list__item-link:hover, .pf-v5-c-simple-list__item-link:focus {
46
49
  --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-v5-c-simple-list__item-link--hover--BackgroundColor);
47
50
  --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-c-simple-list__item-link--hover--Color);
48
51
  text-decoration: none;
49
- }
50
- .pf-v5-c-simple-list__item-link:focus {
51
- --pf-v5-c-simple-list__item-link--FontWeight: var(--pf-v5-c-simple-list__item-link--focus--FontWeight);
52
- --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-v5-c-simple-list__item-link--focus--BackgroundColor);
53
- --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-c-simple-list__item-link--focus--Color);
54
- }
55
- .pf-v5-c-simple-list__item-link:active {
56
- --pf-v5-c-simple-list__item-link--FontWeight: var(--pf-v5-c-simple-list__item-link--active--FontWeight);
57
- --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-v5-c-simple-list__item-link--active--BackgroundColor);
58
- --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-c-simple-list__item-link--active--Color);
52
+ mix-blend-mode: var(--pf-v5-c-simple-list__item-link--MixBlendMode);
59
53
  }
60
54
  .pf-v5-c-simple-list__item-link.pf-m-current {
61
- --pf-v5-c-simple-list__item-link--FontWeight: var(--pf-v5-c-simple-list__item-link--m-current--FontWeight);
62
55
  --pf-v5-c-simple-list__item-link--BackgroundColor: var(--pf-v5-c-simple-list__item-link--m-current--BackgroundColor);
63
56
  --pf-v5-c-simple-list__item-link--Color: var(--pf-v5-c-simple-list__item-link--m-current--Color);
57
+ mix-blend-mode: var(--pf-v5-c-simple-list__item-link--MixBlendMode);
64
58
  }
65
59
 
66
60
  .pf-v5-c-simple-list__title {
@@ -75,15 +69,4 @@
75
69
 
76
70
  .pf-v5-c-simple-list__section + .pf-v5-c-simple-list__section {
77
71
  margin-block-start: var(--pf-v5-c-simple-list__section--section--MarginTop);
78
- }
79
-
80
- :where(.pf-v5-theme-dark) .pf-v5-c-simple-list {
81
- --pf-v5-c-simple-list__item-link--m-current--Color: var(--pf-v5-global--active-color--100);
82
- --pf-v5-c-simple-list__item-link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--400);
83
- --pf-v5-c-simple-list__item-link--hover--Color: var(--pf-v5-global--Color--100);
84
- --pf-v5-c-simple-list__item-link--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--400);
85
- --pf-v5-c-simple-list__item-link--focus--Color: var(--pf-v5-global--Color--100);
86
- --pf-v5-c-simple-list__item-link--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--400);
87
- --pf-v5-c-simple-list__item-link--active--Color: var(--pf-v5-global--Color--100);
88
- --pf-v5-c-simple-list__item-link--active--BackgroundColor: var(--pf-v5-global--BackgroundColor--400);
89
72
  }