@patternfly/patternfly 4.206.3 → 4.208.1
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/base/_base.scss +2 -0
- package/base/_common.scss +3 -1
- package/base/_fonts.scss +1 -1
- package/base/patternfly-common.css +1 -1
- package/components/Button/button.css +20 -0
- package/components/Button/button.scss +23 -0
- package/components/Button/themes/dark/button.scss +1 -0
- package/components/Check/check.css +9 -0
- package/components/Check/check.scss +11 -0
- package/components/ContextSelector/context-selector.css +6 -0
- package/components/ContextSelector/context-selector.scss +7 -1
- package/components/Dropdown/dropdown.css +6 -0
- package/components/Dropdown/dropdown.scss +7 -0
- package/components/ExpandableSection/expandable-section.css +18 -1
- package/components/ExpandableSection/expandable-section.scss +25 -1
- package/components/InputGroup/input-group.css +3 -0
- package/components/InputGroup/input-group.scss +4 -0
- package/components/Masthead/masthead.css +6 -3
- package/components/Masthead/masthead.scss +4 -0
- package/components/Menu/menu.css +0 -4
- package/components/Menu/menu.scss +0 -4
- package/components/Page/page.css +4 -0
- package/components/Page/page.scss +6 -0
- package/components/Select/select.css +6 -0
- package/components/Select/select.scss +7 -0
- package/components/Wizard/themes/dark/wizard.scss +2 -2
- package/components/Wizard/wizard.css +2 -2
- package/docs/components/Avatar/examples/Avatar.md +10 -10
- package/docs/components/Button/examples/Button.md +19 -0
- package/docs/components/Card/examples/Card.css +3 -3
- package/docs/components/Check/examples/Check.md +33 -12
- package/docs/components/CodeBlock/examples/CodeBlock.md +8 -6
- package/docs/components/Dropdown/examples/Dropdown.md +2 -1
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +51 -13
- package/docs/components/InputGroup/examples/InputGroup.md +1 -0
- package/docs/components/Masthead/examples/masthead.md +5 -6
- package/docs/components/MenuToggle/examples/MenuToggle.md +6 -6
- package/docs/components/Page/examples/Page.md +1 -0
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +38 -0
- package/docs/demos/AboutModal/examples/AboutModal.md +1 -1
- package/docs/demos/Alert/examples/Alert.md +3 -3
- package/docs/demos/BackToTop/examples/BackToTop.md +1 -1
- package/docs/demos/Banner/examples/Banner.md +2 -2
- package/docs/demos/CardView/examples/CardView.md +1 -1
- package/docs/demos/ContextSelector/examples/ContextSelector.md +3 -3
- package/docs/demos/Dashboard/examples/Dashboard.md +1 -1
- package/docs/demos/DataList/examples/DataList.md +4 -4
- package/docs/demos/DescriptionList/examples/DescriptionList.md +3 -3
- package/docs/demos/Drawer/examples/Drawer.md +5 -5
- package/docs/demos/JumpLinks/examples/JumpLinks.md +6 -6
- package/docs/demos/Masthead/examples/Masthead.md +388 -2
- package/docs/demos/Modal/examples/Modal.md +6 -6
- package/docs/demos/Nav/examples/Nav.md +8 -8
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +5 -5
- package/docs/demos/Page/examples/Page.md +933 -9
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +7 -7
- package/docs/demos/Skeleton/examples/Skeleton.md +1 -1
- package/docs/demos/Table/examples/Table.md +14 -14
- package/docs/demos/Tabs/examples/Tabs.md +8 -8
- package/docs/demos/Toolbar/examples/Toolbar.md +1 -1
- package/docs/demos/Wizard/examples/Wizard.md +8 -8
- package/package.json +3 -3
- package/patternfly-base-no-reset.css +1 -1
- package/patternfly-base.css +1 -1
- package/patternfly-no-reset.css +81 -11
- package/patternfly.css +81 -11
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/base/_base.scss
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
2
2
|
|
|
3
|
+
// remove in breaking change
|
|
3
4
|
@if $pf-global--load-pf-3 {
|
|
4
5
|
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
|
|
5
6
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.37.10/css/patternfly.min.css");
|
|
6
7
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.37.10/css/patternfly-additions.min.css");
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
// remove pf3 shield styles in breaking change
|
|
9
11
|
@import "shield-inheritable";
|
|
10
12
|
@import "shield-noninheritable";
|
|
11
13
|
|
package/base/_common.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Set common reset styles for patternfly components
|
|
2
|
+
// remove in breaking change. this should come from globals, and can be opted out
|
|
2
3
|
[class*="pf-c-"] {
|
|
3
4
|
&,
|
|
4
5
|
&::before,
|
|
@@ -9,13 +10,14 @@
|
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
// remove in breaking change
|
|
12
14
|
@if $pf-global--unset-root-font-size {
|
|
13
15
|
// Since PF3 sets root font size to 10px, we need to unset it.
|
|
14
16
|
// This doesn't affect PF3.
|
|
15
17
|
// https://github.com/twbs/bootstrap/blob/v3.4.0/less/scaffolding.less#L23
|
|
16
18
|
// stylelint-disable
|
|
17
19
|
html {
|
|
18
|
-
font-size: unset !important; // the important is needed because we don't know if pf3 will be loaded after pfnext
|
|
20
|
+
font-size: var(--pf-global--root--FontSize, unset) !important; // the important is needed because we don't know if pf3 will be loaded after pfnext
|
|
19
21
|
}
|
|
20
22
|
// stylelint-enable
|
|
21
23
|
}
|
package/base/_fonts.scss
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
font-display: fallback;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
// remove in breaking change
|
|
157
157
|
@if $pf-global--enable-font-overpass-cdn {
|
|
158
158
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
159
159
|
@import url("https://fonts.googleapis.com/css?family=Overpass|Overpass+Mono");
|
|
@@ -156,6 +156,11 @@
|
|
|
156
156
|
--pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
|
|
157
157
|
--pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
|
|
158
158
|
--pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
159
|
+
--pf-c-button__count--MarginLeft: var(--pf-global--spacer--sm);
|
|
160
|
+
--pf-c-button--disabled__c-badge--Color: var(--pf-global--Color--dark-100);
|
|
161
|
+
--pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
162
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300);
|
|
163
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
159
164
|
position: relative;
|
|
160
165
|
display: inline-block;
|
|
161
166
|
padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
|
|
@@ -220,6 +225,9 @@
|
|
|
220
225
|
--pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--active--Color);
|
|
221
226
|
--pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--active--BackgroundColor);
|
|
222
227
|
}
|
|
228
|
+
.pf-c-button.pf-m-primary .pf-c-badge.pf-m-unread {
|
|
229
|
+
border: var(--pf-c-button--m-primary__c-badge--BorderWidth) solid var(--pf-c-button--m-primary__c-badge--BorderColor);
|
|
230
|
+
}
|
|
223
231
|
.pf-c-button.pf-m-secondary {
|
|
224
232
|
--pf-c-button--after--BorderColor: var(--pf-c-button--m-secondary--after--BorderColor);
|
|
225
233
|
color: var(--pf-c-button--m-secondary--Color);
|
|
@@ -431,6 +439,11 @@
|
|
|
431
439
|
.pf-c-button:disabled::after, .pf-c-button.pf-m-disabled::after, .pf-c-button.pf-m-aria-disabled::after {
|
|
432
440
|
border-color: var(--pf-c-button--disabled--after--BorderColor);
|
|
433
441
|
}
|
|
442
|
+
.pf-c-button:disabled .pf-c-badge, .pf-c-button.pf-m-disabled .pf-c-badge, .pf-c-button.pf-m-aria-disabled .pf-c-badge {
|
|
443
|
+
--pf-c-badge--m-unread--Color: var(--pf-c-button--disabled__c-badge--Color);
|
|
444
|
+
--pf-c-badge--m-unread--BackgroundColor: var(--pf-c-button--disabled__c-badge--BackgroundColor);
|
|
445
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: 0;
|
|
446
|
+
}
|
|
434
447
|
.pf-c-button.pf-m-aria-disabled {
|
|
435
448
|
--pf-c-button--after--BorderWidth: 0;
|
|
436
449
|
--pf-c-button--m-link--m-inline--hover--TextDecoration: none;
|
|
@@ -472,6 +485,12 @@
|
|
|
472
485
|
--pf-c-spinner--Color: currentcolor;
|
|
473
486
|
}
|
|
474
487
|
|
|
488
|
+
.pf-c-button__count {
|
|
489
|
+
display: inline-flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
margin-left: var(--pf-c-button__count--MarginLeft);
|
|
492
|
+
}
|
|
493
|
+
|
|
475
494
|
.pf-m-overpass-font .pf-c-button {
|
|
476
495
|
--pf-c-button--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
477
496
|
}
|
|
@@ -508,6 +527,7 @@
|
|
|
508
527
|
--pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
509
528
|
--pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
510
529
|
--pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
530
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--Color--100);
|
|
511
531
|
}
|
|
512
532
|
:where(.pf-theme-dark) .pf-c-button.pf-m-control:disabled::after {
|
|
513
533
|
border: 0;
|
|
@@ -192,6 +192,13 @@
|
|
|
192
192
|
--pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
|
|
193
193
|
--pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
194
194
|
|
|
195
|
+
// Count
|
|
196
|
+
--pf-c-button__count--MarginLeft: var(--pf-global--spacer--sm);
|
|
197
|
+
--pf-c-button--disabled__c-badge--Color: var(--pf-global--Color--dark-100);
|
|
198
|
+
--pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
199
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300);
|
|
200
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm); // used only for primary, unread, not disabled
|
|
201
|
+
|
|
195
202
|
position: relative;
|
|
196
203
|
display: inline-block;
|
|
197
204
|
padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
|
|
@@ -274,6 +281,10 @@
|
|
|
274
281
|
--pf-c-button--m-primary--Color: var(--pf-c-button--m-primary--active--Color);
|
|
275
282
|
--pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--active--BackgroundColor);
|
|
276
283
|
}
|
|
284
|
+
|
|
285
|
+
.pf-c-badge.pf-m-unread {
|
|
286
|
+
border: var(--pf-c-button--m-primary__c-badge--BorderWidth) solid var(--pf-c-button--m-primary__c-badge--BorderColor);
|
|
287
|
+
}
|
|
277
288
|
}
|
|
278
289
|
|
|
279
290
|
// Secondary buttons
|
|
@@ -564,6 +575,12 @@
|
|
|
564
575
|
|
|
565
576
|
color: var(--pf-c-button--disabled--Color);
|
|
566
577
|
background-color: var(--pf-c-button--disabled--BackgroundColor);
|
|
578
|
+
|
|
579
|
+
.pf-c-badge {
|
|
580
|
+
--pf-c-badge--m-unread--Color: var(--pf-c-button--disabled__c-badge--Color);
|
|
581
|
+
--pf-c-badge--m-unread--BackgroundColor: var(--pf-c-button--disabled__c-badge--BackgroundColor);
|
|
582
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: 0;
|
|
583
|
+
}
|
|
567
584
|
}
|
|
568
585
|
|
|
569
586
|
&.pf-m-aria-disabled {
|
|
@@ -620,6 +637,12 @@
|
|
|
620
637
|
}
|
|
621
638
|
}
|
|
622
639
|
|
|
640
|
+
.pf-c-button__count {
|
|
641
|
+
display: inline-flex;
|
|
642
|
+
align-items: center;
|
|
643
|
+
margin-left: var(--pf-c-button__count--MarginLeft);
|
|
644
|
+
}
|
|
645
|
+
|
|
623
646
|
// RedHat Font overrides
|
|
624
647
|
@include pf-m-overpass-font {
|
|
625
648
|
.pf-c-button {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
34
34
|
--pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
35
35
|
--pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
36
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--Color--100);
|
|
36
37
|
|
|
37
38
|
&.pf-m-control:disabled {
|
|
38
39
|
&::after {
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
--pf-c-check__description--FontSize: var(--pf-global--FontSize--sm);
|
|
11
11
|
--pf-c-check__description--Color: var(--pf-global--Color--200);
|
|
12
12
|
--pf-c-check__body--MarginTop: var(--pf-global--spacer--sm);
|
|
13
|
+
--pf-c-check__label-required--MarginLeft: var(--pf-global--spacer--xs);
|
|
14
|
+
--pf-c-check__label-required--FontSize: var(--pf-global--FontSize--sm);
|
|
15
|
+
--pf-c-check__label-required--Color: var(--pf-global--danger-color--100);
|
|
13
16
|
display: grid;
|
|
14
17
|
grid-template-columns: auto 1fr;
|
|
15
18
|
grid-gap: var(--pf-c-check--GridGap);
|
|
@@ -57,4 +60,10 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
57
60
|
.pf-c-check__input.pf-m-disabled {
|
|
58
61
|
--pf-c-check__label--Color: var(--pf-c-check__label--disabled--Color);
|
|
59
62
|
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pf-c-check__label-required {
|
|
66
|
+
margin-left: var(--pf-c-check__label-required--MarginLeft);
|
|
67
|
+
font-size: var(--pf-c-check__label-required--FontSize);
|
|
68
|
+
color: var(--pf-c-check__label-required--Color);
|
|
60
69
|
}
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
--pf-c-check__description--Color: var(--pf-global--Color--200);
|
|
12
12
|
--pf-c-check__body--MarginTop: var(--pf-global--spacer--sm);
|
|
13
13
|
|
|
14
|
+
// Required checkbox
|
|
15
|
+
--pf-c-check__label-required--MarginLeft: var(--pf-global--spacer--xs);
|
|
16
|
+
--pf-c-check__label-required--FontSize: var(--pf-global--FontSize--sm);
|
|
17
|
+
--pf-c-check__label-required--Color: var(--pf-global--danger-color--100);
|
|
18
|
+
|
|
14
19
|
display: grid;
|
|
15
20
|
grid-template-columns: auto 1fr;
|
|
16
21
|
grid-gap: var(--pf-c-check--GridGap);
|
|
@@ -64,3 +69,9 @@
|
|
|
64
69
|
cursor: not-allowed;
|
|
65
70
|
}
|
|
66
71
|
}
|
|
72
|
+
|
|
73
|
+
.pf-c-check__label-required {
|
|
74
|
+
margin-left: var(--pf-c-check__label-required--MarginLeft);
|
|
75
|
+
font-size: var(--pf-c-check__label-required--FontSize);
|
|
76
|
+
color: var(--pf-c-check__label-required--Color);
|
|
77
|
+
}
|
|
@@ -248,6 +248,12 @@
|
|
|
248
248
|
background-clip: padding-box;
|
|
249
249
|
box-shadow: var(--pf-c-context-selector__menu--BoxShadow);
|
|
250
250
|
}
|
|
251
|
+
.pf-c-context-selector__menu.pf-m-static {
|
|
252
|
+
position: static;
|
|
253
|
+
top: auto;
|
|
254
|
+
z-index: auto;
|
|
255
|
+
min-width: min-content;
|
|
256
|
+
}
|
|
251
257
|
|
|
252
258
|
.pf-c-context-selector__menu-search {
|
|
253
259
|
position: relative;
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
--pf-c-context-selector__menu-list--PaddingTop: var(--pf-c-context-selector__menu--PaddingTop); // reference spacer directly at breaking change
|
|
66
66
|
--pf-c-context-selector__menu-list--PaddingBottom: var(--pf-global--spacer--sm);
|
|
67
67
|
|
|
68
|
-
|
|
69
68
|
// Menu item
|
|
70
69
|
--pf-c-context-selector__menu-list-item--Color: var(--pf-global--Color--dark-100);
|
|
71
70
|
--pf-c-context-selector__menu-list-item--PaddingTop: var(--pf-global--spacer--sm);
|
|
@@ -299,6 +298,13 @@
|
|
|
299
298
|
background-color: var(--pf-c-context-selector__menu--BackgroundColor);
|
|
300
299
|
background-clip: padding-box;
|
|
301
300
|
box-shadow: var(--pf-c-context-selector__menu--BoxShadow);
|
|
301
|
+
|
|
302
|
+
&.pf-m-static {
|
|
303
|
+
position: static;
|
|
304
|
+
top: auto;
|
|
305
|
+
z-index: auto;
|
|
306
|
+
min-width: min-content;
|
|
307
|
+
}
|
|
302
308
|
}
|
|
303
309
|
|
|
304
310
|
.pf-c-context-selector__menu-search {
|
|
@@ -469,6 +469,12 @@
|
|
|
469
469
|
background-clip: padding-box;
|
|
470
470
|
box-shadow: var(--pf-c-dropdown__menu--BoxShadow);
|
|
471
471
|
}
|
|
472
|
+
.pf-c-dropdown__menu.pf-m-static {
|
|
473
|
+
position: static;
|
|
474
|
+
top: auto;
|
|
475
|
+
z-index: auto;
|
|
476
|
+
min-width: min-content;
|
|
477
|
+
}
|
|
472
478
|
|
|
473
479
|
.pf-c-dropdown .pf-c-menu,
|
|
474
480
|
.pf-c-dropdown__menu {
|
|
@@ -631,6 +631,13 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
|
|
|
631
631
|
background: var(--pf-c-dropdown__menu--BackgroundColor);
|
|
632
632
|
background-clip: padding-box;
|
|
633
633
|
box-shadow: var(--pf-c-dropdown__menu--BoxShadow);
|
|
634
|
+
|
|
635
|
+
&.pf-m-static {
|
|
636
|
+
position: static;
|
|
637
|
+
top: auto;
|
|
638
|
+
z-index: auto;
|
|
639
|
+
min-width: min-content;
|
|
640
|
+
}
|
|
634
641
|
}
|
|
635
642
|
|
|
636
643
|
.pf-c-dropdown .pf-c-menu,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--pf-c-expandable-section__toggle--PaddingRight: var(--pf-global--spacer--md);
|
|
4
4
|
--pf-c-expandable-section__toggle--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
5
5
|
--pf-c-expandable-section__toggle--PaddingLeft: 0;
|
|
6
|
+
--pf-c-expandable-section__toggle--MarginTop: 0;
|
|
6
7
|
--pf-c-expandable-section__toggle--Color: var(--pf-global--link--Color);
|
|
7
8
|
--pf-c-expandable-section__toggle--hover--Color: var(--pf-global--link--Color--hover);
|
|
8
9
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
@@ -32,6 +33,8 @@
|
|
|
32
33
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
33
34
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
34
35
|
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
36
|
+
--pf-c-expandable-section--m-truncate__content--LineClamp: 3;
|
|
37
|
+
--pf-c-expandable-section--m-truncate__toggle--MarginTop: var(--pf-global--spacer--xs);
|
|
35
38
|
}
|
|
36
39
|
.pf-c-expandable-section.pf-m-expanded {
|
|
37
40
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -39,7 +42,7 @@
|
|
|
39
42
|
--pf-c-expandable-section__toggle-icon--m-expand-top--Rotate: var(--pf-c-expandable-section--m-expanded__toggle-icon--m-expand-top--Rotate);
|
|
40
43
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: var(--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor);
|
|
41
44
|
}
|
|
42
|
-
.pf-c-expandable-section.pf-m-detached {
|
|
45
|
+
.pf-c-expandable-section.pf-m-detached, .pf-c-expandable-section.pf-m-truncate {
|
|
43
46
|
--pf-c-expandable-section__content--MarginTop: 0;
|
|
44
47
|
}
|
|
45
48
|
.pf-c-expandable-section.pf-m-limit-width {
|
|
@@ -69,10 +72,24 @@
|
|
|
69
72
|
.pf-c-expandable-section.pf-m-indented {
|
|
70
73
|
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
71
74
|
}
|
|
75
|
+
.pf-c-expandable-section.pf-m-truncate {
|
|
76
|
+
--pf-c-expandable-section__toggle--MarginTop: var(--pf-c-expandable-section--m-truncate__toggle--MarginTop);
|
|
77
|
+
--pf-c-expandable-section__toggle--PaddingTop: 0;
|
|
78
|
+
--pf-c-expandable-section__toggle--PaddingRight: 0;
|
|
79
|
+
--pf-c-expandable-section__toggle--PaddingBottom: 0;
|
|
80
|
+
--pf-c-expandable-section__toggle-text--MarginLeft: 0;
|
|
81
|
+
}
|
|
82
|
+
.pf-c-expandable-section.pf-m-truncate:not(.pf-m-expanded) .pf-c-expandable-section__content {
|
|
83
|
+
display: -webkit-box;
|
|
84
|
+
-webkit-box-orient: vertical;
|
|
85
|
+
-webkit-line-clamp: var(--pf-c-expandable-section--m-truncate__content--LineClamp);
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
}
|
|
72
88
|
|
|
73
89
|
.pf-c-expandable-section__toggle {
|
|
74
90
|
display: flex;
|
|
75
91
|
padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
|
|
92
|
+
margin-top: var(--pf-c-expandable-section__toggle--MarginTop);
|
|
76
93
|
color: var(--pf-c-expandable-section__toggle--Color);
|
|
77
94
|
border: none;
|
|
78
95
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--pf-c-expandable-section__toggle--PaddingRight: var(--pf-global--spacer--md);
|
|
5
5
|
--pf-c-expandable-section__toggle--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
6
6
|
--pf-c-expandable-section__toggle--PaddingLeft: 0;
|
|
7
|
+
--pf-c-expandable-section__toggle--MarginTop: 0;
|
|
7
8
|
--pf-c-expandable-section__toggle--Color: var(--pf-global--link--Color);
|
|
8
9
|
--pf-c-expandable-section__toggle--hover--Color: var(--pf-global--link--Color--hover);
|
|
9
10
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
@@ -46,6 +47,10 @@
|
|
|
46
47
|
// Indented
|
|
47
48
|
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
48
49
|
|
|
50
|
+
// Truncate
|
|
51
|
+
--pf-c-expandable-section--m-truncate__content--LineClamp: 3;
|
|
52
|
+
--pf-c-expandable-section--m-truncate__toggle--MarginTop: var(--pf-global--spacer--xs);
|
|
53
|
+
|
|
49
54
|
|
|
50
55
|
&.pf-m-expanded {
|
|
51
56
|
--pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--m-expanded--Color);
|
|
@@ -54,7 +59,8 @@
|
|
|
54
59
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: var(--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
&.pf-m-detached
|
|
62
|
+
&.pf-m-detached,
|
|
63
|
+
&.pf-m-truncate {
|
|
58
64
|
--pf-c-expandable-section__content--MarginTop: 0;
|
|
59
65
|
}
|
|
60
66
|
|
|
@@ -89,11 +95,29 @@
|
|
|
89
95
|
&.pf-m-indented {
|
|
90
96
|
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
91
97
|
}
|
|
98
|
+
|
|
99
|
+
&.pf-m-truncate {
|
|
100
|
+
--pf-c-expandable-section__toggle--MarginTop: var(--pf-c-expandable-section--m-truncate__toggle--MarginTop);
|
|
101
|
+
--pf-c-expandable-section__toggle--PaddingTop: 0;
|
|
102
|
+
--pf-c-expandable-section__toggle--PaddingRight: 0;
|
|
103
|
+
--pf-c-expandable-section__toggle--PaddingBottom: 0;
|
|
104
|
+
--pf-c-expandable-section__toggle-text--MarginLeft: 0;
|
|
105
|
+
|
|
106
|
+
&:not(.pf-m-expanded) .pf-c-expandable-section__content {
|
|
107
|
+
// stylelint-disable
|
|
108
|
+
display: -webkit-box;
|
|
109
|
+
-webkit-box-orient: vertical;
|
|
110
|
+
-webkit-line-clamp: var(--pf-c-expandable-section--m-truncate__content--LineClamp);
|
|
111
|
+
// stylelint-enable
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
92
115
|
}
|
|
93
116
|
|
|
94
117
|
.pf-c-expandable-section__toggle {
|
|
95
118
|
display: flex;
|
|
96
119
|
padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
|
|
120
|
+
margin-top: var(--pf-c-expandable-section__toggle--MarginTop);
|
|
97
121
|
color: var(--pf-c-expandable-section__toggle--Color);
|
|
98
122
|
border: none;
|
|
99
123
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pf-c-masthead {
|
|
11
|
+
.pf-c-masthead .pf-c-button.pf-m-plain, .pf-c-masthead {
|
|
12
12
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
13
13
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|
|
14
14
|
--pf-global--BorderColor--100: var(--pf-global--BorderColor--light-100);
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--pf-global--link--Color--hover: var(--pf-global--link--Color--light);
|
|
18
18
|
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--dark-100);
|
|
19
19
|
}
|
|
20
|
-
.pf-c-masthead .pf-c-card {
|
|
20
|
+
.pf-c-masthead .pf-c-button.pf-m-plain .pf-c-card, .pf-c-masthead .pf-c-card {
|
|
21
21
|
--pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-200);
|
|
22
22
|
}
|
|
23
|
-
.pf-c-masthead .pf-c-button {
|
|
23
|
+
.pf-c-masthead .pf-c-button.pf-m-plain .pf-c-button, .pf-c-masthead .pf-c-button {
|
|
24
24
|
--pf-c-button--m-primary--Color: var(--pf-global--primary-color--dark-100);
|
|
25
25
|
--pf-c-button--m-primary--hover--Color: var(--pf-global--primary-color--dark-100);
|
|
26
26
|
--pf-c-button--m-primary--focus--Color: var(--pf-global--primary-color--dark-100);
|
|
@@ -227,6 +227,9 @@
|
|
|
227
227
|
.pf-c-masthead .pf-c-nav {
|
|
228
228
|
align-self: stretch;
|
|
229
229
|
}
|
|
230
|
+
.pf-c-masthead .pf-c-button.pf-m-plain {
|
|
231
|
+
color: var(--pf-global--Color--200);
|
|
232
|
+
}
|
|
230
233
|
|
|
231
234
|
.pf-c-masthead__main {
|
|
232
235
|
position: relative;
|
|
@@ -243,6 +243,10 @@ $pf-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
243
243
|
.pf-c-nav {
|
|
244
244
|
align-self: stretch;
|
|
245
245
|
}
|
|
246
|
+
|
|
247
|
+
.pf-c-button.pf-m-plain {
|
|
248
|
+
@include pf-t-dark(--pf-global--Color--200); // for all plain buttons, especially inside other components (.pf-c-input-group), for dark mode
|
|
249
|
+
}
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
// Main
|
package/components/Menu/menu.css
CHANGED
|
@@ -192,8 +192,6 @@
|
|
|
192
192
|
--pf-c-menu__footer--BoxShadow: none;
|
|
193
193
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
194
194
|
--pf-c-menu__footer--after--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
195
|
-
--pf-c-menu__footer--after--BorderBottomWidth: 0;
|
|
196
|
-
--pf-c-menu__footer--after--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
197
195
|
--pf-c-menu--m-scrollable__footer--BoxShadow: var(--pf-global--BoxShadow--sm-top);
|
|
198
196
|
--pf-c-menu--m-scrollable__footer--after--BorderTopWidth: 0;
|
|
199
197
|
--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -325,7 +323,6 @@
|
|
|
325
323
|
--pf-c-menu__content--MaxHeight: var(--pf-c-menu--m-scrollable__content--MaxHeight);
|
|
326
324
|
--pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
|
|
327
325
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
|
|
328
|
-
--pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
|
|
329
326
|
}
|
|
330
327
|
.pf-c-menu.pf-m-scrollable .pf-c-menu__content {
|
|
331
328
|
overflow-y: auto;
|
|
@@ -627,7 +624,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
627
624
|
pointer-events: none;
|
|
628
625
|
content: "";
|
|
629
626
|
border-top: var(--pf-c-menu__footer--after--BorderTopWidth) solid var(--pf-c-menu__footer--after--BorderTopColor);
|
|
630
|
-
border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
|
|
631
627
|
}
|
|
632
628
|
|
|
633
629
|
:where(.pf-theme-dark) .pf-c-menu {
|
|
@@ -182,8 +182,6 @@
|
|
|
182
182
|
--pf-c-menu__footer--BoxShadow: none;
|
|
183
183
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
184
184
|
--pf-c-menu__footer--after--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
185
|
-
--pf-c-menu__footer--after--BorderBottomWidth: 0;
|
|
186
|
-
--pf-c-menu__footer--after--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
187
185
|
--pf-c-menu--m-scrollable__footer--BoxShadow: var(--pf-global--BoxShadow--sm-top);
|
|
188
186
|
--pf-c-menu--m-scrollable__footer--after--BorderTopWidth: 0;
|
|
189
187
|
--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -334,7 +332,6 @@
|
|
|
334
332
|
--pf-c-menu__content--MaxHeight: var(--pf-c-menu--m-scrollable__content--MaxHeight);
|
|
335
333
|
--pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
|
|
336
334
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
|
|
337
|
-
--pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
|
|
338
335
|
|
|
339
336
|
.pf-c-menu__content {
|
|
340
337
|
overflow-y: auto;
|
|
@@ -738,7 +735,6 @@
|
|
|
738
735
|
pointer-events: none;
|
|
739
736
|
content: "";
|
|
740
737
|
border-top: var(--pf-c-menu__footer--after--BorderTopWidth) solid var(--pf-c-menu__footer--after--BorderTopColor);
|
|
741
|
-
border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
|
|
742
738
|
}
|
|
743
739
|
}
|
|
744
740
|
|
package/components/Page/page.css
CHANGED
|
@@ -389,6 +389,12 @@
|
|
|
389
389
|
top: 0;
|
|
390
390
|
transform: translateY(var(--pf-c-select__menu--m-top--TranslateY));
|
|
391
391
|
}
|
|
392
|
+
.pf-c-select__menu.pf-m-static {
|
|
393
|
+
position: static;
|
|
394
|
+
top: auto;
|
|
395
|
+
z-index: auto;
|
|
396
|
+
min-width: min-content;
|
|
397
|
+
}
|
|
392
398
|
|
|
393
399
|
.pf-c-select__menu-fieldset {
|
|
394
400
|
border: 0;
|
|
@@ -484,6 +484,13 @@
|
|
|
484
484
|
top: 0;
|
|
485
485
|
transform: translateY(var(--pf-c-select__menu--m-top--TranslateY));
|
|
486
486
|
}
|
|
487
|
+
|
|
488
|
+
&.pf-m-static {
|
|
489
|
+
position: static;
|
|
490
|
+
top: auto;
|
|
491
|
+
z-index: auto;
|
|
492
|
+
min-width: min-content;
|
|
493
|
+
}
|
|
487
494
|
}
|
|
488
495
|
|
|
489
496
|
.pf-c-select__menu-fieldset {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin pf-theme-dark-wizard() {
|
|
4
4
|
.pf-c-wizard {
|
|
5
|
+
--pf-c-wizard__header--BackgroundColor: var(--pf-global--palette--black-1000);
|
|
6
|
+
--pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--palette--black-500);
|
|
5
7
|
--pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--disabled-color--300);
|
|
6
8
|
--pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--disabled-color--300);
|
|
7
|
-
--pf-c-wizard__nav--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
8
|
-
--pf-c-wizard__outer-wrap--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.pf-c-wizard__header {
|
|
@@ -540,10 +540,10 @@
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
:where(.pf-theme-dark) .pf-c-wizard {
|
|
543
|
+
--pf-c-wizard__header--BackgroundColor: var(--pf-global--palette--black-1000);
|
|
544
|
+
--pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--palette--black-500);
|
|
543
545
|
--pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--disabled-color--300);
|
|
544
546
|
--pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--disabled-color--300);
|
|
545
|
-
--pf-c-wizard__nav--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
546
|
-
--pf-c-wizard__outer-wrap--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
547
547
|
}
|
|
548
548
|
:where(.pf-theme-dark) .pf-c-wizard__header {
|
|
549
549
|
color: var(--pf-global--Color--100);
|