@patternfly/patternfly 5.0.0-alpha.51 → 5.0.0-alpha.52
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/patternfly-variables.css +2 -2
- package/components/AboutModalBox/about-modal-box.css +1 -20
- package/components/AboutModalBox/about-modal-box.scss +3 -24
- package/components/BackgroundImage/background-image.css +1 -2
- package/components/BackgroundImage/background-image.scss +1 -2
- package/components/FormControl/form-control.css +0 -7
- package/components/FormControl/form-control.scss +7 -7
- package/components/Icon/icon.css +25 -24
- package/components/Icon/icon.scss +30 -31
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +7 -9
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +7 -11
- package/docs/components/Login/examples/Login.md +20 -5
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -1
- package/package.json +1 -1
- package/patternfly-base-no-globals.css +2 -2
- package/patternfly-base.css +2 -2
- package/patternfly-no-globals.css +29 -55
- package/patternfly.css +29 -55
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +2 -5
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
--pf-v5-global--BorderRadius--lg: 30em;
|
|
199
199
|
--pf-v5-global--icon--Color--light: #6a6e73;
|
|
200
200
|
--pf-v5-global--icon--Color--dark: #151515;
|
|
201
|
-
--pf-v5-global--icon--FontSize--sm: 0.
|
|
202
|
-
--pf-v5-global--icon--FontSize--md:
|
|
201
|
+
--pf-v5-global--icon--FontSize--sm: 0.75rem;
|
|
202
|
+
--pf-v5-global--icon--FontSize--md: 1rem;
|
|
203
203
|
--pf-v5-global--icon--FontSize--lg: 1.5rem;
|
|
204
204
|
--pf-v5-global--icon--FontSize--xl: 3.375rem;
|
|
205
205
|
--pf-v5-global--FontFamily--sans-serif: "RedHatText", helvetica, arial, sans-serif;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
.pf-v5-c-about-modal-box {
|
|
12
12
|
--pf-v5-c-about-modal-box--BackgroundColor: var(--pf-v5-global--palette--black-1000);
|
|
13
|
-
--pf-v5-c-about-modal-box--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
|
|
14
13
|
--pf-v5-c-about-modal-box--BackgroundPosition: bottom right;
|
|
15
14
|
--pf-v5-c-about-modal-box--BackgroundSize--min-width: 200px;
|
|
16
15
|
--pf-v5-c-about-modal-box--BackgroundSize--width: 60%;
|
|
@@ -41,9 +40,6 @@
|
|
|
41
40
|
--pf-v5-c-about-modal-box__close--c-button--Height: calc(var(--pf-v5-c-about-modal-box__close--c-button--FontSize) * 2);
|
|
42
41
|
--pf-v5-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-v5-global--palette--black-1000);
|
|
43
42
|
--pf-v5-c-about-modal-box__close--c-button--hover--BackgroundColor: rgba(3, 3, 3, 0.4);
|
|
44
|
-
--pf-v5-c-about-modal-box__hero--sm--BackgroundImage: url("../../assets/images/pfbg_992@2x.jpg");
|
|
45
|
-
--pf-v5-c-about-modal-box__hero--sm--BackgroundPosition: top left;
|
|
46
|
-
--pf-v5-c-about-modal-box__hero--sm--BackgroundSize: cover;
|
|
47
43
|
--pf-v5-c-about-modal-box__brand-image--Height: 2.5rem;
|
|
48
44
|
--pf-v5-c-about-modal-box__header--PaddingRight: var(--pf-v5-global--spacer--xl);
|
|
49
45
|
--pf-v5-c-about-modal-box__header--PaddingBottom: var(--pf-v5-global--spacer--sm);
|
|
@@ -71,7 +67,7 @@
|
|
|
71
67
|
overflow-x: hidden;
|
|
72
68
|
overflow-y: auto;
|
|
73
69
|
background-color: var(--pf-v5-c-about-modal-box--BackgroundColor);
|
|
74
|
-
background-image: var(--pf-v5-c-about-modal-box--BackgroundImage);
|
|
70
|
+
background-image: var(--pf-v5-c-about-modal-box--BackgroundImage, none);
|
|
75
71
|
background-repeat: no-repeat;
|
|
76
72
|
background-position: var(--pf-v5-c-about-modal-box--BackgroundPosition);
|
|
77
73
|
background-size: var(--pf-v5-c-about-modal-box--BackgroundSize);
|
|
@@ -208,21 +204,6 @@
|
|
|
208
204
|
--pf-v5-c-about-modal-box__close--c-button--BackgroundColor: var(--pf-v5-c-about-modal-box__close--c-button--hover--BackgroundColor);
|
|
209
205
|
}
|
|
210
206
|
|
|
211
|
-
.pf-v5-c-about-modal-box__hero {
|
|
212
|
-
display: none;
|
|
213
|
-
}
|
|
214
|
-
@media only screen and (min-width: 576px) {
|
|
215
|
-
.pf-v5-c-about-modal-box__hero {
|
|
216
|
-
display: block;
|
|
217
|
-
grid-area: hero;
|
|
218
|
-
background-image: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundImage);
|
|
219
|
-
background-repeat: no-repeat;
|
|
220
|
-
background-attachment: fixed;
|
|
221
|
-
background-position: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundPosition);
|
|
222
|
-
background-size: var(--pf-v5-c-about-modal-box__hero--sm--BackgroundSize);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
207
|
:where(.pf-v5-theme-dark) .pf-v5-c-about-modal-box {
|
|
227
208
|
--pf-v5-global--Color--100: #e0e0e0;
|
|
228
209
|
--pf-v5-global--Color--200: #aaabac;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
.#{$about-modal-box} {
|
|
4
4
|
// Component variables
|
|
5
5
|
--#{$about-modal-box}--BackgroundColor: var(--#{$pf-global}--palette--black-1000); // Modal uses a non-standard background color
|
|
6
|
-
--#{$about-modal-box}--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg-icon.svg");
|
|
7
6
|
--#{$about-modal-box}--BackgroundPosition: bottom right;
|
|
8
7
|
--#{$about-modal-box}--BackgroundSize--min-width: 200px;
|
|
9
8
|
--#{$about-modal-box}--BackgroundSize--width: 60%;
|
|
@@ -55,11 +54,6 @@
|
|
|
55
54
|
--#{$about-modal-box}__close--c-button--BackgroundColor: var(--#{$pf-global}--palette--black-1000); // Close button uses a non-standard background color
|
|
56
55
|
--#{$about-modal-box}__close--c-button--hover--BackgroundColor: #{rgba($pf-v5-color-black-1000, .4)};
|
|
57
56
|
|
|
58
|
-
// hero image
|
|
59
|
-
--#{$about-modal-box}__hero--sm--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg_992@2x.jpg");
|
|
60
|
-
--#{$about-modal-box}__hero--sm--BackgroundPosition: top left;
|
|
61
|
-
--#{$about-modal-box}__hero--sm--BackgroundSize: cover;
|
|
62
|
-
|
|
63
57
|
// Brand img
|
|
64
58
|
--#{$about-modal-box}__brand-image--Height: #{pf-size-prem(40px)};
|
|
65
59
|
|
|
@@ -116,7 +110,7 @@
|
|
|
116
110
|
overflow-x: hidden;
|
|
117
111
|
overflow-y: auto;
|
|
118
112
|
background-color: var(--#{$about-modal-box}--BackgroundColor); // Because this component is always dark, set the background color
|
|
119
|
-
background-image: var(--#{$about-modal-box}--BackgroundImage);
|
|
113
|
+
background-image: var(--#{$about-modal-box}--BackgroundImage, none);
|
|
120
114
|
background-repeat: no-repeat;
|
|
121
115
|
background-position: var(--#{$about-modal-box}--BackgroundPosition);
|
|
122
116
|
background-size: var(--#{$about-modal-box}--BackgroundSize);
|
|
@@ -198,11 +192,11 @@
|
|
|
198
192
|
|
|
199
193
|
@media only screen and (min-width: $pf-v5-global--breakpoint--sm) {
|
|
200
194
|
grid-area: 1 / 2;
|
|
201
|
-
justify-content: center;
|
|
195
|
+
justify-content: center;
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
@media only screen and (min-width: $pf-v5-global--breakpoint--lg) {
|
|
205
|
-
justify-content: flex-end;
|
|
199
|
+
justify-content: flex-end;
|
|
206
200
|
}
|
|
207
201
|
|
|
208
202
|
// Close button
|
|
@@ -225,21 +219,6 @@
|
|
|
225
219
|
}
|
|
226
220
|
}
|
|
227
221
|
|
|
228
|
-
// Hero
|
|
229
|
-
.#{$about-modal-box}__hero {
|
|
230
|
-
display: none; // Don't display the hero at the narrowest breakpoint
|
|
231
|
-
|
|
232
|
-
@media only screen and (min-width: $pf-v5-global--breakpoint--sm) {
|
|
233
|
-
display: block;
|
|
234
|
-
grid-area: hero;
|
|
235
|
-
background-image: var(--#{$about-modal-box}__hero--sm--BackgroundImage);
|
|
236
|
-
background-repeat: no-repeat;
|
|
237
|
-
background-attachment: fixed;
|
|
238
|
-
background-position: var(--#{$about-modal-box}__hero--sm--BackgroundPosition);
|
|
239
|
-
background-size: var(--#{$about-modal-box}__hero--sm--BackgroundSize);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
222
|
// stylelint-disable no-invalid-position-at-import-rule
|
|
244
223
|
@import "themes/dark/about-modal-box";
|
|
245
224
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.pf-v5-c-background-image {
|
|
2
2
|
--pf-v5-c-background-image--BackgroundColor: var(--pf-v5-global--BackgroundColor--dark-100);
|
|
3
|
-
--pf-v5-c-background-image--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
|
|
4
3
|
--pf-v5-c-background-image--BackgroundPosition: bottom right;
|
|
5
4
|
--pf-v5-c-background-image--BackgroundSize--min-width: 200px;
|
|
6
5
|
--pf-v5-c-background-image--BackgroundSize--width: 60%;
|
|
@@ -13,7 +12,7 @@
|
|
|
13
12
|
width: 100%;
|
|
14
13
|
height: 100%;
|
|
15
14
|
background-color: var(--pf-v5-c-background-image--BackgroundColor);
|
|
16
|
-
background-image: var(--pf-v5-c-background-image--BackgroundImage);
|
|
15
|
+
background-image: var(--pf-v5-c-background-image--BackgroundImage, none);
|
|
17
16
|
background-repeat: no-repeat;
|
|
18
17
|
background-position: var(--pf-v5-c-background-image--BackgroundPosition);
|
|
19
18
|
background-size: var(--pf-v5-c-background-image--BackgroundSize);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$background-image} {
|
|
4
4
|
--#{$background-image}--BackgroundColor: var(--#{$pf-global}--BackgroundColor--dark-100);
|
|
5
|
-
--#{$background-image}--BackgroundImage: url("#{$pf-v5-global--image-path}/pfbg-icon.svg");
|
|
6
5
|
--#{$background-image}--BackgroundPosition: bottom right;
|
|
7
6
|
--#{$background-image}--BackgroundSize--min-width: 200px;
|
|
8
7
|
--#{$background-image}--BackgroundSize--width: 60%;
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
width: 100%;
|
|
17
16
|
height: 100%;
|
|
18
17
|
background-color: var(--#{$background-image}--BackgroundColor);
|
|
19
|
-
background-image: var(--#{$background-image}--BackgroundImage);
|
|
18
|
+
background-image: var(--#{$background-image}--BackgroundImage, none);
|
|
20
19
|
background-repeat: no-repeat;
|
|
21
20
|
background-position: var(--#{$background-image}--BackgroundPosition);
|
|
22
21
|
background-size: var(--#{$background-image}--BackgroundSize);
|
|
@@ -122,13 +122,6 @@
|
|
|
122
122
|
--pf-v5-c-form-control--textarea--success--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
|
|
123
123
|
--pf-v5-c-form-control--textarea--m-warning--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
|
|
124
124
|
--pf-v5-c-form-control--textarea--invalid--BackgroundPositionY: var(--pf-v5-c-form-control--PaddingLeft);
|
|
125
|
-
--pf-v5-c-form-control--m-icon-sprite--success--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#success");
|
|
126
|
-
--pf-v5-c-form-control--m-icon-sprite--m-warning--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#warning");
|
|
127
|
-
--pf-v5-c-form-control--m-icon-sprite--invalid--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#invalid");
|
|
128
|
-
--pf-v5-c-form-control--m-icon-sprite__select--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#select");
|
|
129
|
-
--pf-v5-c-form-control--m-icon-sprite--m-search--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#search");
|
|
130
|
-
--pf-v5-c-form-control--m-icon-sprite--m-calendar--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#calendar");
|
|
131
|
-
--pf-v5-c-form-control--m-icon-sprite--m-clock--BackgroundUrl: url("../../assets/images/status-icon-sprite.svg#clock");
|
|
132
125
|
--pf-v5-c-form-control--m-icon-sprite__select--BackgroundSize: var(--pf-v5-c-form-control--FontSize);
|
|
133
126
|
--pf-v5-c-form-control--m-icon-sprite__select--BackgroundPositionX: calc(100% - var(--pf-v5-global--spacer--md) + 7px);
|
|
134
127
|
--pf-v5-c-form-control--m-icon-sprite__select--success--BackgroundPosition: calc(100% - var(--pf-v5-global--spacer--md) + 1px - var(--pf-v5-global--spacer--lg));
|
|
@@ -191,13 +191,13 @@ $pf-v5-c-form-control--m-clock--Coordinates: "M256 8C119 8 8 119 8 256s111 248 2
|
|
|
191
191
|
--#{$form-control}--textarea--invalid--BackgroundPositionY: var(--#{$form-control}--PaddingLeft); // update to use --#{$form-control}--inset--base at breaking change
|
|
192
192
|
|
|
193
193
|
// Icon sprite
|
|
194
|
-
--#{$form-control}--m-icon-sprite--success--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#success");
|
|
195
|
-
--#{$form-control}--m-icon-sprite--m-warning--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#warning");
|
|
196
|
-
--#{$form-control}--m-icon-sprite--invalid--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#invalid");
|
|
197
|
-
--#{$form-control}--m-icon-sprite__select--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#select");
|
|
198
|
-
--#{$form-control}--m-icon-sprite--m-search--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#search");
|
|
199
|
-
--#{$form-control}--m-icon-sprite--m-calendar--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#calendar");
|
|
200
|
-
--#{$form-control}--m-icon-sprite--m-clock--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#clock");
|
|
194
|
+
// --#{$form-control}--m-icon-sprite--success--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#success");
|
|
195
|
+
// --#{$form-control}--m-icon-sprite--m-warning--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#warning");
|
|
196
|
+
// --#{$form-control}--m-icon-sprite--invalid--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#invalid");
|
|
197
|
+
// --#{$form-control}--m-icon-sprite__select--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#select");
|
|
198
|
+
// --#{$form-control}--m-icon-sprite--m-search--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#search");
|
|
199
|
+
// --#{$form-control}--m-icon-sprite--m-calendar--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#calendar");
|
|
200
|
+
// --#{$form-control}--m-icon-sprite--m-clock--BackgroundUrl: url("#{$pf-v5-global--image-path}/status-icon-sprite.svg#clock");
|
|
201
201
|
--#{$form-control}--m-icon-sprite__select--BackgroundSize: var(--#{$form-control}--FontSize);
|
|
202
202
|
--#{$form-control}--m-icon-sprite__select--BackgroundPositionX: calc(100% - var(--#{$pf-global}--spacer--md) + 7px);
|
|
203
203
|
--#{$form-control}--m-icon-sprite__select--success--BackgroundPosition: calc(100% - var(--#{$pf-global}--spacer--md) + 1px - var(--#{$pf-global}--spacer--lg));
|
package/components/Icon/icon.css
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
.pf-v5-c-icon {
|
|
2
|
-
--pf-v5-c-icon--Width:
|
|
3
|
-
--pf-v5-c-icon--Height:
|
|
4
|
-
--pf-v5-c-icon--m-inline--Width: 1em;
|
|
5
|
-
--pf-v5-c-icon--m-inline--Height: 1em;
|
|
2
|
+
--pf-v5-c-icon--Width: 1em;
|
|
3
|
+
--pf-v5-c-icon--Height: 1em;
|
|
6
4
|
--pf-v5-c-icon--m-sm--Width: var(--pf-v5-global--icon--FontSize--sm);
|
|
7
|
-
--pf-v5-c-icon--m-md--Width: var(--pf-v5-global--icon--FontSize--md);
|
|
8
|
-
--pf-v5-c-icon--m-lg--Width: var(--pf-v5-global--icon--FontSize--lg);
|
|
9
|
-
--pf-v5-c-icon--m-xl--Width: var(--pf-v5-global--icon--FontSize--xl);
|
|
10
5
|
--pf-v5-c-icon--m-sm--Height: var(--pf-v5-global--icon--FontSize--sm);
|
|
6
|
+
--pf-v5-c-icon--m-md--Width: var(--pf-v5-global--icon--FontSize--md);
|
|
11
7
|
--pf-v5-c-icon--m-md--Height: var(--pf-v5-global--icon--FontSize--md);
|
|
8
|
+
--pf-v5-c-icon--m-lg--Width: var(--pf-v5-global--icon--FontSize--lg);
|
|
12
9
|
--pf-v5-c-icon--m-lg--Height: var(--pf-v5-global--icon--FontSize--lg);
|
|
10
|
+
--pf-v5-c-icon--m-xl--Width: var(--pf-v5-global--icon--FontSize--xl);
|
|
13
11
|
--pf-v5-c-icon--m-xl--Height: var(--pf-v5-global--icon--FontSize--xl);
|
|
14
|
-
--pf-v5-c-
|
|
12
|
+
--pf-v5-c-icon--m-inline--Width: 1em;
|
|
13
|
+
--pf-v5-c-icon--m-inline--Height: 1em;
|
|
14
|
+
--pf-v5-c-icon__content--svg--VerticalAlign: -.125em;
|
|
15
|
+
--pf-v5-c-icon__content--Color: initial;
|
|
15
16
|
--pf-v5-c-icon__content--m-danger--Color: var(--pf-v5-global--danger-color--100);
|
|
16
17
|
--pf-v5-c-icon__content--m-warning--Color: var(--pf-v5-global--warning-color--100);
|
|
17
18
|
--pf-v5-c-icon__content--m-success--Color: var(--pf-v5-global--success-color--100);
|
|
18
19
|
--pf-v5-c-icon__content--m-info--Color: var(--pf-v5-global--info-color--100);
|
|
19
20
|
--pf-v5-c-icon__content--m-custom--Color: var(--pf-v5-global--custom-color--100);
|
|
20
|
-
--pf-v5-c-
|
|
21
|
+
--pf-v5-c-icon--m-inline__content--Color: initial;
|
|
22
|
+
--pf-v5-c-icon__content--FontSize: 1em;
|
|
23
|
+
--pf-v5-c-icon--m-sm__content--FontSize: var(--pf-v5-global--icon--FontSize--sm);
|
|
24
|
+
--pf-v5-c-icon--m-md__content--FontSize: var(--pf-v5-global--icon--FontSize--md);
|
|
25
|
+
--pf-v5-c-icon--m-lg__content--FontSize: var(--pf-v5-global--icon--FontSize--lg);
|
|
26
|
+
--pf-v5-c-icon--m-xl__content--FontSize: var(--pf-v5-global--icon--FontSize--xl);
|
|
21
27
|
--pf-v5-c-icon--m-inline__content--FontSize: 1em;
|
|
22
|
-
--pf-v5-c-icon__content--svg--VerticalAlign: -.125em;
|
|
23
|
-
--pf-v5-c-icon--m-sm--content--FontSize: var(--pf-v5-global--icon--FontSize--sm);
|
|
24
|
-
--pf-v5-c-icon--m-md--content--FontSize: var(--pf-v5-global--icon--FontSize--md);
|
|
25
|
-
--pf-v5-c-icon--m-lg--content--FontSize: var(--pf-v5-global--icon--FontSize--lg);
|
|
26
|
-
--pf-v5-c-icon--m-xl--content--FontSize: var(--pf-v5-global--icon--FontSize--xl);
|
|
27
28
|
position: relative;
|
|
28
29
|
display: inline-flex;
|
|
29
30
|
align-items: center;
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
--pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-inline--Width);
|
|
36
37
|
--pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-inline--Height);
|
|
37
38
|
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-inline__content--FontSize);
|
|
38
|
-
--pf-v5-c-icon__content--Color:
|
|
39
|
+
--pf-v5-c-icon__content--Color: var(--pf-v5-c-icon--m-inline__content--Color);
|
|
39
40
|
line-height: 1;
|
|
40
41
|
}
|
|
41
42
|
.pf-v5-c-icon.pf-m-inline .pf-v5-c-spinner {
|
|
@@ -44,22 +45,22 @@
|
|
|
44
45
|
.pf-v5-c-icon.pf-m-sm {
|
|
45
46
|
--pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-sm--Width);
|
|
46
47
|
--pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-sm--Height);
|
|
47
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
48
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm__content--FontSize);
|
|
48
49
|
}
|
|
49
50
|
.pf-v5-c-icon.pf-m-md {
|
|
50
51
|
--pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-md--Width);
|
|
51
52
|
--pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-md--Height);
|
|
52
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
53
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md__content--FontSize);
|
|
53
54
|
}
|
|
54
55
|
.pf-v5-c-icon.pf-m-lg {
|
|
55
56
|
--pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-lg--Width);
|
|
56
57
|
--pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-lg--Height);
|
|
57
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
58
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg__content--FontSize);
|
|
58
59
|
}
|
|
59
60
|
.pf-v5-c-icon.pf-m-xl {
|
|
60
61
|
--pf-v5-c-icon--Width: var(--pf-v5-c-icon--m-xl--Width);
|
|
61
62
|
--pf-v5-c-icon--Height: var(--pf-v5-c-icon--m-xl--Height);
|
|
62
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
63
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl__content--FontSize);
|
|
63
64
|
}
|
|
64
65
|
.pf-v5-c-icon.pf-m-in-progress {
|
|
65
66
|
--pf-v5-c-icon__content--Opacity: 0;
|
|
@@ -76,23 +77,23 @@
|
|
|
76
77
|
}
|
|
77
78
|
.pf-v5-c-icon__content.pf-m-sm,
|
|
78
79
|
.pf-v5-c-icon__progress.pf-m-sm {
|
|
79
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
80
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-sm__content--FontSize);
|
|
80
81
|
}
|
|
81
82
|
.pf-v5-c-icon__content.pf-m-md,
|
|
82
83
|
.pf-v5-c-icon__progress.pf-m-md {
|
|
83
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
84
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-md__content--FontSize);
|
|
84
85
|
}
|
|
85
86
|
.pf-v5-c-icon__content.pf-m-lg,
|
|
86
87
|
.pf-v5-c-icon__progress.pf-m-lg {
|
|
87
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
88
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-lg__content--FontSize);
|
|
88
89
|
}
|
|
89
90
|
.pf-v5-c-icon__content.pf-m-xl,
|
|
90
91
|
.pf-v5-c-icon__progress.pf-m-xl {
|
|
91
|
-
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-
|
|
92
|
+
--pf-v5-c-icon__content--FontSize: var(--pf-v5-c-icon--m-xl__content--FontSize);
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
.pf-v5-c-icon__content {
|
|
95
|
-
color: var(--pf-v5-c-icon__content--Color);
|
|
96
|
+
color: var(--pf-v5-c-icon__content--Color, inherit);
|
|
96
97
|
opacity: var(--pf-v5-c-icon__content--Opacity, 1);
|
|
97
98
|
}
|
|
98
99
|
.pf-v5-c-icon__content.pf-m-danger {
|
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
// @debug $icon; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
|
|
2
2
|
|
|
3
3
|
.#{$icon} {
|
|
4
|
-
//
|
|
5
|
-
--#{$icon}--Width:
|
|
6
|
-
--#{$icon}--Height:
|
|
7
|
-
|
|
8
|
-
// When inline, use the parent's size
|
|
9
|
-
--#{$icon}--m-inline--Width: 1em;
|
|
10
|
-
--#{$icon}--m-inline--Height: 1em;
|
|
11
|
-
|
|
12
|
-
// Size modifiers
|
|
4
|
+
// Sizes
|
|
5
|
+
--#{$icon}--Width: 1em;
|
|
6
|
+
--#{$icon}--Height: 1em;
|
|
13
7
|
--#{$icon}--m-sm--Width: var(--#{$pf-global}--icon--FontSize--sm);
|
|
14
|
-
--#{$icon}--m-md--Width: var(--#{$pf-global}--icon--FontSize--md);
|
|
15
|
-
--#{$icon}--m-lg--Width: var(--#{$pf-global}--icon--FontSize--lg);
|
|
16
|
-
--#{$icon}--m-xl--Width: var(--#{$pf-global}--icon--FontSize--xl);
|
|
17
8
|
--#{$icon}--m-sm--Height: var(--#{$pf-global}--icon--FontSize--sm);
|
|
9
|
+
--#{$icon}--m-md--Width: var(--#{$pf-global}--icon--FontSize--md);
|
|
18
10
|
--#{$icon}--m-md--Height: var(--#{$pf-global}--icon--FontSize--md);
|
|
11
|
+
--#{$icon}--m-lg--Width: var(--#{$pf-global}--icon--FontSize--lg);
|
|
19
12
|
--#{$icon}--m-lg--Height: var(--#{$pf-global}--icon--FontSize--lg);
|
|
13
|
+
--#{$icon}--m-xl--Width: var(--#{$pf-global}--icon--FontSize--xl);
|
|
20
14
|
--#{$icon}--m-xl--Height: var(--#{$pf-global}--icon--FontSize--xl);
|
|
15
|
+
--#{$icon}--m-inline--Width: 1em;
|
|
16
|
+
--#{$icon}--m-inline--Height: 1em;
|
|
21
17
|
|
|
22
|
-
// Content
|
|
23
|
-
--#{$icon}__content--
|
|
18
|
+
// Content
|
|
19
|
+
--#{$icon}__content--svg--VerticalAlign: -.125em;
|
|
24
20
|
|
|
25
|
-
// Content
|
|
21
|
+
// Content color
|
|
22
|
+
--#{$icon}__content--Color: initial;
|
|
26
23
|
--#{$icon}__content--m-danger--Color: var(--#{$pf-global}--danger-color--100);
|
|
27
24
|
--#{$icon}__content--m-warning--Color: var(--#{$pf-global}--warning-color--100);
|
|
28
25
|
--#{$icon}__content--m-success--Color: var(--#{$pf-global}--success-color--100);
|
|
29
26
|
--#{$icon}__content--m-info--Color: var(--#{$pf-global}--info-color--100);
|
|
30
27
|
--#{$icon}__content--m-custom--Color: var(--#{$pf-global}--custom-color--100);
|
|
31
|
-
--#{$icon}
|
|
28
|
+
--#{$icon}--m-inline__content--Color: initial;
|
|
29
|
+
|
|
30
|
+
// Content sizes
|
|
31
|
+
--#{$icon}__content--FontSize: 1em;
|
|
32
|
+
--#{$icon}--m-sm__content--FontSize: var(--#{$pf-global}--icon--FontSize--sm);
|
|
33
|
+
--#{$icon}--m-md__content--FontSize: var(--#{$pf-global}--icon--FontSize--md);
|
|
34
|
+
--#{$icon}--m-lg__content--FontSize: var(--#{$pf-global}--icon--FontSize--lg);
|
|
35
|
+
--#{$icon}--m-xl__content--FontSize: var(--#{$pf-global}--icon--FontSize--xl);
|
|
32
36
|
--#{$icon}--m-inline__content--FontSize: 1em;
|
|
33
|
-
--#{$icon}__content--svg--VerticalAlign: -.125em;
|
|
34
|
-
--#{$icon}--m-sm--content--FontSize: var(--#{$pf-global}--icon--FontSize--sm);
|
|
35
|
-
--#{$icon}--m-md--content--FontSize: var(--#{$pf-global}--icon--FontSize--md);
|
|
36
|
-
--#{$icon}--m-lg--content--FontSize: var(--#{$pf-global}--icon--FontSize--lg);
|
|
37
|
-
--#{$icon}--m-xl--content--FontSize: var(--#{$pf-global}--icon--FontSize--xl);
|
|
38
37
|
|
|
39
38
|
position: relative;
|
|
40
39
|
display: inline-flex;
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
--#{$icon}--Width: var(--#{$icon}--m-inline--Width);
|
|
49
48
|
--#{$icon}--Height: var(--#{$icon}--m-inline--Height);
|
|
50
49
|
--#{$icon}__content--FontSize: var(--#{$icon}--m-inline__content--FontSize);
|
|
51
|
-
--#{$icon}__content--Color:
|
|
50
|
+
--#{$icon}__content--Color: var(--#{$icon}--m-inline__content--Color);
|
|
52
51
|
|
|
53
52
|
line-height: 1;
|
|
54
53
|
|
|
@@ -61,25 +60,25 @@
|
|
|
61
60
|
&.pf-m-sm {
|
|
62
61
|
--#{$icon}--Width: var(--#{$icon}--m-sm--Width);
|
|
63
62
|
--#{$icon}--Height: var(--#{$icon}--m-sm--Height);
|
|
64
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
63
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-sm__content--FontSize);
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
&.pf-m-md {
|
|
68
67
|
--#{$icon}--Width: var(--#{$icon}--m-md--Width);
|
|
69
68
|
--#{$icon}--Height: var(--#{$icon}--m-md--Height);
|
|
70
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
69
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-md__content--FontSize);
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
&.pf-m-lg {
|
|
74
73
|
--#{$icon}--Width: var(--#{$icon}--m-lg--Width);
|
|
75
74
|
--#{$icon}--Height: var(--#{$icon}--m-lg--Height);
|
|
76
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
75
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-lg__content--FontSize);
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
&.pf-m-xl {
|
|
80
79
|
--#{$icon}--Width: var(--#{$icon}--m-xl--Width);
|
|
81
80
|
--#{$icon}--Height: var(--#{$icon}--m-xl--Height);
|
|
82
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
81
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-xl__content--FontSize);
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
&.pf-m-in-progress {
|
|
@@ -99,25 +98,25 @@
|
|
|
99
98
|
|
|
100
99
|
// Size modifiers
|
|
101
100
|
&.pf-m-sm {
|
|
102
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
101
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-sm__content--FontSize);
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
&.pf-m-md {
|
|
106
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
105
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-md__content--FontSize);
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
&.pf-m-lg {
|
|
110
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
109
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-lg__content--FontSize);
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
&.pf-m-xl {
|
|
114
|
-
--#{$icon}__content--FontSize: var(--#{$icon}--m-
|
|
113
|
+
--#{$icon}__content--FontSize: var(--#{$icon}--m-xl__content--FontSize);
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
// Content element
|
|
119
118
|
.#{$icon}__content {
|
|
120
|
-
color: var(--#{$icon}__content--Color);
|
|
119
|
+
color: var(--#{$icon}__content--Color, inherit);
|
|
121
120
|
opacity: var(--#{$icon}__content--Opacity, 1);
|
|
122
121
|
|
|
123
122
|
// Status modifiers
|
|
@@ -7,7 +7,10 @@ cssPrefix: pf-v5-c-about-modal-box
|
|
|
7
7
|
### Basic
|
|
8
8
|
|
|
9
9
|
```html isFullscreen
|
|
10
|
-
<div
|
|
10
|
+
<div
|
|
11
|
+
class="pf-v5-c-about-modal-box"
|
|
12
|
+
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
13
|
+
>
|
|
11
14
|
<div class="pf-v5-c-about-modal-box__brand">
|
|
12
15
|
<img
|
|
13
16
|
class="pf-v5-c-about-modal-box__brand-image"
|
|
@@ -39,20 +42,14 @@ cssPrefix: pf-v5-c-about-modal-box
|
|
|
39
42
|
|
|
40
43
|
## Documentation
|
|
41
44
|
|
|
45
|
+
In order to add a background image, set the `--pf-v5-c-about-modal-box--BackgroundImage` CSS variable to the path of the image. For example: `--pf-v5-c-about-modal-box--BackgroundImage: url(custom/path/image.jpg);`
|
|
46
|
+
|
|
42
47
|
### Accessibility
|
|
43
48
|
|
|
44
49
|
| Attribute | Applies to | Outcome |
|
|
45
50
|
| -- | -- | -- |
|
|
46
51
|
| `aria-label="Close Dialog"` | `.pf-v5-c-modal-box__close .pf-v5-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required** |
|
|
47
52
|
|
|
48
|
-
### Customizing the background image
|
|
49
|
-
|
|
50
|
-
In order to use a custom image, pass a new value to the `--pf-v5-c-about-modal-box--BackgroundImage` CSS variable. For example:
|
|
51
|
-
|
|
52
|
-
```css
|
|
53
|
-
--pf-v5-c-about-modal-box--BackgroundImage: url("custom/image/path");
|
|
54
|
-
```
|
|
55
|
-
|
|
56
53
|
### Usage
|
|
57
54
|
|
|
58
55
|
| Class | Applied to | Outcome |
|
|
@@ -65,3 +62,4 @@ In order to use a custom image, pass a new value to the `--pf-v5-c-about-modal-b
|
|
|
65
62
|
| `.pf-v5-c-about-modal-box__content` | `<div>` | Initiates a modal box content cell. |
|
|
66
63
|
| `.pf-v5-c-about-modal-box__body` | `<div>` | Initiates a modal box body cell. |
|
|
67
64
|
| `.pf-v5-c-about-modal-box__strapline` | `<p>` | Initiates a modal box strapline cell. |
|
|
65
|
+
| `--pf-v5-c-about-modal-box--BackgroundImage` | `.pf-v5-c-about-modal-box` | Sets the background image for the about modal. |
|
|
@@ -7,7 +7,10 @@ cssPrefix: pf-v5-c-background-image
|
|
|
7
7
|
### Basic
|
|
8
8
|
|
|
9
9
|
```html isFullscreen
|
|
10
|
-
<div
|
|
10
|
+
<div
|
|
11
|
+
class="pf-v5-c-background-image"
|
|
12
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
13
|
+
></div>
|
|
11
14
|
|
|
12
15
|
```
|
|
13
16
|
|
|
@@ -15,18 +18,11 @@ cssPrefix: pf-v5-c-background-image
|
|
|
15
18
|
|
|
16
19
|
### Overview
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Customizing the background image
|
|
21
|
-
|
|
22
|
-
In order to use a custom image, pass a new value to the `--pf-v5-c-background-image--BackgroundImage` CSS variable. For example:
|
|
23
|
-
|
|
24
|
-
```css
|
|
25
|
-
--pf-v5-c-background-image--BackgroundImage: url("custom/image/path");
|
|
26
|
-
```
|
|
21
|
+
In order to set the background image to be used, set the `--pf-v5-c-background-image--BackgroundImage` CSS variable to the path of the image. For example: `--pf-v5-c-background-image--BackgroundImage: url(custom/path/image.jpg);`
|
|
27
22
|
|
|
28
23
|
### Usage
|
|
29
24
|
|
|
30
25
|
| Class | Applied to | Outcome |
|
|
31
26
|
| -- | -- | -- |
|
|
32
|
-
| `.pf-v5-c-background-image` | `*` |
|
|
27
|
+
| `.pf-v5-c-background-image` | `*` | A fixed background image is applied to the background of the page. |
|
|
28
|
+
| `--pf-v5-c-background-image--BackgroundImage` | `.pf-v5-c-background-image` | Sets the background image to be used. **Required** |
|
|
@@ -8,7 +8,10 @@ wrapperTag: div
|
|
|
8
8
|
### Basic
|
|
9
9
|
|
|
10
10
|
```html isFullscreen
|
|
11
|
-
<div
|
|
11
|
+
<div
|
|
12
|
+
class="pf-v5-c-background-image"
|
|
13
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
14
|
+
></div>
|
|
12
15
|
<div class="pf-v5-c-login">
|
|
13
16
|
<div class="pf-v5-c-login__container">
|
|
14
17
|
<header class="pf-v5-c-login__header">
|
|
@@ -213,7 +216,10 @@ wrapperTag: div
|
|
|
213
216
|
### Invalid
|
|
214
217
|
|
|
215
218
|
```html isFullscreen
|
|
216
|
-
<div
|
|
219
|
+
<div
|
|
220
|
+
class="pf-v5-c-background-image"
|
|
221
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
222
|
+
></div>
|
|
217
223
|
<div class="pf-v5-c-login">
|
|
218
224
|
<div class="pf-v5-c-login__container">
|
|
219
225
|
<header class="pf-v5-c-login__header">
|
|
@@ -424,7 +430,10 @@ wrapperTag: div
|
|
|
424
430
|
### Show password
|
|
425
431
|
|
|
426
432
|
```html isFullscreen
|
|
427
|
-
<div
|
|
433
|
+
<div
|
|
434
|
+
class="pf-v5-c-background-image"
|
|
435
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
436
|
+
></div>
|
|
428
437
|
<div class="pf-v5-c-login">
|
|
429
438
|
<div class="pf-v5-c-login__container">
|
|
430
439
|
<header class="pf-v5-c-login__header">
|
|
@@ -640,7 +649,10 @@ wrapperTag: div
|
|
|
640
649
|
### Hide password
|
|
641
650
|
|
|
642
651
|
```html isFullscreen
|
|
643
|
-
<div
|
|
652
|
+
<div
|
|
653
|
+
class="pf-v5-c-background-image"
|
|
654
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
655
|
+
></div>
|
|
644
656
|
<div class="pf-v5-c-login">
|
|
645
657
|
<div class="pf-v5-c-login__container">
|
|
646
658
|
<header class="pf-v5-c-login__header">
|
|
@@ -863,7 +875,10 @@ wrapperTag: div
|
|
|
863
875
|
### With language selector
|
|
864
876
|
|
|
865
877
|
```html isFullscreen
|
|
866
|
-
<div
|
|
878
|
+
<div
|
|
879
|
+
class="pf-v5-c-background-image"
|
|
880
|
+
style="--pf-v5-c-background-image--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
881
|
+
></div>
|
|
867
882
|
<div class="pf-v5-c-login">
|
|
868
883
|
<div class="pf-v5-c-login__container">
|
|
869
884
|
<header class="pf-v5-c-login__header">
|
|
@@ -982,7 +982,10 @@ This demo implements the about modal, including the backdrop.
|
|
|
982
982
|
aria-modal="true"
|
|
983
983
|
aria-labelledby="about-modal-title"
|
|
984
984
|
>
|
|
985
|
-
<div
|
|
985
|
+
<div
|
|
986
|
+
class="pf-v5-c-about-modal-box"
|
|
987
|
+
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/pfbg-icon.svg)"
|
|
988
|
+
>
|
|
986
989
|
<div class="pf-v5-c-about-modal-box__brand">
|
|
987
990
|
<img
|
|
988
991
|
class="pf-v5-c-about-modal-box__brand-image"
|
package/package.json
CHANGED
|
@@ -218,8 +218,8 @@
|
|
|
218
218
|
--pf-v5-global--BorderRadius--lg: 30em;
|
|
219
219
|
--pf-v5-global--icon--Color--light: #6a6e73;
|
|
220
220
|
--pf-v5-global--icon--Color--dark: #151515;
|
|
221
|
-
--pf-v5-global--icon--FontSize--sm: 0.
|
|
222
|
-
--pf-v5-global--icon--FontSize--md:
|
|
221
|
+
--pf-v5-global--icon--FontSize--sm: 0.75rem;
|
|
222
|
+
--pf-v5-global--icon--FontSize--md: 1rem;
|
|
223
223
|
--pf-v5-global--icon--FontSize--lg: 1.5rem;
|
|
224
224
|
--pf-v5-global--icon--FontSize--xl: 3.375rem;
|
|
225
225
|
--pf-v5-global--FontFamily--sans-serif: "RedHatText", helvetica, arial, sans-serif;
|
package/patternfly-base.css
CHANGED
|
@@ -218,8 +218,8 @@
|
|
|
218
218
|
--pf-v5-global--BorderRadius--lg: 30em;
|
|
219
219
|
--pf-v5-global--icon--Color--light: #6a6e73;
|
|
220
220
|
--pf-v5-global--icon--Color--dark: #151515;
|
|
221
|
-
--pf-v5-global--icon--FontSize--sm: 0.
|
|
222
|
-
--pf-v5-global--icon--FontSize--md:
|
|
221
|
+
--pf-v5-global--icon--FontSize--sm: 0.75rem;
|
|
222
|
+
--pf-v5-global--icon--FontSize--md: 1rem;
|
|
223
223
|
--pf-v5-global--icon--FontSize--lg: 1.5rem;
|
|
224
224
|
--pf-v5-global--icon--FontSize--xl: 3.375rem;
|
|
225
225
|
--pf-v5-global--FontFamily--sans-serif: "RedHatText", helvetica, arial, sans-serif;
|