@patternfly/patternfly 5.0.0-alpha.1 → 5.0.0-alpha.11
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/RELEASE-NOTES.md +30 -0
- package/base/_common.scss +0 -22
- package/base/patternfly-common.css +0 -10
- package/components/Card/card.css +9 -12
- package/components/Card/card.scss +11 -17
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Drawer/drawer.css +0 -1
- package/components/Drawer/drawer.scss +0 -1
- package/components/Dropdown/dropdown.css +15 -0
- package/components/Dropdown/dropdown.scss +20 -0
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/FormControl/form-control.css +1 -1
- package/components/FormControl/themes/dark/form-control.scss +1 -1
- package/components/InputGroup/input-group.css +14 -0
- package/components/InputGroup/input-group.scss +9 -0
- package/components/InputGroup/themes/dark/input-group.scss +8 -0
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Menu/menu.css +4 -0
- package/components/Menu/menu.scss +5 -0
- package/components/Pagination/pagination.css +228 -0
- package/components/Pagination/pagination.scss +30 -1
- package/components/Popover/popover.css +2 -7
- package/components/Popover/themes/dark/popover.scss +2 -8
- package/components/Slider/slider.css +0 -7
- package/components/Slider/slider.scss +0 -9
- package/components/Toolbar/toolbar.css +30 -2
- package/components/Toolbar/toolbar.scss +37 -3
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/docs/components/Card/examples/Card.md +61 -44
- package/docs/components/Check/examples/Check.md +2 -6
- package/docs/components/ChipGroup/examples/ChipGroup.md +10 -339
- package/docs/components/CodeBlock/examples/CodeBlock.md +6 -6
- package/docs/components/CodeEditor/examples/CodeEditor.md +2 -6
- package/docs/components/DataList/examples/DataList.md +104 -65
- package/docs/components/Dropdown/examples/Dropdown.md +263 -23
- package/docs/components/EmptyState/examples/EmptyState.md +127 -79
- package/docs/components/InputGroup/examples/InputGroup.md +1 -0
- package/docs/components/LabelGroup/examples/LabelGroup.md +2 -14
- package/docs/components/Menu/examples/Menu.md +1 -1
- package/docs/components/MenuToggle/examples/MenuToggle.md +4 -4
- package/docs/components/Pagination/examples/Pagination.md +129 -30
- package/docs/components/Slider/examples/Slider.md +6 -6
- package/docs/components/Table/examples/Table.md +1117 -700
- package/docs/components/Tabs/examples/Tabs.md +1 -1
- package/docs/components/Toolbar/examples/Toolbar.md +67 -46
- package/docs/components/Wizard/examples/Wizard.md +4 -7
- package/docs/demos/Banner/examples/Banner.md +2 -2
- package/docs/demos/Card/examples/Card.md +144 -109
- package/docs/demos/CardView/examples/CardView.md +9 -8
- package/docs/demos/Dashboard/examples/Dashboard.md +1 -4
- package/docs/demos/DataList/examples/DataList.md +138 -89
- package/docs/demos/Masthead/examples/Masthead.md +3 -6
- package/docs/demos/Nav/examples/Nav.md +671 -718
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +17 -13
- package/docs/demos/Table/examples/Table.md +439 -297
- package/docs/demos/Tabs/examples/Tabs.md +90 -569
- package/docs/demos/Toolbar/examples/Toolbar.md +1773 -163
- package/docs/demos/Wizard/examples/Wizard.md +0 -4
- package/package.json +5 -5
- package/patternfly-base-no-reset.css +0 -10
- package/patternfly-base.css +0 -10
- package/patternfly-no-reset.css +409 -143
- package/patternfly.css +409 -143
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +0 -1
|
@@ -3,38 +3,51 @@
|
|
|
3
3
|
--pf-c-empty-state--PaddingRight: var(--pf-global--spacer--xl);
|
|
4
4
|
--pf-c-empty-state--PaddingBottom: var(--pf-global--spacer--xl);
|
|
5
5
|
--pf-c-empty-state--PaddingLeft: var(--pf-global--spacer--xl);
|
|
6
|
+
--pf-c-empty-state--m-xs--PaddingTop: var(--pf-global--spacer--md);
|
|
7
|
+
--pf-c-empty-state--m-xs--PaddingRight: var(--pf-global--spacer--md);
|
|
8
|
+
--pf-c-empty-state--m-xs--PaddingBottom: var(--pf-global--spacer--md);
|
|
9
|
+
--pf-c-empty-state--m-xs--PaddingLeft: var(--pf-global--spacer--md);
|
|
10
|
+
|
|
11
|
+
// Content
|
|
6
12
|
--pf-c-empty-state__content--MaxWidth: none;
|
|
13
|
+
--pf-c-empty-state--m-xs__content--MaxWidth: #{pf-size-prem(350px)};
|
|
14
|
+
--pf-c-empty-state--m-sm__content--MaxWidth: #{pf-size-prem(400px)};
|
|
15
|
+
--pf-c-empty-state--m-lg__content--MaxWidth: #{pf-size-prem(600px)};
|
|
16
|
+
|
|
17
|
+
// Icon
|
|
7
18
|
--pf-c-empty-state__icon--MarginBottom: var(--pf-global--spacer--lg);
|
|
8
19
|
--pf-c-empty-state__icon--FontSize: var(--pf-global--icon--FontSize--xl);
|
|
9
20
|
--pf-c-empty-state__icon--Color: var(--pf-global--icon--Color--light);
|
|
10
|
-
--pf-c-empty-
|
|
21
|
+
--pf-c-empty-state--m-xs__icon--MarginBottom: var(--pf-global--spacer--md);
|
|
22
|
+
--pf-c-empty-state--m-xl__icon--MarginBottom: var(--pf-global--spacer--xl);
|
|
23
|
+
--pf-c-empty-state--m-xl__icon--FontSize: #{pf-size-prem(100px)};
|
|
24
|
+
|
|
25
|
+
// Title text
|
|
26
|
+
--pf-c-empty-state__title-text--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
27
|
+
--pf-c-empty-state__title-text--FontSize: var(--pf-global--FontSize--xl);
|
|
28
|
+
--pf-c-empty-state__title-text--FontWeight: var(--pf-global--FontWeight--normal);
|
|
29
|
+
--pf-c-empty-state__title-text--LineHeight: var(--pf-global--LineHeight--md);
|
|
30
|
+
--pf-c-empty-state--m-xs__title-text--FontSize: var(--pf-global--FontSize--md);
|
|
31
|
+
--pf-c-empty-state--m-xl__title-text--FontSize: var(--pf-global--FontSize--4xl);
|
|
32
|
+
--pf-c-empty-state--m-xl__title-text--LineHeight: var(--pf-global--LineHeight--sm);
|
|
33
|
+
|
|
34
|
+
// Body
|
|
11
35
|
--pf-c-empty-state__body--MarginTop: var(--pf-global--spacer--md);
|
|
12
36
|
--pf-c-empty-state__body--Color: var(--pf-global--Color--200);
|
|
13
|
-
--pf-c-empty-
|
|
14
|
-
--pf-c-empty-state__primary--secondary--MarginTop: var(--pf-global--spacer--sm);
|
|
15
|
-
--pf-c-empty-state__secondary--MarginTop: var(--pf-global--spacer--xl);
|
|
16
|
-
--pf-c-empty-state__secondary--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
|
|
17
|
-
--pf-c-empty-state__secondary--child--MarginRight: calc(var(--pf-global--spacer--xs) / 2);
|
|
18
|
-
--pf-c-empty-state__secondary--child--MarginBottom: var(--pf-global--spacer--xs);
|
|
19
|
-
--pf-c-empty-state__secondary--child--MarginLeft: calc(var(--pf-global--spacer--xs) / 2);
|
|
20
|
-
--pf-c-empty-state--m-xs__content--MaxWidth: #{pf-size-prem(350px)};
|
|
37
|
+
--pf-c-empty-state--body--FontSize: var(--pf-global--FontSize--md);
|
|
21
38
|
--pf-c-empty-state--m-xs__body--FontSize: var(--pf-global--FontSize--sm);
|
|
22
|
-
--pf-c-empty-state--m-xs--button--FontSize: var(--pf-global--FontSize--sm);
|
|
23
|
-
--pf-c-empty-state--m-xs--PaddingTop: var(--pf-global--spacer--md);
|
|
24
|
-
--pf-c-empty-state--m-xs--PaddingRight: var(--pf-global--spacer--md);
|
|
25
|
-
--pf-c-empty-state--m-xs--PaddingBottom: var(--pf-global--spacer--md);
|
|
26
|
-
--pf-c-empty-state--m-xs--PaddingLeft: var(--pf-global--spacer--md);
|
|
27
|
-
--pf-c-empty-state--m-xs__icon--MarginBottom: var(--pf-global--spacer--md);
|
|
28
39
|
--pf-c-empty-state--m-xs__body--MarginTop: var(--pf-global--spacer--md);
|
|
29
|
-
--pf-c-empty-state--m-xs__primary--MarginTop: var(--pf-global--spacer--md);
|
|
30
|
-
--pf-c-empty-state--m-xs__secondary--MarginTop: var(--pf-global--spacer--md);
|
|
31
|
-
--pf-c-empty-state--m-sm__content--MaxWidth: #{pf-size-prem(400px)};
|
|
32
|
-
--pf-c-empty-state--m-lg__content--MaxWidth: #{pf-size-prem(600px)};
|
|
33
40
|
--pf-c-empty-state--m-xl__body--FontSize: var(--pf-global--FontSize--xl);
|
|
34
41
|
--pf-c-empty-state--m-xl__body--MarginTop: var(--pf-global--spacer--lg);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--pf-c-empty-
|
|
42
|
+
|
|
43
|
+
// Footer
|
|
44
|
+
--pf-c-empty-state__footer--RowGap: var(--pf-global--spacer--sm);
|
|
45
|
+
--pf-c-empty-state__footer--MarginTop: var(--pf-global--spacer--xl);
|
|
46
|
+
--pf-c-empty-state--m-xs__footer--MarginTop: var(--pf-global--spacer--md);
|
|
47
|
+
|
|
48
|
+
// Actions
|
|
49
|
+
--pf-c-empty-state__actions--RowGap: var(--pf-global--spacer--xs);
|
|
50
|
+
--pf-c-empty-state__actions--ColumnGap: var(--pf-global--spacer--xs);
|
|
38
51
|
|
|
39
52
|
display: flex;
|
|
40
53
|
align-items: center;
|
|
@@ -47,19 +60,12 @@
|
|
|
47
60
|
--pf-c-empty-state--PaddingRight: var(--pf-c-empty-state--m-xs--PaddingRight);
|
|
48
61
|
--pf-c-empty-state--PaddingBottom: var(--pf-c-empty-state--m-xs--PaddingBottom);
|
|
49
62
|
--pf-c-empty-state--PaddingLeft: var(--pf-c-empty-state--m-xs--PaddingLeft);
|
|
63
|
+
--pf-c-empty-state__title-text--FontSize: var(--pf-c-empty-state--m-xs__title-text--FontSize);
|
|
50
64
|
--pf-c-empty-state__content--MaxWidth: var(--pf-c-empty-state--m-xs__content--MaxWidth);
|
|
51
65
|
--pf-c-empty-state__icon--MarginBottom: var(--pf-c-empty-state--m-xs__icon--MarginBottom);
|
|
52
66
|
--pf-c-empty-state__body--MarginTop: var(--pf-c-empty-state--m-xs__body--MarginTop);
|
|
53
|
-
--pf-c-empty-
|
|
54
|
-
--pf-c-empty-
|
|
55
|
-
|
|
56
|
-
.pf-c-empty-state__body {
|
|
57
|
-
font-size: var(--pf-c-empty-state--m-xs__body--FontSize);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.pf-c-button {
|
|
61
|
-
--pf-c-button--FontSize: var(--pf-c-empty-state--m-xs--button--FontSize);
|
|
62
|
-
}
|
|
67
|
+
--pf-c-empty-state--body--FontSize: var(--pf-c-empty-state--m-xs__body--FontSize);
|
|
68
|
+
--pf-c-empty-state__footer--MarginTop: var(--pf-c-empty-state--m-xs__footer--MarginTop);
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
&.pf-m-sm {
|
|
@@ -72,13 +78,11 @@
|
|
|
72
78
|
|
|
73
79
|
&.pf-m-xl {
|
|
74
80
|
--pf-c-empty-state__body--MarginTop: var(--pf-c-empty-state--m-xl__body--MarginTop);
|
|
81
|
+
--pf-c-empty-state--body--FontSize: var(--pf-c-empty-state--m-xl__body--FontSize);
|
|
75
82
|
--pf-c-empty-state__icon--MarginBottom: var(--pf-c-empty-state--m-xl__icon--MarginBottom);
|
|
76
83
|
--pf-c-empty-state__icon--FontSize: var(--pf-c-empty-state--m-xl__icon--FontSize);
|
|
77
|
-
--pf-c-empty-
|
|
78
|
-
|
|
79
|
-
.pf-c-empty-state__body {
|
|
80
|
-
font-size: var(--pf-c-empty-state--m-xl__body--FontSize);
|
|
81
|
-
}
|
|
84
|
+
--pf-c-empty-state__title-text--FontSize: var(--pf-c-empty-state--m-xl__title-text--FontSize);
|
|
85
|
+
--pf-c-empty-state__title-text--LineHeight: var(--pf-c-empty-state--m-xl__title-text--LineHeight);
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
&.pf-m-full-height {
|
|
@@ -88,42 +92,39 @@
|
|
|
88
92
|
|
|
89
93
|
.pf-c-empty-state__content {
|
|
90
94
|
max-width: var(--pf-c-empty-state__content--MaxWidth);
|
|
91
|
-
|
|
92
|
-
> .pf-c-title.pf-m-lg {
|
|
93
|
-
font-size: var(--pf-c-empty-state__content--c-title--m-lg--FontSize);
|
|
94
|
-
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.pf-c-empty-state__icon {
|
|
98
98
|
margin-bottom: var(--pf-c-empty-state__icon--MarginBottom);
|
|
99
99
|
font-size: var(--pf-c-empty-state__icon--FontSize);
|
|
100
|
+
line-height: 1;
|
|
100
101
|
color: var(--pf-c-empty-state__icon--Color);
|
|
101
102
|
}
|
|
102
103
|
|
|
104
|
+
.pf-c-empty-state__title-text {
|
|
105
|
+
font-family: var(--pf-c-empty-state__title-text--FontFamily);
|
|
106
|
+
font-size: var(--pf-c-empty-state__title-text--FontSize);
|
|
107
|
+
font-weight: var(--pf-c-empty-state__title-text--FontWeight);
|
|
108
|
+
line-height: var(--pf-c-empty-state__title-text--LineHeight);
|
|
109
|
+
}
|
|
110
|
+
|
|
103
111
|
.pf-c-empty-state__body {
|
|
104
112
|
margin-top: var(--pf-c-empty-state__body--MarginTop);
|
|
113
|
+
font-size: var(--pf-c-empty-state--body--FontSize);
|
|
105
114
|
color: var(--pf-c-empty-state__body--Color);
|
|
106
115
|
}
|
|
107
116
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
117
|
+
.pf-c-empty-state__footer {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
align-items: center;
|
|
121
|
+
row-gap: var(--pf-c-empty-state__footer--RowGap);
|
|
122
|
+
margin-top: var(--pf-c-empty-state__footer--MarginTop);
|
|
115
123
|
}
|
|
116
124
|
|
|
117
|
-
.pf-c-empty-
|
|
125
|
+
.pf-c-empty-state__actions {
|
|
118
126
|
display: flex;
|
|
119
127
|
flex-wrap: wrap;
|
|
120
128
|
justify-content: center;
|
|
121
|
-
|
|
122
|
-
margin-bottom: var(--pf-c-empty-state__secondary--MarginBottom);
|
|
123
|
-
|
|
124
|
-
> * {
|
|
125
|
-
margin-right: var(--pf-c-empty-state__secondary--child--MarginRight);
|
|
126
|
-
margin-bottom: var(--pf-c-empty-state__secondary--child--MarginBottom);
|
|
127
|
-
margin-left: var(--pf-c-empty-state__secondary--child--MarginLeft);
|
|
128
|
-
}
|
|
129
|
+
gap: var(--pf-c-empty-state__actions--RowGap) var(--pf-c-empty-state__actions--ColumnGap);
|
|
129
130
|
}
|
|
@@ -326,7 +326,7 @@ textarea.pf-c-form-control {
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
:where(.pf-theme-dark) .pf-c-form-control {
|
|
329
|
-
--pf-c-form-control__select--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0
|
|
329
|
+
--pf-c-form-control__select--BackgroundUrl: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23e0e0e0' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");
|
|
330
330
|
--pf-c-form-control--BorderTopColor: transparent;
|
|
331
331
|
--pf-c-form-control--BorderRightColor: transparent;
|
|
332
332
|
--pf-c-form-control--BorderBottomColor: var(--pf-global--BorderColor--400);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin pf-theme-dark-form-control() {
|
|
4
4
|
.pf-c-form-control {
|
|
5
|
-
--pf-c-form-control__select--BackgroundUrl:
|
|
5
|
+
--pf-c-form-control__select--BackgroundUrl: #{pf-bg-svg($pf-c-form-control__select--Coordinates, $pf-c-form-control__select--ViewBox, $pf-global--Color--100)};
|
|
6
6
|
--pf-c-form-control--BorderTopColor: transparent;
|
|
7
7
|
--pf-c-form-control--BorderRightColor: transparent;
|
|
8
8
|
--pf-c-form-control--BorderBottomColor: var(--pf-global--BorderColor--400);
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
--pf-c-input-group__text--BorderLeftColor: var(--pf-global--BorderColor--300);
|
|
23
23
|
--pf-c-input-group__text--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
24
24
|
--pf-c-input-group__textarea--MinHeight: var(--pf-global--spacer--xl);
|
|
25
|
+
--pf-c-input-group__text--m-disabled--Color: var(--pf-global--disabled-color--100);
|
|
26
|
+
--pf-c-input-group__text--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
27
|
+
--pf-c-input-group__text--m-disabled--BorderBottomColor: transparent;
|
|
25
28
|
--pf-c-input-group--c-form-control--invalid--ZIndex: var(--pf-global--ZIndex--xs);
|
|
26
29
|
--pf-c-input-group--c-form-control--MarginRight: 0;
|
|
27
30
|
color: var(--pf-global--Color--100);
|
|
@@ -71,6 +74,11 @@ label.pf-c-input-group__text {
|
|
|
71
74
|
--pf-c-input-group__text--BorderWidth: 0;
|
|
72
75
|
margin-left: 0;
|
|
73
76
|
}
|
|
77
|
+
.pf-c-input-group__text.pf-m-disabled {
|
|
78
|
+
--pf-c-input-group__text--Color: var(--pf-c-input-group__text--m-disabled--Color);
|
|
79
|
+
--pf-c-input-group__text--BackgroundColor: var(--pf-c-input-group__text--m-disabled--BackgroundColor);
|
|
80
|
+
--pf-c-input-group__text--BorderBottomColor: var(--pf-c-input-group__text--m-disabled--BorderBottomColor);
|
|
81
|
+
}
|
|
74
82
|
|
|
75
83
|
:where(.pf-theme-dark) .pf-c-input-group {
|
|
76
84
|
--pf-c-input-group--BackgroundColor: transparent;
|
|
@@ -79,6 +87,8 @@ label.pf-c-input-group__text {
|
|
|
79
87
|
--pf-c-input-group__text--BorderBottomColor: var(--pf-global--BorderColor--400);
|
|
80
88
|
--pf-c-input-group__text--BorderLeftColor: transparent;
|
|
81
89
|
--pf-c-input-group__text--BackgroundColor: var(--pf-global--palette--black-600);
|
|
90
|
+
--pf-c-input-group__text--m-disabled--Color: var(--pf-global--palette--black-100);
|
|
91
|
+
--pf-c-input-group__text--m-disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
82
92
|
}
|
|
83
93
|
:where(.pf-theme-dark) .pf-c-input-group > * + * {
|
|
84
94
|
margin-left: 0;
|
|
@@ -92,4 +102,8 @@ label.pf-c-input-group__text {
|
|
|
92
102
|
}
|
|
93
103
|
:where(.pf-theme-dark) .pf-c-input-group__text.pf-m-plain {
|
|
94
104
|
--pf-c-input-group__text--BackgroundColor: transparent;
|
|
105
|
+
}
|
|
106
|
+
:where(.pf-theme-dark) .pf-c-input-group__text.pf-m-disabled {
|
|
107
|
+
--pf-c-input-group__text--BackgroundColor: var(--pf-c-input-group__text--m-disabled--BackgroundColor);
|
|
108
|
+
color: var(--pf-c-input-group__text--m-disabled--Color);
|
|
95
109
|
}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
--pf-c-input-group__text--BorderLeftColor: var(--pf-global--BorderColor--300);
|
|
16
16
|
--pf-c-input-group__text--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
17
17
|
--pf-c-input-group__textarea--MinHeight: var(--pf-global--spacer--xl);
|
|
18
|
+
--pf-c-input-group__text--m-disabled--Color: var(--pf-global--disabled-color--100);
|
|
19
|
+
--pf-c-input-group__text--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
|
|
20
|
+
--pf-c-input-group__text--m-disabled--BorderBottomColor: transparent;
|
|
18
21
|
|
|
19
22
|
// Form control
|
|
20
23
|
--pf-c-input-group--c-form-control--invalid--ZIndex: var(--pf-global--ZIndex--xs);
|
|
@@ -84,6 +87,12 @@
|
|
|
84
87
|
|
|
85
88
|
margin-left: 0;
|
|
86
89
|
}
|
|
90
|
+
|
|
91
|
+
&.pf-m-disabled {
|
|
92
|
+
--pf-c-input-group__text--Color: var(--pf-c-input-group__text--m-disabled--Color);
|
|
93
|
+
--pf-c-input-group__text--BackgroundColor: var(--pf-c-input-group__text--m-disabled--BackgroundColor);
|
|
94
|
+
--pf-c-input-group__text--BorderBottomColor: var(--pf-c-input-group__text--m-disabled--BorderBottomColor);
|
|
95
|
+
}
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--pf-c-input-group__text--BorderBottomColor: var(--pf-global--BorderColor--400);
|
|
9
9
|
--pf-c-input-group__text--BorderLeftColor: transparent;
|
|
10
10
|
--pf-c-input-group__text--BackgroundColor: var(--pf-global--palette--black-600);
|
|
11
|
+
--pf-c-input-group__text--m-disabled--Color: var(--pf-global--palette--black-100);
|
|
12
|
+
--pf-c-input-group__text--m-disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
11
13
|
|
|
12
14
|
> * + * {
|
|
13
15
|
margin-left: 0;
|
|
@@ -24,5 +26,11 @@
|
|
|
24
26
|
&.pf-m-plain {
|
|
25
27
|
--pf-c-input-group__text--BackgroundColor: transparent;
|
|
26
28
|
}
|
|
29
|
+
|
|
30
|
+
&.pf-m-disabled {
|
|
31
|
+
--pf-c-input-group__text--BackgroundColor: var(--pf-c-input-group__text--m-disabled--BackgroundColor);
|
|
32
|
+
|
|
33
|
+
color: var(--pf-c-input-group__text--m-disabled--Color);
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
.pf-c-label-group {
|
|
2
|
-
--pf-c-label-
|
|
3
|
-
--pf-c-label-
|
|
2
|
+
--pf-c-label-group--RowGap: var(--pf-global--spacer--sm);
|
|
3
|
+
--pf-c-label-group--ColumnGap: 0;
|
|
4
|
+
--pf-c-label-group-m-vertical--RowGap: var(--pf-global--spacer--sm);
|
|
5
|
+
--pf-c-label-group-m-vertical--ColumnGap: var(--pf-global--spacer--sm);
|
|
6
|
+
--pf-c-label-group__main--RowGap: var(--pf-global--spacer--xs);
|
|
7
|
+
--pf-c-label-group__main--ColumnGap: var(--pf-global--spacer--sm);
|
|
8
|
+
--pf-c-label-group-m-vertical__main--RowGap: var(--pf-global--spacer--sm);
|
|
9
|
+
--pf-c-label-group-m-vertical__main--ColumnGap: var(--pf-global--spacer--xs);
|
|
10
|
+
--pf-c-label-group__list--RowGap: var(--pf-global--spacer--xs);
|
|
11
|
+
--pf-c-label-group__list--ColumnGap: var(--pf-global--spacer--xs);
|
|
12
|
+
--pf-c-label-group-m-vertical__list--RowGap: var(--pf-global--spacer--xs);
|
|
13
|
+
--pf-c-label-group-m-vertical__list--ColumnGap: var(--pf-global--spacer--xs);
|
|
4
14
|
--pf-c-label-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
|
|
5
15
|
--pf-c-label-group--m-category--PaddingRight: var(--pf-global--spacer--xs);
|
|
6
16
|
--pf-c-label-group--m-category--PaddingBottom: var(--pf-global--spacer--xs);
|
|
@@ -10,20 +20,14 @@
|
|
|
10
20
|
--pf-c-label-group--m-category--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
11
21
|
--pf-c-label-group--m-category--BorderColor: var(--pf-global--BorderColor--300);
|
|
12
22
|
--pf-c-label-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
13
|
-
--pf-c-label-group__label--MarginRight: var(--pf-global--spacer--sm);
|
|
14
|
-
--pf-c-label-group__label--MarginBottom: 0;
|
|
15
|
-
--pf-c-label-group--m-vertical__label--MarginBottom: var(--pf-global--spacer--sm);
|
|
16
23
|
--pf-c-label-group__label--FontSize: var(--pf-global--FontSize--sm);
|
|
17
24
|
--pf-c-label-group__label--MaxWidth: 18ch;
|
|
18
25
|
--pf-c-label-group__close--MarginTop: calc(var(--pf-global--spacer--xs) * -1);
|
|
19
26
|
--pf-c-label-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
|
|
20
27
|
--pf-c-label-group--m-vertical__close--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
|
|
21
28
|
--pf-c-label-group--m-vertical__close--MarginRight: calc(var(--pf-global--spacer--form-element) * -1);
|
|
22
|
-
--pf-c-label-group--m-vertical__close--MarginLeft: var(--pf-global--spacer--sm);
|
|
23
29
|
--pf-c-label-group--m-vertical__close--c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
24
30
|
--pf-c-label-group--m-vertical__close--c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
25
|
-
--pf-c-label-group__list-item--MarginRight: var(--pf-global--spacer--xs);
|
|
26
|
-
--pf-c-label-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
|
|
27
31
|
--pf-c-label-group__textarea--MinWidth: 12.5rem;
|
|
28
32
|
--pf-c-label-group__textarea--PaddingTop: 0.125rem;
|
|
29
33
|
--pf-c-label-group__textarea--PaddingRight: var(--pf-global--spacer--xs);
|
|
@@ -31,6 +35,8 @@
|
|
|
31
35
|
--pf-c-label-group__textarea--PaddingLeft: var(--pf-global--spacer--xs);
|
|
32
36
|
display: inline-flex;
|
|
33
37
|
align-items: center;
|
|
38
|
+
row-gap: var(--pf-c-label-group--RowGap);
|
|
39
|
+
column-gap: var(--pf-c-label-group--ColumnGap);
|
|
34
40
|
}
|
|
35
41
|
.pf-c-label-group.pf-m-category {
|
|
36
42
|
padding-top: var(--pf-c-label-group--m-category--PaddingTop);
|
|
@@ -42,11 +48,12 @@
|
|
|
42
48
|
border-radius: var(--pf-c-label-group--m-category--BorderRadius);
|
|
43
49
|
}
|
|
44
50
|
.pf-c-label-group.pf-m-vertical {
|
|
45
|
-
--pf-c-label-
|
|
46
|
-
--pf-c-label-
|
|
47
|
-
--pf-c-label-
|
|
48
|
-
--pf-c-label-
|
|
49
|
-
--pf-c-label-
|
|
51
|
+
--pf-c-label-group--RowGap: var(--pf-c-label-group-m-vertical--RowGap);
|
|
52
|
+
--pf-c-label-group--ColumnGap: var(--pf-c-label-group-m-vertical--ColumnGap);
|
|
53
|
+
--pf-c-label-group__main--RowGap: var(--pf-c-label-group-m-vertical__main--RowGap);
|
|
54
|
+
--pf-c-label-group__main--ColumnGap: var(--pf-c-label-group-m-vertical__main--ColumnGap);
|
|
55
|
+
--pf-c-label-group__list--RowGap: var(--pf-c-label-group-m-vertical__list--RowGap);
|
|
56
|
+
--pf-c-label-group__list--ColumnGap: var(--pf-c-label-group-m-vertical__list--ColumnGap);
|
|
50
57
|
--pf-c-label-group__close--MarginTop: var(--pf-c-label-group--m-vertical__close--MarginTop);
|
|
51
58
|
--pf-c-label-group__close--MarginLeft: var(--pf-c-label-group--m-vertical__close--MarginLeft);
|
|
52
59
|
--pf-c-label-group__close--MarginBottom: 0;
|
|
@@ -63,9 +70,6 @@
|
|
|
63
70
|
.pf-c-label-group.pf-m-vertical .pf-c-label-group__main {
|
|
64
71
|
flex-direction: column;
|
|
65
72
|
}
|
|
66
|
-
.pf-c-label-group.pf-m-vertical .pf-c-label-group__list-item:last-child {
|
|
67
|
-
--pf-c-label-group__list-item--MarginBottom: 0;
|
|
68
|
-
}
|
|
69
73
|
.pf-c-label-group.pf-m-vertical .pf-c-label-group__close .pf-c-button {
|
|
70
74
|
--pf-c-button--PaddingLeft: var(--pf-c-label-group--m-vertical__close--c-button--PaddingLeft);
|
|
71
75
|
--pf-c-button--PaddingRight: var(--pf-c-label-group--m-vertical__close--c-button--PaddingRight);
|
|
@@ -87,19 +91,19 @@
|
|
|
87
91
|
flex: 1;
|
|
88
92
|
flex-wrap: wrap;
|
|
89
93
|
align-items: baseline;
|
|
94
|
+
row-gap: var(--pf-c-label-group__main--RowGap);
|
|
95
|
+
column-gap: var(--pf-c-label-group__main--ColumnGap);
|
|
90
96
|
}
|
|
91
97
|
|
|
92
98
|
.pf-c-label-group__list {
|
|
93
99
|
display: inline-flex;
|
|
94
100
|
flex-wrap: wrap;
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
row-gap: var(--pf-c-label-group__list--RowGap);
|
|
102
|
+
column-gap: var(--pf-c-label-group__list--ColumnGap);
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
.pf-c-label-group__list-item {
|
|
100
106
|
display: inline-flex;
|
|
101
|
-
margin-right: var(--pf-c-label-group__list-item--MarginRight);
|
|
102
|
-
margin-bottom: var(--pf-c-label-group__list-item--MarginBottom);
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
.pf-c-label-group__label {
|
|
@@ -107,12 +111,12 @@
|
|
|
107
111
|
text-overflow: ellipsis;
|
|
108
112
|
white-space: nowrap;
|
|
109
113
|
max-width: var(--pf-c-label-group__label--MaxWidth);
|
|
110
|
-
margin-right: var(--pf-c-label-group__label--MarginRight);
|
|
111
|
-
margin-bottom: var(--pf-c-label-group__label--MarginBottom);
|
|
112
114
|
font-size: var(--pf-c-label-group__label--FontSize);
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
.pf-c-label-group__close {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-self: start;
|
|
116
120
|
margin-top: var(--pf-c-label-group__close--MarginTop);
|
|
117
121
|
margin-right: var(--pf-c-label-group__close--MarginRight);
|
|
118
122
|
margin-bottom: var(--pf-c-label-group__close--MarginBottom);
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
.pf-c-label-group {
|
|
2
|
-
//
|
|
3
|
-
--pf-c-label-
|
|
4
|
-
--pf-c-label-
|
|
2
|
+
// Label group - spaces main with the close button
|
|
3
|
+
--pf-c-label-group--RowGap: var(--pf-global--spacer--sm);
|
|
4
|
+
--pf-c-label-group--ColumnGap: 0;
|
|
5
|
+
--pf-c-label-group-m-vertical--RowGap: var(--pf-global--spacer--sm);
|
|
6
|
+
--pf-c-label-group-m-vertical--ColumnGap: var(--pf-global--spacer--sm);
|
|
7
|
+
|
|
8
|
+
// Main - spaces the category label with the list
|
|
9
|
+
--pf-c-label-group__main--RowGap: var(--pf-global--spacer--xs);
|
|
10
|
+
--pf-c-label-group__main--ColumnGap: var(--pf-global--spacer--sm);
|
|
11
|
+
--pf-c-label-group-m-vertical__main--RowGap: var(--pf-global--spacer--sm);
|
|
12
|
+
--pf-c-label-group-m-vertical__main--ColumnGap: var(--pf-global--spacer--xs);
|
|
13
|
+
|
|
14
|
+
// List - spaces the items
|
|
15
|
+
--pf-c-label-group__list--RowGap: var(--pf-global--spacer--xs);
|
|
16
|
+
--pf-c-label-group__list--ColumnGap: var(--pf-global--spacer--xs);
|
|
17
|
+
--pf-c-label-group-m-vertical__list--RowGap: var(--pf-global--spacer--xs);
|
|
18
|
+
--pf-c-label-group-m-vertical__list--ColumnGap: var(--pf-global--spacer--xs);
|
|
5
19
|
|
|
6
20
|
// Category
|
|
7
21
|
--pf-c-label-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
|
|
@@ -15,9 +29,6 @@
|
|
|
15
29
|
--pf-c-label-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
16
30
|
|
|
17
31
|
// Label
|
|
18
|
-
--pf-c-label-group__label--MarginRight: var(--pf-global--spacer--sm);
|
|
19
|
-
--pf-c-label-group__label--MarginBottom: 0;
|
|
20
|
-
--pf-c-label-group--m-vertical__label--MarginBottom: var(--pf-global--spacer--sm);
|
|
21
32
|
--pf-c-label-group__label--FontSize: var(--pf-global--FontSize--sm);
|
|
22
33
|
--pf-c-label-group__label--MaxWidth: 18ch;
|
|
23
34
|
|
|
@@ -26,14 +37,9 @@
|
|
|
26
37
|
--pf-c-label-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
|
|
27
38
|
--pf-c-label-group--m-vertical__close--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
|
|
28
39
|
--pf-c-label-group--m-vertical__close--MarginRight: calc(var(--pf-global--spacer--form-element) * -1);
|
|
29
|
-
--pf-c-label-group--m-vertical__close--MarginLeft: var(--pf-global--spacer--sm);
|
|
30
40
|
--pf-c-label-group--m-vertical__close--c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
31
41
|
--pf-c-label-group--m-vertical__close--c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
32
42
|
|
|
33
|
-
// List item
|
|
34
|
-
--pf-c-label-group__list-item--MarginRight: var(--pf-global--spacer--xs);
|
|
35
|
-
--pf-c-label-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
|
|
36
|
-
|
|
37
43
|
// Textarea
|
|
38
44
|
--pf-c-label-group__textarea--MinWidth: #{pf-size-prem(200px)};
|
|
39
45
|
--pf-c-label-group__textarea--PaddingTop: #{pf-size-prem(2px)};
|
|
@@ -43,6 +49,8 @@
|
|
|
43
49
|
|
|
44
50
|
display: inline-flex;
|
|
45
51
|
align-items: center;
|
|
52
|
+
row-gap: var(--pf-c-label-group--RowGap);
|
|
53
|
+
column-gap: var(--pf-c-label-group--ColumnGap);
|
|
46
54
|
|
|
47
55
|
&.pf-m-category {
|
|
48
56
|
padding-top: var(--pf-c-label-group--m-category--PaddingTop);
|
|
@@ -55,11 +63,12 @@
|
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
&.pf-m-vertical {
|
|
58
|
-
--pf-c-label-
|
|
59
|
-
--pf-c-label-
|
|
60
|
-
--pf-c-label-
|
|
61
|
-
--pf-c-label-
|
|
62
|
-
--pf-c-label-
|
|
66
|
+
--pf-c-label-group--RowGap: var(--pf-c-label-group-m-vertical--RowGap);
|
|
67
|
+
--pf-c-label-group--ColumnGap: var(--pf-c-label-group-m-vertical--ColumnGap);
|
|
68
|
+
--pf-c-label-group__main--RowGap: var(--pf-c-label-group-m-vertical__main--RowGap);
|
|
69
|
+
--pf-c-label-group__main--ColumnGap: var(--pf-c-label-group-m-vertical__main--ColumnGap);
|
|
70
|
+
--pf-c-label-group__list--RowGap: var(--pf-c-label-group-m-vertical__list--RowGap);
|
|
71
|
+
--pf-c-label-group__list--ColumnGap: var(--pf-c-label-group-m-vertical__list--ColumnGap);
|
|
63
72
|
--pf-c-label-group__close--MarginTop: var(--pf-c-label-group--m-vertical__close--MarginTop);
|
|
64
73
|
--pf-c-label-group__close--MarginLeft: var(--pf-c-label-group--m-vertical__close--MarginLeft);
|
|
65
74
|
--pf-c-label-group__close--MarginBottom: 0;
|
|
@@ -79,10 +88,6 @@
|
|
|
79
88
|
flex-direction: column;
|
|
80
89
|
}
|
|
81
90
|
|
|
82
|
-
.pf-c-label-group__list-item:last-child {
|
|
83
|
-
--pf-c-label-group__list-item--MarginBottom: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
91
|
.pf-c-label-group__close .pf-c-button {
|
|
87
92
|
--pf-c-button--PaddingLeft: var(--pf-c-label-group--m-vertical__close--c-button--PaddingLeft);
|
|
88
93
|
--pf-c-button--PaddingRight: var(--pf-c-label-group--m-vertical__close--c-button--PaddingRight);
|
|
@@ -110,31 +115,31 @@
|
|
|
110
115
|
flex: 1;
|
|
111
116
|
flex-wrap: wrap;
|
|
112
117
|
align-items: baseline;
|
|
118
|
+
row-gap: var(--pf-c-label-group__main--RowGap);
|
|
119
|
+
column-gap: var(--pf-c-label-group__main--ColumnGap);
|
|
113
120
|
}
|
|
114
121
|
|
|
115
122
|
.pf-c-label-group__list {
|
|
116
123
|
display: inline-flex;
|
|
117
124
|
flex-wrap: wrap;
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
row-gap: var(--pf-c-label-group__list--RowGap);
|
|
126
|
+
column-gap: var(--pf-c-label-group__list--ColumnGap);
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
.pf-c-label-group__list-item {
|
|
123
130
|
display: inline-flex;
|
|
124
|
-
margin-right: var(--pf-c-label-group__list-item--MarginRight);
|
|
125
|
-
margin-bottom: var(--pf-c-label-group__list-item--MarginBottom);
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
.pf-c-label-group__label {
|
|
129
134
|
@include pf-text-overflow;
|
|
130
135
|
|
|
131
136
|
max-width: var(--pf-c-label-group__label--MaxWidth);
|
|
132
|
-
margin-right: var(--pf-c-label-group__label--MarginRight);
|
|
133
|
-
margin-bottom: var(--pf-c-label-group__label--MarginBottom);
|
|
134
137
|
font-size: var(--pf-c-label-group__label--FontSize);
|
|
135
138
|
}
|
|
136
139
|
|
|
137
140
|
.pf-c-label-group__close {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-self: start;
|
|
138
143
|
margin-top: var(--pf-c-label-group__close--MarginTop);
|
|
139
144
|
margin-right: var(--pf-c-label-group__close--MarginRight);
|
|
140
145
|
margin-bottom: var(--pf-c-label-group__close--MarginBottom);
|
package/components/Menu/menu.css
CHANGED
|
@@ -296,11 +296,15 @@
|
|
|
296
296
|
}
|
|
297
297
|
.pf-c-menu.pf-m-drilled-in > .pf-c-menu__content > .pf-c-menu__list {
|
|
298
298
|
overflow: visible;
|
|
299
|
+
visibility: hidden;
|
|
299
300
|
}
|
|
300
301
|
.pf-c-menu.pf-m-drilled-in > .pf-c-menu__content > .pf-c-menu__list > .pf-c-divider,
|
|
301
302
|
.pf-c-menu.pf-m-drilled-in > .pf-c-menu__content > .pf-c-menu__list > .pf-c-menu__list-item:not(.pf-m-current-path) {
|
|
302
303
|
display: none;
|
|
303
304
|
}
|
|
305
|
+
.pf-c-menu.pf-m-drilled-in > .pf-c-menu__content > .pf-c-menu__list > .pf-c-menu__list-item.pf-m-current-path {
|
|
306
|
+
visibility: hidden;
|
|
307
|
+
}
|
|
304
308
|
.pf-c-menu.pf-m-plain {
|
|
305
309
|
--pf-c-menu--BoxShadow: var(--pf-c-menu--m-plain--BoxShadow);
|
|
306
310
|
}
|
|
@@ -316,11 +316,16 @@
|
|
|
316
316
|
// stylelint-disable selector-max-class
|
|
317
317
|
&.pf-m-drilled-in > .pf-c-menu__content > .pf-c-menu__list {
|
|
318
318
|
overflow: visible;
|
|
319
|
+
visibility: hidden;
|
|
319
320
|
|
|
320
321
|
> .pf-c-divider,
|
|
321
322
|
> .pf-c-menu__list-item:not(.pf-m-current-path) {
|
|
322
323
|
display: none; // hide all siblings of current path to maintain proper menu height
|
|
323
324
|
}
|
|
325
|
+
|
|
326
|
+
> .pf-c-menu__list-item.pf-m-current-path {
|
|
327
|
+
visibility: hidden;
|
|
328
|
+
}
|
|
324
329
|
}
|
|
325
330
|
// stylelint-enable
|
|
326
331
|
|