@patternfly/patternfly 6.0.0-alpha.19 → 6.0.0-alpha.20
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/assets/images/PF-Backdrop.svg +1 -0
- package/assets/images/PF-IconLogo-Reverse.svg +14 -0
- package/assets/images/PF-IconLogo.svg +17 -0
- package/components/AboutModalBox/about-modal-box.css +59 -98
- package/components/AboutModalBox/about-modal-box.scss +39 -66
- package/components/ModalBox/modal-box.css +59 -52
- package/components/ModalBox/modal-box.scss +57 -53
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +2 -2
- package/package.json +1 -1
- package/patternfly-no-globals.css +163 -184
- package/patternfly-theme-dark-unversioned.css +163 -184
- package/patternfly.css +163 -184
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/AboutModalBox/themes/dark/about-modal-box.scss +0 -7
- package/components/ModalBox/themes/dark/modal-box.scss +0 -7
|
@@ -1,73 +1,80 @@
|
|
|
1
1
|
// @debug $modal-box; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
--#{$modal-box}--BackgroundColor: var(
|
|
5
|
-
--#{$modal-box}--
|
|
6
|
-
--#{$modal-box}--
|
|
3
|
+
:root {
|
|
4
|
+
--#{$modal-box}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
5
|
+
--#{$modal-box}--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
6
|
+
--#{$modal-box}--BoxShadow: var(--pf-t--global--box-shadow--lg);
|
|
7
|
+
--#{$modal-box}--ZIndex: var(--#{$pf-global}--ZIndex--xl); // TODO use a z-index token
|
|
7
8
|
--#{$modal-box}--Width: 100%;
|
|
8
|
-
--#{$modal-box}--MaxWidth: calc(100% - var(
|
|
9
|
+
--#{$modal-box}--MaxWidth: calc(100% - var(--pf-t--global--spacer--xl)); // Ensure modal has gutters at full width
|
|
9
10
|
--#{$modal-box}--m-sm--sm--MaxWidth: #{pf-size-prem(560px)}; // MaxWidth is based on optimal line length for reading
|
|
10
11
|
--#{$modal-box}--m-md--Width: #{pf-size-prem(840px)};
|
|
11
12
|
--#{$modal-box}--m-lg--lg--MaxWidth: #{pf-size-prem(1120px)};
|
|
12
|
-
--#{$modal-box}--MaxHeight: calc(100% - var(
|
|
13
|
-
--#{$modal-box}--m-align-top--spacer: var(
|
|
14
|
-
--#{$modal-box}--m-align-top--xl--spacer: var(
|
|
15
|
-
--#{$modal-box}--m-align-top--
|
|
16
|
-
--#{$modal-box}--m-align-top--MaxHeight: calc(100% - min(var(--#{$modal-box}--m-align-top--spacer), var(
|
|
17
|
-
--#{$modal-box}--m-align-top--MaxWidth: calc(100% - min(var(--#{$modal-box}--m-align-top--spacer) * 2, var(
|
|
13
|
+
--#{$modal-box}--MaxHeight: calc(100% - var(--pf-t--global--spacer--2xl)); // MaxHeight ensures that the modal will not go off the screen and instead the body will scroll
|
|
14
|
+
--#{$modal-box}--m-align-top--spacer: var(--pf-t--global--spacer--sm);
|
|
15
|
+
--#{$modal-box}--m-align-top--xl--spacer: var(--pf-t--global--spacer--xl);
|
|
16
|
+
--#{$modal-box}--m-align-top--Top: var(--#{$modal-box}--m-align-top--spacer);
|
|
17
|
+
--#{$modal-box}--m-align-top--MaxHeight: calc(100% - min(var(--#{$modal-box}--m-align-top--spacer), var(--pf-t--global--spacer--2xl)) - var(--#{$modal-box}--m-align-top--spacer));
|
|
18
|
+
--#{$modal-box}--m-align-top--MaxWidth: calc(100% - min(var(--#{$modal-box}--m-align-top--spacer) * 2, var(--pf-t--global--spacer--xl)));
|
|
18
19
|
|
|
19
20
|
// States
|
|
20
|
-
--#{$modal-box}--m-danger__title-icon--Color: var(
|
|
21
|
-
--#{$modal-box}--m-warning__title-icon--Color: var(
|
|
22
|
-
--#{$modal-box}--m-success__title-icon--Color: var(
|
|
23
|
-
--#{$modal-box}--m-info__title-icon--Color: var(
|
|
24
|
-
--#{$modal-box}--m-custom__title-icon--Color: var(
|
|
21
|
+
--#{$modal-box}--m-danger__title-icon--Color: var(--pf-t--global--icon--color--status--danger--default);
|
|
22
|
+
--#{$modal-box}--m-warning__title-icon--Color: var(--pf-t--global--icon--color--status--warning--default);
|
|
23
|
+
--#{$modal-box}--m-success__title-icon--Color: var(--pf-t--global--icon--color--status--success--default);
|
|
24
|
+
--#{$modal-box}--m-info__title-icon--Color: var(--pf-t--global--icon--color--status--info--default);
|
|
25
|
+
--#{$modal-box}--m-custom__title-icon--Color: var(--pf-t--global--icon--color--status--custom--default);
|
|
25
26
|
|
|
26
27
|
@media (min-width: $pf-v5-global--breakpoint--xl) {
|
|
27
28
|
--#{$modal-box}--m-align-top--spacer: var(--#{$modal-box}--m-align-top--xl--spacer);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
// Header
|
|
31
|
-
--#{$modal-box}__header--PaddingTop: var(
|
|
32
|
-
--#{$modal-box}__header--PaddingRight: var(
|
|
33
|
-
--#{$modal-box}__header--PaddingLeft: var(
|
|
34
|
-
--#{$modal-box}__header--
|
|
32
|
+
--#{$modal-box}__header--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
33
|
+
--#{$modal-box}__header--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
34
|
+
--#{$modal-box}__header--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
35
|
+
--#{$modal-box}__header--Gap: var(--pf-t--global--spacer--md);
|
|
36
|
+
|
|
37
|
+
// Header main
|
|
38
|
+
--#{$modal-box}__header-main--Gap: var(--pf-t--global--spacer--md);
|
|
35
39
|
|
|
36
40
|
// Title
|
|
37
|
-
--#{$modal-box}__title--LineHeight: var(
|
|
38
|
-
--#{$modal-box}__title--FontFamily: var(
|
|
39
|
-
--#{$modal-box}__title--FontSize: var(
|
|
41
|
+
--#{$modal-box}__title--LineHeight: var(--pf-t--global--font--line-height--heading);
|
|
42
|
+
--#{$modal-box}__title--FontFamily: var(--pf-t--global--font--family--heading);
|
|
43
|
+
--#{$modal-box}__title--FontSize: var(--pf-t--global--font--size--heading--md);
|
|
40
44
|
|
|
41
45
|
// Title icon
|
|
42
|
-
--#{$modal-box}__title-icon--MarginRight: var(
|
|
43
|
-
--#{$modal-box}__title-icon--Color: var(
|
|
46
|
+
--#{$modal-box}__title-icon--MarginRight: var(--pf-t--global--spacer--sm);
|
|
47
|
+
--#{$modal-box}__title-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
44
48
|
|
|
45
49
|
// Description
|
|
46
|
-
--#{$modal-box}__description--
|
|
47
|
-
|
|
50
|
+
--#{$modal-box}__description--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
51
|
+
--#{$modal-box}__description--Color: var(--pf-t--global--text--color--subtle);
|
|
52
|
+
|
|
48
53
|
// Body
|
|
49
|
-
--#{$modal-box}__body--MinHeight: calc(var(
|
|
50
|
-
--#{$modal-box}__body--PaddingTop: var(
|
|
51
|
-
--#{$modal-box}__body--PaddingRight: var(
|
|
52
|
-
--#{$modal-box}__body--PaddingLeft: var(
|
|
53
|
-
--#{$modal-box}__body--last-child--PaddingBottom: var(
|
|
54
|
-
--#{$modal-box}__header--body--PaddingTop: var(
|
|
54
|
+
--#{$modal-box}__body--MinHeight: calc(var(--pf-t--global--font--size--body) * var(--pf-t--global--font--line-height--body)); // Allow for at least 1 line of content in the body
|
|
55
|
+
--#{$modal-box}__body--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
56
|
+
--#{$modal-box}__body--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
57
|
+
--#{$modal-box}__body--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
58
|
+
--#{$modal-box}__body--last-child--PaddingBottom: var(--pf-t--global--spacer--lg);
|
|
59
|
+
--#{$modal-box}__header--body--PaddingTop: var(--pf-t--global--spacer--md);
|
|
55
60
|
|
|
56
61
|
// Close
|
|
57
|
-
--#{$modal-box}__close--Top: calc(var(
|
|
58
|
-
--#{$modal-box}__close--Right: var(
|
|
59
|
-
--#{$modal-box}__close--sibling--MarginRight: calc(var(
|
|
62
|
+
--#{$modal-box}__close--Top: var(--pf-v5-c-modal-box__header--PaddingTop); // calc(var(--pf-t--global--spacer--md));
|
|
63
|
+
--#{$modal-box}__close--Right: var(--pf-v5-c-modal-box__header--PaddingRight); // var(--pf-t--global--spacer--lg);
|
|
64
|
+
--#{$modal-box}__close--sibling--MarginRight: calc(var(--pf-t--global--spacer--xl) + var(--pf-t--global--spacer--sm));
|
|
60
65
|
|
|
61
66
|
// Footer
|
|
62
|
-
--#{$modal-box}__footer--PaddingTop: var(
|
|
63
|
-
--#{$modal-box}__footer--PaddingRight: var(
|
|
64
|
-
--#{$modal-box}__footer--PaddingBottom: var(
|
|
65
|
-
--#{$modal-box}__footer--PaddingLeft: var(
|
|
67
|
+
--#{$modal-box}__footer--PaddingTop: var(--pf-t--global--spacer--lg);
|
|
68
|
+
--#{$modal-box}__footer--PaddingRight: var(--pf-t--global--spacer--lg);
|
|
69
|
+
--#{$modal-box}__footer--PaddingBottom: var(--pf-t--global--spacer--lg);
|
|
70
|
+
--#{$modal-box}__footer--PaddingLeft: var(--pf-t--global--spacer--lg);
|
|
66
71
|
|
|
67
72
|
// Footer buttons
|
|
68
|
-
--#{$modal-box}__footer--c-button--MarginRight: var(
|
|
73
|
+
--#{$modal-box}__footer--c-button--MarginRight: var(--pf-t--global--spacer--md); // Button spacer is used to manipulate margin-inline-start and/or margin-right values at various breakpoints, with a single value.
|
|
69
74
|
--#{$modal-box}__footer--c-button--sm--MarginRight: calc(var(--#{$modal-box}__footer--c-button--MarginRight) / 2);
|
|
75
|
+
}
|
|
70
76
|
|
|
77
|
+
.#{$modal-box} {
|
|
71
78
|
position: relative;
|
|
72
79
|
z-index: var(--#{$modal-box}--ZIndex);
|
|
73
80
|
display: flex;
|
|
@@ -75,7 +82,9 @@
|
|
|
75
82
|
width: var(--#{$modal-box}--Width);
|
|
76
83
|
max-width: var(--#{$modal-box}--MaxWidth);
|
|
77
84
|
max-height: var(--#{$modal-box}--MaxHeight);
|
|
85
|
+
overflow: auto;
|
|
78
86
|
background-color: var(--#{$modal-box}--BackgroundColor);
|
|
87
|
+
border-radius: var(--#{$modal-box}--BorderRadius);
|
|
79
88
|
box-shadow: var(--#{$modal-box}--BoxShadow);
|
|
80
89
|
|
|
81
90
|
&.pf-m-sm {
|
|
@@ -91,7 +100,7 @@
|
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
&.pf-m-align-top {
|
|
94
|
-
|
|
103
|
+
inset-block-start: var(--#{$modal-box}--m-align-top--Top);
|
|
95
104
|
align-self: flex-start;
|
|
96
105
|
max-width: var(--#{$modal-box}--m-align-top--MaxWidth);
|
|
97
106
|
max-height: var(--#{$modal-box}--m-align-top--MaxHeight);
|
|
@@ -133,6 +142,7 @@
|
|
|
133
142
|
display: flex;
|
|
134
143
|
flex-direction: column;
|
|
135
144
|
flex-shrink: 0;
|
|
145
|
+
gap: var(--#{$modal-box}__header--Gap);
|
|
136
146
|
padding-block-start: var(--#{$modal-box}__header--PaddingTop);
|
|
137
147
|
padding-inline-start: var(--#{$modal-box}__header--PaddingLeft);
|
|
138
148
|
padding-inline-end: var(--#{$modal-box}__header--PaddingRight);
|
|
@@ -142,17 +152,16 @@
|
|
|
142
152
|
flex-direction: row;
|
|
143
153
|
}
|
|
144
154
|
|
|
145
|
-
&:last-child {
|
|
146
|
-
padding-block-end: var(--#{$modal-box}__header--last-child--PaddingBottom);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
155
|
+ .#{$modal-box}__body {
|
|
150
156
|
--#{$modal-box}__body--PaddingTop: var(--#{$modal-box}__header--body--PaddingTop);
|
|
151
157
|
}
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
.#{$modal-box}__header-main {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
155
163
|
flex-grow: 1;
|
|
164
|
+
gap: var(--#{$modal-box}__header-main--Gap);
|
|
156
165
|
min-width: 0;
|
|
157
166
|
}
|
|
158
167
|
|
|
@@ -179,6 +188,8 @@
|
|
|
179
188
|
|
|
180
189
|
.#{$modal-box}__description {
|
|
181
190
|
padding-block-start: var(--#{$modal-box}__description--PaddingTop);
|
|
191
|
+
font-size: var(--#{$modal-box}__description--FontSize);
|
|
192
|
+
color: var(--#{$modal-box}__description--Color);
|
|
182
193
|
}
|
|
183
194
|
|
|
184
195
|
// Body
|
|
@@ -218,10 +229,3 @@
|
|
|
218
229
|
}
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
|
-
|
|
222
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
223
|
-
@import "themes/dark/modal-box";
|
|
224
|
-
|
|
225
|
-
@include pf-v5-theme-dark {
|
|
226
|
-
@include pf-v5-theme-dark-modal-box;
|
|
227
|
-
}
|
|
@@ -9,12 +9,12 @@ cssPrefix: pf-v5-c-about-modal-box
|
|
|
9
9
|
```html isFullscreen
|
|
10
10
|
<div
|
|
11
11
|
class="pf-v5-c-about-modal-box"
|
|
12
|
-
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/
|
|
12
|
+
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/PF-Backdrop.svg)"
|
|
13
13
|
>
|
|
14
14
|
<div class="pf-v5-c-about-modal-box__brand">
|
|
15
15
|
<img
|
|
16
16
|
class="pf-v5-c-about-modal-box__brand-image"
|
|
17
|
-
src="/assets/images/
|
|
17
|
+
src="/assets/images/PF-IconLogo.svg"
|
|
18
18
|
alt="PatternFly brand logo"
|
|
19
19
|
/>
|
|
20
20
|
</div>
|
|
@@ -319,12 +319,12 @@ This demo implements the about modal, including the backdrop.
|
|
|
319
319
|
>
|
|
320
320
|
<div
|
|
321
321
|
class="pf-v5-c-about-modal-box"
|
|
322
|
-
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/
|
|
322
|
+
style="--pf-v5-c-about-modal-box--BackgroundImage: url(/assets/images/PF-Backdrop.svg)"
|
|
323
323
|
>
|
|
324
324
|
<div class="pf-v5-c-about-modal-box__brand">
|
|
325
325
|
<img
|
|
326
326
|
class="pf-v5-c-about-modal-box__brand-image"
|
|
327
|
-
src="/assets/images/
|
|
327
|
+
src="/assets/images/PF-IconLogo.svg"
|
|
328
328
|
alt="PatternFly brand logo"
|
|
329
329
|
/>
|
|
330
330
|
</div>
|