@patternfly/patternfly 4.181.0 → 4.182.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Masthead/masthead.css +21 -27
- package/components/Masthead/masthead.scss +21 -27
- package/components/MenuToggle/menu-toggle.css +135 -1
- package/components/MenuToggle/menu-toggle.scss +201 -2
- package/docs/components/MenuToggle/examples/MenuToggle.md +552 -20
- package/docs/demos/ContextSelector/examples/ContextSelector.md +3 -3
- package/docs/demos/DescriptionList/examples/DescriptionList.md +3 -3
- package/docs/demos/Masthead/examples/Masthead.md +2 -2
- package/docs/demos/Page/examples/Page.md +7 -7
- package/docs/demos/Table/examples/Table.md +13 -13
- package/package.json +1 -1
- package/patternfly-no-reset.css +156 -28
- package/patternfly.css +156 -28
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -95,24 +95,21 @@
|
|
|
95
95
|
--pf-c-masthead--c-toolbar__item--Display: flex;
|
|
96
96
|
--pf-c-masthead--item-border-color--base: var(--pf-global--palette--black-800);
|
|
97
97
|
--pf-c-masthead--c-context-selector--Width: auto;
|
|
98
|
-
--pf-c-masthead--c-context-selector__toggle--BorderTopColor:
|
|
99
|
-
--pf-c-masthead--c-context-selector__toggle--BorderRightColor:
|
|
100
|
-
--pf-c-masthead--c-context-selector__toggle--
|
|
101
|
-
--pf-c-masthead--c-context-
|
|
102
|
-
--pf-c-masthead--c-context-selector--m-full-height__toggle--
|
|
103
|
-
--pf-c-masthead--c-
|
|
104
|
-
--pf-c-masthead--c-dropdown__toggle--before--
|
|
105
|
-
--pf-c-masthead--c-dropdown__toggle--before--
|
|
106
|
-
--pf-c-masthead--c-
|
|
107
|
-
--pf-c-masthead--c-
|
|
108
|
-
--pf-c-masthead--c-
|
|
109
|
-
--pf-c-masthead--c-
|
|
110
|
-
--pf-c-masthead--c-menu-toggle--before--
|
|
111
|
-
--pf-c-masthead--c-menu-toggle--before--
|
|
112
|
-
--pf-c-masthead--c-menu-toggle--before--BorderBottomColor: transparent;
|
|
113
|
-
--pf-c-masthead--c-menu-toggle--before--BorderLeftColor: transparent;
|
|
114
|
-
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
115
|
-
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
98
|
+
--pf-c-masthead--c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
99
|
+
--pf-c-masthead--c-context-selector__toggle--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
100
|
+
--pf-c-masthead--c-context-selector__toggle--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
101
|
+
--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderTopColor: transparent;
|
|
102
|
+
--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderBottomColor: transparent;
|
|
103
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
104
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
105
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
106
|
+
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderTopColor: transparent;
|
|
107
|
+
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderBottomColor: transparent;
|
|
108
|
+
--pf-c-masthead--c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
109
|
+
--pf-c-masthead--c-menu-toggle--before--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
110
|
+
--pf-c-masthead--c-menu-toggle--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
111
|
+
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderTopColor: transparent;
|
|
112
|
+
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderBottomColor: transparent;
|
|
116
113
|
--pf-c-masthead--c-toolbar__content--PaddingRight: 0;
|
|
117
114
|
--pf-c-masthead--c-toolbar__content--PaddingLeft: 0;
|
|
118
115
|
--pf-c-masthead--c-toolbar__expandable-content--PaddingTop: var(--pf-global--spacer--md);
|
|
@@ -205,33 +202,30 @@
|
|
|
205
202
|
.pf-c-masthead .pf-c-menu-toggle {
|
|
206
203
|
--pf-c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--c-menu-toggle--before--BorderTopColor);
|
|
207
204
|
--pf-c-menu-toggle--before--BorderRightColor: var(--pf-c-masthead--c-menu-toggle--before--BorderRightColor);
|
|
208
|
-
--pf-c-menu-toggle--before--BorderBottomColor: var(--pf-c-masthead--c-menu-toggle--before--BorderBottomColor);
|
|
209
205
|
--pf-c-menu-toggle--before--BorderLeftColor: var(--pf-c-masthead--c-menu-toggle--before--BorderLeftColor);
|
|
210
206
|
}
|
|
211
207
|
.pf-c-masthead .pf-c-menu-toggle.pf-m-full-height {
|
|
212
|
-
--pf-c-menu-toggle--before--
|
|
213
|
-
--pf-c-menu-toggle--before--
|
|
208
|
+
--pf-c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderTopColor);
|
|
209
|
+
--pf-c-menu-toggle--before--BorderBottomColor: var(--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderBottomColor);
|
|
214
210
|
}
|
|
215
211
|
.pf-c-masthead .pf-c-context-selector {
|
|
216
212
|
--pf-c-context-selector--Width: var(--pf-c-masthead--c-context-selector--Width);
|
|
217
213
|
--pf-c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--c-context-selector__toggle--BorderTopColor);
|
|
218
214
|
--pf-c-context-selector__toggle--BorderRightColor: var(--pf-c-masthead--c-context-selector__toggle--BorderRightColor);
|
|
219
|
-
--pf-c-context-selector__toggle--BorderBottomColor: var(--pf-c-masthead--c-context-selector__toggle--BorderBottomColor);
|
|
220
215
|
--pf-c-context-selector__toggle--BorderLeftColor: var(--pf-c-masthead--c-context-selector__toggle--BorderLeftColor);
|
|
221
216
|
}
|
|
222
217
|
.pf-c-masthead .pf-c-context-selector.pf-m-full-height {
|
|
223
|
-
--pf-c-context-selector__toggle--
|
|
224
|
-
--pf-c-context-selector__toggle--
|
|
218
|
+
--pf-c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderTopColor);
|
|
219
|
+
--pf-c-context-selector__toggle--BorderBottomColor: var(--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderBottomColor);
|
|
225
220
|
}
|
|
226
221
|
.pf-c-masthead .pf-c-dropdown {
|
|
227
222
|
--pf-c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderTopColor);
|
|
228
223
|
--pf-c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderRightColor);
|
|
229
|
-
--pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderBottomColor);
|
|
230
224
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderLeftColor);
|
|
231
225
|
}
|
|
232
226
|
.pf-c-masthead .pf-c-dropdown.pf-m-full-height {
|
|
233
|
-
--pf-c-dropdown__toggle--before--
|
|
234
|
-
--pf-c-dropdown__toggle--before--
|
|
227
|
+
--pf-c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderTopColor);
|
|
228
|
+
--pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderBottomColor);
|
|
235
229
|
}
|
|
236
230
|
.pf-c-masthead .pf-c-nav {
|
|
237
231
|
align-self: stretch;
|
|
@@ -117,28 +117,25 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
117
117
|
|
|
118
118
|
// Context selector
|
|
119
119
|
--pf-c-masthead--c-context-selector--Width: auto;
|
|
120
|
-
--pf-c-masthead--c-context-selector__toggle--BorderTopColor:
|
|
121
|
-
--pf-c-masthead--c-context-selector__toggle--BorderRightColor:
|
|
122
|
-
--pf-c-masthead--c-context-selector__toggle--
|
|
123
|
-
--pf-c-masthead--c-context-
|
|
124
|
-
--pf-c-masthead--c-context-selector--m-full-height__toggle--
|
|
125
|
-
--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
120
|
+
--pf-c-masthead--c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
121
|
+
--pf-c-masthead--c-context-selector__toggle--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
122
|
+
--pf-c-masthead--c-context-selector__toggle--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
123
|
+
--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderTopColor: transparent;
|
|
124
|
+
--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderBottomColor: transparent;
|
|
126
125
|
|
|
127
126
|
// Dropdown
|
|
128
|
-
--pf-c-masthead--c-dropdown__toggle--before--BorderTopColor:
|
|
129
|
-
--pf-c-masthead--c-dropdown__toggle--before--BorderRightColor:
|
|
130
|
-
--pf-c-masthead--c-dropdown__toggle--before--
|
|
131
|
-
--pf-c-masthead--c-
|
|
132
|
-
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--
|
|
133
|
-
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
127
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
128
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
129
|
+
--pf-c-masthead--c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
130
|
+
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderTopColor: transparent;
|
|
131
|
+
--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderBottomColor: transparent;
|
|
134
132
|
|
|
135
133
|
// Menu toggle
|
|
136
|
-
--pf-c-masthead--c-menu-toggle--before--BorderTopColor:
|
|
137
|
-
--pf-c-masthead--c-menu-toggle--before--BorderRightColor:
|
|
138
|
-
--pf-c-masthead--c-menu-toggle--before--
|
|
139
|
-
--pf-c-masthead--c-menu-toggle--before--
|
|
140
|
-
--pf-c-masthead--c-menu-toggle--m-full-height--before--
|
|
141
|
-
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
134
|
+
--pf-c-masthead--c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--item-border-color--base);
|
|
135
|
+
--pf-c-masthead--c-menu-toggle--before--BorderRightColor: var(--pf-c-masthead--item-border-color--base);
|
|
136
|
+
--pf-c-masthead--c-menu-toggle--before--BorderLeftColor: var(--pf-c-masthead--item-border-color--base);
|
|
137
|
+
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderTopColor: transparent;
|
|
138
|
+
--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderBottomColor: transparent;
|
|
142
139
|
|
|
143
140
|
// Toolbar
|
|
144
141
|
--pf-c-masthead--c-toolbar__content--PaddingRight: 0;
|
|
@@ -216,12 +213,11 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
216
213
|
.pf-c-menu-toggle {
|
|
217
214
|
--pf-c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--c-menu-toggle--before--BorderTopColor);
|
|
218
215
|
--pf-c-menu-toggle--before--BorderRightColor: var(--pf-c-masthead--c-menu-toggle--before--BorderRightColor);
|
|
219
|
-
--pf-c-menu-toggle--before--BorderBottomColor: var(--pf-c-masthead--c-menu-toggle--before--BorderBottomColor);
|
|
220
216
|
--pf-c-menu-toggle--before--BorderLeftColor: var(--pf-c-masthead--c-menu-toggle--before--BorderLeftColor);
|
|
221
217
|
|
|
222
218
|
&.pf-m-full-height {
|
|
223
|
-
--pf-c-menu-toggle--before--
|
|
224
|
-
--pf-c-menu-toggle--before--
|
|
219
|
+
--pf-c-menu-toggle--before--BorderTopColor: var(--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderTopColor);
|
|
220
|
+
--pf-c-menu-toggle--before--BorderBottomColor: var(--pf-c-masthead--c-menu-toggle--m-full-height--before--BorderBottomColor);
|
|
225
221
|
}
|
|
226
222
|
}
|
|
227
223
|
|
|
@@ -229,24 +225,22 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
229
225
|
--pf-c-context-selector--Width: var(--pf-c-masthead--c-context-selector--Width);
|
|
230
226
|
--pf-c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--c-context-selector__toggle--BorderTopColor);
|
|
231
227
|
--pf-c-context-selector__toggle--BorderRightColor: var(--pf-c-masthead--c-context-selector__toggle--BorderRightColor);
|
|
232
|
-
--pf-c-context-selector__toggle--BorderBottomColor: var(--pf-c-masthead--c-context-selector__toggle--BorderBottomColor);
|
|
233
228
|
--pf-c-context-selector__toggle--BorderLeftColor: var(--pf-c-masthead--c-context-selector__toggle--BorderLeftColor);
|
|
234
229
|
|
|
235
230
|
&.pf-m-full-height {
|
|
236
|
-
--pf-c-context-selector__toggle--
|
|
237
|
-
--pf-c-context-selector__toggle--
|
|
231
|
+
--pf-c-context-selector__toggle--BorderTopColor: var(--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderTopColor);
|
|
232
|
+
--pf-c-context-selector__toggle--BorderBottomColor: var(--pf-c-masthead--c-context-selector--m-full-height__toggle--BorderBottomColor);
|
|
238
233
|
}
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
.pf-c-dropdown {
|
|
242
237
|
--pf-c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderTopColor);
|
|
243
238
|
--pf-c-dropdown__toggle--before--BorderRightColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderRightColor);
|
|
244
|
-
--pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderBottomColor);
|
|
245
239
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown__toggle--before--BorderLeftColor);
|
|
246
240
|
|
|
247
241
|
&.pf-m-full-height {
|
|
248
|
-
--pf-c-dropdown__toggle--before--
|
|
249
|
-
--pf-c-dropdown__toggle--before--
|
|
242
|
+
--pf-c-dropdown__toggle--before--BorderTopColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderTopColor);
|
|
243
|
+
--pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderBottomColor);
|
|
250
244
|
}
|
|
251
245
|
}
|
|
252
246
|
|
|
@@ -79,6 +79,33 @@
|
|
|
79
79
|
--pf-c-menu-toggle--m-full-height--hover--after--BorderBottomWidth: var(--pf-global--BorderWidth--xl);
|
|
80
80
|
--pf-c-menu-toggle--m-full-height--focus--after--BorderBottomWidth: var(--pf-global--BorderWidth--xl);
|
|
81
81
|
--pf-c-menu-toggle--m-full-height--active--after--BorderBottomWidth: var(--pf-global--BorderWidth--xl);
|
|
82
|
+
--pf-c-menu-toggle--m-split-button--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
83
|
+
--pf-c-menu-toggle--m-split-button--child--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
84
|
+
--pf-c-menu-toggle--m-split-button--child--disabled--Color: var(--pf-global--Color--dark-200);
|
|
85
|
+
--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
86
|
+
--pf-c-menu-toggle--m-split-button--first-child--PaddingRight: var(--pf-global--spacer--sm);
|
|
87
|
+
--pf-c-menu-toggle--m-split-button--last-child--PaddingLeft: 0;
|
|
88
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth: var(--pf-global--BorderWidth--sm);
|
|
89
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-global--BorderColor--300);
|
|
90
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--Left: 0;
|
|
91
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
92
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-global--BorderColor--200);
|
|
93
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
94
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
95
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
96
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
97
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
98
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
99
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius: var(--pf-global--BorderRadius--sm);
|
|
100
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-global--primary-color--100);
|
|
101
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--hover--BackgroundColor: var(--pf-global--primary-color--200);
|
|
102
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--focus--BackgroundColor: var(--pf-global--primary-color--200);
|
|
103
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--active--BackgroundColor: var(--pf-global--primary-color--200);
|
|
104
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BorderLeftColor: var(--pf-global--primary-color--200);
|
|
105
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor: var(--pf-global--primary-color--200);
|
|
106
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-secondary--child--BorderLeftColor: var(--pf-global--primary-color--100);
|
|
107
|
+
--pf-c-menu-toggle__button__controls--MarginRight: var(--pf-global--spacer--sm);
|
|
108
|
+
--pf-c-menu-toggle__button__controls--MarginLeft: var(--pf-global--spacer--sm);
|
|
82
109
|
position: relative;
|
|
83
110
|
display: inline-flex;
|
|
84
111
|
align-items: center;
|
|
@@ -190,7 +217,7 @@
|
|
|
190
217
|
--pf-c-menu-toggle--m-plain__toggle-icon--Color: var(--pf-c-menu-toggle--m-plain--m-expanded__toggle-icon--Color);
|
|
191
218
|
--pf-c-menu-toggle--m-plain--Color: var(--pf-c-menu-toggle--m-plain--m-expanded--Color);
|
|
192
219
|
}
|
|
193
|
-
.pf-c-menu-toggle:disabled {
|
|
220
|
+
.pf-c-menu-toggle:disabled, .pf-c-menu-toggle.pf-m-disabled {
|
|
194
221
|
--pf-c-menu-toggle--Color: var(--pf-c-menu-toggle--disabled--Color);
|
|
195
222
|
--pf-c-menu-toggle--BackgroundColor: var(--pf-c-menu-toggle--disabled--BackgroundColor);
|
|
196
223
|
--pf-c-menu-toggle--m-plain--Color: var(--pf-c-menu-toggle--m-plain--disabled--Color);
|
|
@@ -209,6 +236,113 @@
|
|
|
209
236
|
--pf-c-menu-toggle--active--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-full-height--active--after--BorderBottomWidth);
|
|
210
237
|
height: 100%;
|
|
211
238
|
}
|
|
239
|
+
.pf-c-menu-toggle.pf-m-split-button {
|
|
240
|
+
--pf-c-menu-toggle__toggle-icon--MarginRight: 0;
|
|
241
|
+
padding: 0;
|
|
242
|
+
}
|
|
243
|
+
.pf-c-menu-toggle.pf-m-split-button > * {
|
|
244
|
+
position: relative;
|
|
245
|
+
padding: var(--pf-c-menu-toggle--PaddingTop) var(--pf-c-menu-toggle--PaddingRight) var(--pf-c-menu-toggle--PaddingBottom) var(--pf-c-menu-toggle--PaddingLeft);
|
|
246
|
+
}
|
|
247
|
+
.pf-c-menu-toggle.pf-m-split-button > *:first-child {
|
|
248
|
+
padding-right: var(--pf-c-menu-toggle--m-split-button--first-child--PaddingRight);
|
|
249
|
+
}
|
|
250
|
+
.pf-c-menu-toggle.pf-m-split-button:where(:not(.pf-m-action)) > :last-child {
|
|
251
|
+
padding-left: var(--pf-c-menu-toggle--m-split-button--last-child--PaddingLeft);
|
|
252
|
+
}
|
|
253
|
+
.pf-c-menu-toggle.pf-m-split-button > .pf-c-check {
|
|
254
|
+
--pf-c-menu-toggle--PaddingRight: 0;
|
|
255
|
+
--pf-c-check__input--MarginTop: 0;
|
|
256
|
+
--pf-c-check__label--Color: var(--pf-c-check__label--Color, inherit);
|
|
257
|
+
align-items: center;
|
|
258
|
+
align-self: stretch;
|
|
259
|
+
}
|
|
260
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *::after {
|
|
261
|
+
position: absolute;
|
|
262
|
+
top: 0;
|
|
263
|
+
right: 0;
|
|
264
|
+
bottom: 0;
|
|
265
|
+
left: var(--pf-c-menu-toggle--m-split-button--m-action--child--after--Left);
|
|
266
|
+
pointer-events: none;
|
|
267
|
+
content: "";
|
|
268
|
+
border-bottom: var(--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth) solid var(--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor);
|
|
269
|
+
}
|
|
270
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *:hover {
|
|
271
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomWidth);
|
|
272
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomColor);
|
|
273
|
+
}
|
|
274
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *:focus {
|
|
275
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomWidth);
|
|
276
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomColor);
|
|
277
|
+
}
|
|
278
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *:active, .pf-c-menu-toggle.pf-m-split-button.pf-m-action:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > *.pf-m-active {
|
|
279
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomWidth);
|
|
280
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomColor);
|
|
281
|
+
}
|
|
282
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary {
|
|
283
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BorderLeftColor);
|
|
284
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: 0;
|
|
285
|
+
}
|
|
286
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :where(:not(.pf-m-disabled):not([disabled])) {
|
|
287
|
+
background-color: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor);
|
|
288
|
+
}
|
|
289
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :where(:not(.pf-m-disabled):not([disabled])):hover {
|
|
290
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--hover--BackgroundColor);
|
|
291
|
+
}
|
|
292
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :where(:not(.pf-m-disabled):not([disabled])):focus {
|
|
293
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--focus--BackgroundColor);
|
|
294
|
+
}
|
|
295
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :where(:not(.pf-m-disabled):not([disabled])):active, .pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :where(:not(.pf-m-disabled):not([disabled])).pf-m-active {
|
|
296
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--active--BackgroundColor);
|
|
297
|
+
}
|
|
298
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary.pf-m-expanded {
|
|
299
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor);
|
|
300
|
+
}
|
|
301
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-secondary {
|
|
302
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-secondary--child--BorderLeftColor);
|
|
303
|
+
}
|
|
304
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary, .pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-secondary {
|
|
305
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: 0;
|
|
306
|
+
}
|
|
307
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :first-child, .pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-secondary > :first-child {
|
|
308
|
+
border-top-left-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
309
|
+
border-bottom-left-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
310
|
+
}
|
|
311
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-primary > :last-child, .pf-c-menu-toggle.pf-m-split-button.pf-m-action.pf-m-secondary > :last-child {
|
|
312
|
+
border-top-right-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
313
|
+
border-bottom-right-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
314
|
+
}
|
|
315
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action > :not(:first-child) {
|
|
316
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--Left: calc(var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth) * -1);
|
|
317
|
+
border-left: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth) solid var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor);
|
|
318
|
+
}
|
|
319
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-action:not(.pf-m-expanded) {
|
|
320
|
+
--pf-c-menu-toggle--after--BorderBottomColor: transparent;
|
|
321
|
+
}
|
|
322
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-disabled, .pf-c-menu-toggle.pf-m-split-button:disabled {
|
|
323
|
+
--pf-c-menu-toggle--m-split-button--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor);
|
|
324
|
+
--pf-c-menu-toggle--m-split-button--child--Color: var(--pf-c-menu-toggle--m-split-button--child--disabled--Color);
|
|
325
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: transparent;
|
|
326
|
+
}
|
|
327
|
+
.pf-c-menu-toggle.pf-m-split-button.pf-m-disabled::before, .pf-c-menu-toggle.pf-m-split-button.pf-m-disabled::after, .pf-c-menu-toggle.pf-m-split-button:disabled::before, .pf-c-menu-toggle.pf-m-split-button:disabled::after {
|
|
328
|
+
content: none;
|
|
329
|
+
}
|
|
330
|
+
.pf-c-menu-toggle.pf-m-split-button > .pf-m-disabled,
|
|
331
|
+
.pf-c-menu-toggle.pf-m-split-button > :disabled {
|
|
332
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: transparent;
|
|
333
|
+
color: var(--pf-c-menu-toggle--m-split-button--child--disabled--Color);
|
|
334
|
+
background-color: var(--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.pf-c-menu-toggle__button {
|
|
338
|
+
color: inherit;
|
|
339
|
+
border: 0;
|
|
340
|
+
}
|
|
341
|
+
.pf-c-menu-toggle__button .pf-c-menu-toggle__controls {
|
|
342
|
+
padding-left: 0;
|
|
343
|
+
margin-right: var(--pf-c-menu-toggle__button__controls--MarginRight);
|
|
344
|
+
margin-left: var(--pf-c-menu-toggle__button__controls--MarginLeft);
|
|
345
|
+
}
|
|
212
346
|
|
|
213
347
|
.pf-c-menu-toggle__icon {
|
|
214
348
|
display: inline-flex;
|
|
@@ -111,6 +111,45 @@
|
|
|
111
111
|
--pf-c-menu-toggle--m-full-height--focus--after--BorderBottomWidth: var(--pf-global--BorderWidth--xl);
|
|
112
112
|
--pf-c-menu-toggle--m-full-height--active--after--BorderBottomWidth: var(--pf-global--BorderWidth--xl);
|
|
113
113
|
|
|
114
|
+
// Split button
|
|
115
|
+
--pf-c-menu-toggle--m-split-button--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
116
|
+
|
|
117
|
+
// Split button, child
|
|
118
|
+
--pf-c-menu-toggle--m-split-button--child--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
119
|
+
--pf-c-menu-toggle--m-split-button--child--disabled--Color: var(--pf-global--Color--dark-200);
|
|
120
|
+
--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
121
|
+
--pf-c-menu-toggle--m-split-button--first-child--PaddingRight: var(--pf-global--spacer--sm);
|
|
122
|
+
--pf-c-menu-toggle--m-split-button--last-child--PaddingLeft: 0;
|
|
123
|
+
|
|
124
|
+
// Split button, action
|
|
125
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth: var(--pf-global--BorderWidth--sm);
|
|
126
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-global--BorderColor--300);
|
|
127
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--Left: 0;
|
|
128
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
129
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-global--BorderColor--200);
|
|
130
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
131
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
132
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
133
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
134
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomWidth: var(--pf-global--BorderWidth--md);
|
|
135
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomColor: var(--pf-global--active-color--100);
|
|
136
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius: var(--pf-global--BorderRadius--sm);
|
|
137
|
+
|
|
138
|
+
// Split button action, primary
|
|
139
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-global--primary-color--100);
|
|
140
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--hover--BackgroundColor: var(--pf-global--primary-color--200);
|
|
141
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--focus--BackgroundColor: var(--pf-global--primary-color--200);
|
|
142
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--active--BackgroundColor: var(--pf-global--primary-color--200);
|
|
143
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BorderLeftColor: var(--pf-global--primary-color--200);
|
|
144
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor: var(--pf-global--primary-color--200);
|
|
145
|
+
|
|
146
|
+
// Split button action, secondary
|
|
147
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-secondary--child--BorderLeftColor: var(--pf-global--primary-color--100);
|
|
148
|
+
|
|
149
|
+
// Split button, controls, check
|
|
150
|
+
--pf-c-menu-toggle__button__controls--MarginRight: var(--pf-global--spacer--sm);
|
|
151
|
+
--pf-c-menu-toggle__button__controls--MarginLeft: var(--pf-global--spacer--sm);
|
|
152
|
+
|
|
114
153
|
position: relative;
|
|
115
154
|
display: inline-flex;
|
|
116
155
|
align-items: center;
|
|
@@ -154,7 +193,6 @@
|
|
|
154
193
|
--pf-c-menu-toggle--m-expanded--Color: var(--pf-c-menu-toggle--m-primary--m-expanded--Color);
|
|
155
194
|
--pf-c-menu-toggle--m-expanded--BackgroundColor: var(--pf-c-menu-toggle--m-primary--m-expanded--BackgroundColor);
|
|
156
195
|
|
|
157
|
-
|
|
158
196
|
&,
|
|
159
197
|
&::before {
|
|
160
198
|
border-radius: var(--pf-c-menu-toggle--m-primary--BorderRadius);
|
|
@@ -246,7 +284,8 @@
|
|
|
246
284
|
--pf-c-menu-toggle--m-plain--Color: var(--pf-c-menu-toggle--m-plain--m-expanded--Color);
|
|
247
285
|
}
|
|
248
286
|
|
|
249
|
-
&:disabled
|
|
287
|
+
&:disabled,
|
|
288
|
+
&.pf-m-disabled {
|
|
250
289
|
--pf-c-menu-toggle--Color: var(--pf-c-menu-toggle--disabled--Color);
|
|
251
290
|
--pf-c-menu-toggle--BackgroundColor: var(--pf-c-menu-toggle--disabled--BackgroundColor);
|
|
252
291
|
--pf-c-menu-toggle--m-plain--Color: var(--pf-c-menu-toggle--m-plain--disabled--Color);
|
|
@@ -274,6 +313,166 @@
|
|
|
274
313
|
|
|
275
314
|
height: 100%;
|
|
276
315
|
}
|
|
316
|
+
|
|
317
|
+
&.pf-m-split-button {
|
|
318
|
+
--pf-c-menu-toggle__toggle-icon--MarginRight: 0;
|
|
319
|
+
|
|
320
|
+
padding: 0; // pass padding to children
|
|
321
|
+
|
|
322
|
+
> * {
|
|
323
|
+
position: relative;
|
|
324
|
+
padding: var(--pf-c-menu-toggle--PaddingTop) var(--pf-c-menu-toggle--PaddingRight) var(--pf-c-menu-toggle--PaddingBottom) var(--pf-c-menu-toggle--PaddingLeft);
|
|
325
|
+
|
|
326
|
+
&:first-child {
|
|
327
|
+
padding-right: var(--pf-c-menu-toggle--m-split-button--first-child--PaddingRight);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&:where(:not(.pf-m-action)) {
|
|
332
|
+
> :last-child {
|
|
333
|
+
padding-left: var(--pf-c-menu-toggle--m-split-button--last-child--PaddingLeft);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
> .pf-c-check {
|
|
338
|
+
--pf-c-menu-toggle--PaddingRight: 0;
|
|
339
|
+
--pf-c-check__input--MarginTop: 0;
|
|
340
|
+
--pf-c-check__label--Color: var(--pf-c-check__label--Color, inherit);
|
|
341
|
+
|
|
342
|
+
align-items: center;
|
|
343
|
+
align-self: stretch;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Split button, active
|
|
347
|
+
&.pf-m-action {
|
|
348
|
+
// stylelint-disable max-nesting-depth
|
|
349
|
+
&:where(:not(.pf-m-primary, .pf-m-secondary, .pf-m-disabled)) > * {
|
|
350
|
+
&::after {
|
|
351
|
+
position: absolute;
|
|
352
|
+
top: 0;
|
|
353
|
+
right: 0;
|
|
354
|
+
bottom: 0;
|
|
355
|
+
left: var(--pf-c-menu-toggle--m-split-button--m-action--child--after--Left);
|
|
356
|
+
pointer-events: none;
|
|
357
|
+
content: "";
|
|
358
|
+
border-bottom: var(--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth) solid var(--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:hover {
|
|
362
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomWidth);
|
|
363
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--hover--after--BorderBottomColor);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&:focus {
|
|
367
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomWidth);
|
|
368
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--focus--after--BorderBottomColor);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&:active,
|
|
372
|
+
&.pf-m-active {
|
|
373
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: var(--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomWidth);
|
|
374
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomColor: var(--pf-c-menu-toggle--m-split-button--m-action--child--active--after--BorderBottomColor);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
// stylelint-enable
|
|
378
|
+
|
|
379
|
+
// Split button, primary
|
|
380
|
+
&.pf-m-primary {
|
|
381
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BorderLeftColor);
|
|
382
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: 0;
|
|
383
|
+
|
|
384
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
385
|
+
> :where(:not(.pf-m-disabled):not([disabled])) {
|
|
386
|
+
background-color: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor);
|
|
387
|
+
|
|
388
|
+
&:hover {
|
|
389
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--hover--BackgroundColor);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
&:focus {
|
|
393
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--focus--BackgroundColor);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&:active,
|
|
397
|
+
&.pf-m-active {
|
|
398
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--active--BackgroundColor);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
&.pf-m-expanded {
|
|
403
|
+
--pf-c-menu-toggle--m-split-button--m-action--m-primary--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-primary--m-expanded--child--BackgroundColor);
|
|
404
|
+
}
|
|
405
|
+
// stylelint-enable
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Split button, secondary
|
|
409
|
+
&.pf-m-secondary {
|
|
410
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: var(--pf-c-menu-toggle--m-split-button--m-action--m-secondary--child--BorderLeftColor);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
&.pf-m-primary,
|
|
414
|
+
&.pf-m-secondary {
|
|
415
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--BorderBottomWidth: 0;
|
|
416
|
+
|
|
417
|
+
// stylelint-disable max-nesting-depth
|
|
418
|
+
> :first-child {
|
|
419
|
+
border-top-left-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
420
|
+
border-bottom-left-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
> :last-child {
|
|
424
|
+
border-top-right-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
425
|
+
border-bottom-right-radius: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderRadius);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// enable-disable
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// all subsequent buttons
|
|
432
|
+
> :not(:first-child) {
|
|
433
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--after--Left: calc(var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth) * -1);
|
|
434
|
+
|
|
435
|
+
border-left: var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftWidth) solid var(--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
&:not(.pf-m-expanded) {
|
|
439
|
+
--pf-c-menu-toggle--after--BorderBottomColor: transparent; // leave bottom border unchanged for expanded state
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// disable accent border
|
|
444
|
+
&.pf-m-disabled,
|
|
445
|
+
&:disabled {
|
|
446
|
+
--pf-c-menu-toggle--m-split-button--child--BackgroundColor: var(--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor);
|
|
447
|
+
--pf-c-menu-toggle--m-split-button--child--Color: var(--pf-c-menu-toggle--m-split-button--child--disabled--Color);
|
|
448
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: transparent;
|
|
449
|
+
|
|
450
|
+
&::before,
|
|
451
|
+
&::after {
|
|
452
|
+
content: none;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// disabled styles for children
|
|
457
|
+
> .pf-m-disabled,
|
|
458
|
+
> :disabled {
|
|
459
|
+
--pf-c-menu-toggle--m-split-button--m-action--child--BorderLeftColor: transparent;
|
|
460
|
+
|
|
461
|
+
color: var(--pf-c-menu-toggle--m-split-button--child--disabled--Color);
|
|
462
|
+
background-color: var(--pf-c-menu-toggle--m-split-button--child--disabled--BackgroundColor);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.pf-c-menu-toggle__button {
|
|
468
|
+
color: inherit;
|
|
469
|
+
border: 0;
|
|
470
|
+
|
|
471
|
+
.pf-c-menu-toggle__controls {
|
|
472
|
+
padding-left: 0;
|
|
473
|
+
margin-right: var(--pf-c-menu-toggle__button__controls--MarginRight);
|
|
474
|
+
margin-left: var(--pf-c-menu-toggle__button__controls--MarginLeft);
|
|
475
|
+
}
|
|
277
476
|
}
|
|
278
477
|
|
|
279
478
|
.pf-c-menu-toggle__icon {
|