@patternfly/patternfly 5.0.0-alpha.36 → 5.0.0-alpha.37
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/pfbg-icon.svg +1 -0
- package/components/AboutModalBox/about-modal-box.css +15 -7
- package/components/AboutModalBox/about-modal-box.scss +17 -9
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Login/login.css +9 -9
- package/components/Login/login.scss +6 -8
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Page/page.css +30 -9
- package/components/Page/page.scss +37 -9
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +8 -2
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +10 -26
- package/docs/components/Login/examples/Login.md +5 -120
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +31 -4
- package/docs/demos/AboutModal/examples/AboutModal.md +0 -1
- package/docs/demos/Page/examples/Page.md +931 -0
- package/package.json +1 -1
- package/patternfly-no-globals.css +62 -60
- package/patternfly.css +62 -60
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110.27 105.77"><defs><style>.cls-1{fill:#26292d;}</style></defs><polygon class="cls-1" points="110.27 87.87 97.53 105.77 99.28 105.77 110.27 90.32 110.27 87.87"/><path class="cls-1" d="M23.22,105.77H25L1.86,73.05,67.4,9,27,58.44,40.58,77l-4.37,9.93L49.6,105.77h1.75l-13.51-19,3.71-8.43,20.06,27.35-.32.08h2.49L74.21,4.22l.23-.54.23.53L85.1,105.77h2.49l-.32-.08,20.06-27.35L110.27,85V81.47l-2-4.46,2-2.68V71.92l-2.63,3.59L76.8,5.52l33.47,40.92V44.19L81.49,9l28.78,28.14v-2L74.61.28V.15l-.06.08,0,0,0-.21-.12.11L74.32,0l0,.21,0,0L74.26.15V.28L0,72.88Zm83.44-28.94-19.82,27L76.7,8.8ZM62,103.87l-19.83-27,30-68ZM41.24,75.51l-12.47-17,43.31-53Z"/></svg>
|
|
@@ -10,11 +10,17 @@
|
|
|
10
10
|
|
|
11
11
|
.pf-c-about-modal-box {
|
|
12
12
|
--pf-c-about-modal-box--BackgroundColor: var(--pf-global--palette--black-1000);
|
|
13
|
+
--pf-c-about-modal-box--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
|
|
14
|
+
--pf-c-about-modal-box--BackgroundPosition: bottom right;
|
|
15
|
+
--pf-c-about-modal-box--BackgroundSize--min-width: 200px;
|
|
16
|
+
--pf-c-about-modal-box--BackgroundSize--width: 60%;
|
|
17
|
+
--pf-c-about-modal-box--BackgroundSize--max-width: 600px;
|
|
18
|
+
--pf-c-about-modal-box--BackgroundSize: clamp(var(--pf-c-about-modal-box--BackgroundSize--min-width), var(--pf-c-about-modal-box--BackgroundSize--width), var(--pf-c-about-modal-box--BackgroundSize--max-width));
|
|
13
19
|
--pf-c-about-modal-box--Height: 100%;
|
|
14
20
|
--pf-c-about-modal-box--lg--Height: 47.625rem;
|
|
15
21
|
--pf-c-about-modal-box--Width: 100%;
|
|
16
|
-
--pf-c-about-modal-box--sm--
|
|
17
|
-
--pf-c-about-modal-box--lg--
|
|
22
|
+
--pf-c-about-modal-box--sm--GridTemplateColumns: 5fr 1fr;
|
|
23
|
+
--pf-c-about-modal-box--lg--GridTemplateColumns: 1fr .6fr;
|
|
18
24
|
--pf-c-about-modal-box__brand--PaddingTop: var(--pf-global--spacer--2xl);
|
|
19
25
|
--pf-c-about-modal-box__brand--PaddingRight: var(--pf-global--spacer--xl);
|
|
20
26
|
--pf-c-about-modal-box__brand--PaddingLeft: var(--pf-global--spacer--xl);
|
|
@@ -27,7 +33,6 @@
|
|
|
27
33
|
--pf-c-about-modal-box__close--PaddingRight: var(--pf-global--spacer--xl);
|
|
28
34
|
--pf-c-about-modal-box__close--PaddingBottom: var(--pf-global--spacer--xl);
|
|
29
35
|
--pf-c-about-modal-box__close--sm--PaddingBottom: var(--pf-global--spacer--3xl);
|
|
30
|
-
--pf-c-about-modal-box__close--sm--PaddingRight: 0;
|
|
31
36
|
--pf-c-about-modal-box__close--lg--PaddingRight: var(--pf-global--spacer--3xl);
|
|
32
37
|
--pf-c-about-modal-box__close--c-button--Color: var(--pf-global--Color--100);
|
|
33
38
|
--pf-c-about-modal-box__close--c-button--FontSize: var(--pf-global--FontSize--xl);
|
|
@@ -66,6 +71,10 @@
|
|
|
66
71
|
overflow-x: hidden;
|
|
67
72
|
overflow-y: auto;
|
|
68
73
|
background-color: var(--pf-c-about-modal-box--BackgroundColor);
|
|
74
|
+
background-image: var(--pf-c-about-modal-box--BackgroundImage);
|
|
75
|
+
background-repeat: no-repeat;
|
|
76
|
+
background-position: var(--pf-c-about-modal-box--BackgroundPosition);
|
|
77
|
+
background-size: var(--pf-c-about-modal-box--BackgroundSize);
|
|
69
78
|
}
|
|
70
79
|
@media screen and (min-width: 576px) {
|
|
71
80
|
.pf-c-about-modal-box {
|
|
@@ -76,7 +85,6 @@
|
|
|
76
85
|
}
|
|
77
86
|
@media only screen and (min-width: 576px) {
|
|
78
87
|
.pf-c-about-modal-box {
|
|
79
|
-
--pf-c-about-modal-box__close--PaddingRight: var(--pf-c-about-modal-box__close--sm--PaddingRight);
|
|
80
88
|
--pf-c-about-modal-box__close--PaddingBottom: var(--pf-c-about-modal-box__close--sm--PaddingBottom);
|
|
81
89
|
}
|
|
82
90
|
}
|
|
@@ -106,8 +114,8 @@
|
|
|
106
114
|
}
|
|
107
115
|
@media only screen and (min-width: 576px) {
|
|
108
116
|
.pf-c-about-modal-box {
|
|
109
|
-
grid-template-areas: "brand
|
|
110
|
-
grid-template-columns: var(--pf-c-about-modal-box--sm--
|
|
117
|
+
grid-template-areas: "brand close" "header close" "content close";
|
|
118
|
+
grid-template-columns: var(--pf-c-about-modal-box--sm--GridTemplateColumns);
|
|
111
119
|
}
|
|
112
120
|
}
|
|
113
121
|
@media only screen and (min-width: 992px) {
|
|
@@ -115,7 +123,7 @@
|
|
|
115
123
|
--pf-c-about-modal-box--Height: var(--pf-c-about-modal-box--lg--Height);
|
|
116
124
|
--pf-c-about-modal-box--Width: var(--pf-c-about-modal-box--lg--Width);
|
|
117
125
|
grid-template-rows: max-content max-content auto;
|
|
118
|
-
grid-template-columns: var(--pf-c-about-modal-box--lg--
|
|
126
|
+
grid-template-columns: var(--pf-c-about-modal-box--lg--GridTemplateColumns);
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
.pf-c-about-modal-box {
|
|
2
2
|
// Component variables
|
|
3
3
|
--pf-c-about-modal-box--BackgroundColor: var(--pf-global--palette--black-1000); // Modal uses a non-standard background color
|
|
4
|
+
--pf-c-about-modal-box--BackgroundImage: url("#{$pf-global--image-path}/pfbg-icon.svg");
|
|
5
|
+
--pf-c-about-modal-box--BackgroundPosition: bottom right;
|
|
6
|
+
--pf-c-about-modal-box--BackgroundSize--min-width: 200px;
|
|
7
|
+
--pf-c-about-modal-box--BackgroundSize--width: 60%;
|
|
8
|
+
--pf-c-about-modal-box--BackgroundSize--max-width: 600px;
|
|
9
|
+
--pf-c-about-modal-box--BackgroundSize: clamp(var(--pf-c-about-modal-box--BackgroundSize--min-width), var(--pf-c-about-modal-box--BackgroundSize--width), var(--pf-c-about-modal-box--BackgroundSize--max-width));
|
|
4
10
|
--pf-c-about-modal-box--Height: 100%;
|
|
5
11
|
--pf-c-about-modal-box--lg--Height: #{pf-size-prem(762px)}; // Height is optimized for the exact height desired
|
|
6
12
|
--pf-c-about-modal-box--Width: 100%;
|
|
7
|
-
--pf-c-about-modal-box--sm--
|
|
8
|
-
--pf-c-about-modal-box--lg--
|
|
13
|
+
--pf-c-about-modal-box--sm--GridTemplateColumns: 5fr 1fr;
|
|
14
|
+
--pf-c-about-modal-box--lg--GridTemplateColumns: 1fr .6fr;
|
|
9
15
|
|
|
10
16
|
// Brand
|
|
11
17
|
--pf-c-about-modal-box__brand--PaddingTop: var(--pf-global--spacer--2xl);
|
|
@@ -28,11 +34,9 @@
|
|
|
28
34
|
--pf-c-about-modal-box__close--PaddingRight: var(--pf-global--spacer--xl);
|
|
29
35
|
--pf-c-about-modal-box__close--PaddingBottom: var(--pf-global--spacer--xl);
|
|
30
36
|
--pf-c-about-modal-box__close--sm--PaddingBottom: var(--pf-global--spacer--3xl);
|
|
31
|
-
--pf-c-about-modal-box__close--sm--PaddingRight: 0;
|
|
32
37
|
--pf-c-about-modal-box__close--lg--PaddingRight: var(--pf-global--spacer--3xl);
|
|
33
38
|
|
|
34
39
|
@media only screen and (min-width: $pf-global--breakpoint--sm) {
|
|
35
|
-
--pf-c-about-modal-box__close--PaddingRight: var(--pf-c-about-modal-box__close--sm--PaddingRight);
|
|
36
40
|
--pf-c-about-modal-box__close--PaddingBottom: var(--pf-c-about-modal-box__close--sm--PaddingBottom);
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -110,13 +114,17 @@
|
|
|
110
114
|
overflow-x: hidden;
|
|
111
115
|
overflow-y: auto;
|
|
112
116
|
background-color: var(--pf-c-about-modal-box--BackgroundColor); // Because this component is always dark, set the background color
|
|
117
|
+
background-image: var(--pf-c-about-modal-box--BackgroundImage);
|
|
118
|
+
background-repeat: no-repeat;
|
|
119
|
+
background-position: var(--pf-c-about-modal-box--BackgroundPosition);
|
|
120
|
+
background-size: var(--pf-c-about-modal-box--BackgroundSize);
|
|
113
121
|
|
|
114
122
|
@media only screen and (min-width: $pf-global--breakpoint--sm) {
|
|
115
123
|
grid-template-areas:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
grid-template-columns: var(--pf-c-about-modal-box--sm--
|
|
124
|
+
"brand close"
|
|
125
|
+
"header close"
|
|
126
|
+
"content close";
|
|
127
|
+
grid-template-columns: var(--pf-c-about-modal-box--sm--GridTemplateColumns);
|
|
120
128
|
}
|
|
121
129
|
|
|
122
130
|
@media only screen and (min-width: $pf-global--breakpoint--lg) {
|
|
@@ -124,7 +132,7 @@
|
|
|
124
132
|
--pf-c-about-modal-box--Width: var(--pf-c-about-modal-box--lg--Width);
|
|
125
133
|
|
|
126
134
|
grid-template-rows: max-content max-content auto;
|
|
127
|
-
grid-template-columns: var(--pf-c-about-modal-box--lg--
|
|
135
|
+
grid-template-columns: var(--pf-c-about-modal-box--lg--GridTemplateColumns);
|
|
128
136
|
}
|
|
129
137
|
}
|
|
130
138
|
|
|
@@ -1,47 +1,20 @@
|
|
|
1
1
|
.pf-c-background-image {
|
|
2
2
|
--pf-c-background-image--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
|
|
3
|
-
--pf-c-background-image--BackgroundImage: url("../../assets/images/
|
|
4
|
-
--pf-c-background-image--
|
|
5
|
-
--pf-c-background-image--
|
|
6
|
-
--pf-c-background-image--
|
|
7
|
-
--pf-c-background-image--
|
|
8
|
-
--pf-c-background-image--
|
|
9
|
-
}
|
|
10
|
-
.pf-c-background-image::before {
|
|
3
|
+
--pf-c-background-image--BackgroundImage: url("../../assets/images/pfbg-icon.svg");
|
|
4
|
+
--pf-c-background-image--BackgroundPosition: bottom right;
|
|
5
|
+
--pf-c-background-image--BackgroundSize--min-width: 200px;
|
|
6
|
+
--pf-c-background-image--BackgroundSize--width: 60%;
|
|
7
|
+
--pf-c-background-image--BackgroundSize--max-width: 600px;
|
|
8
|
+
--pf-c-background-image--BackgroundSize: clamp(var(--pf-c-background-image--BackgroundSize--min-width), var(--pf-c-background-image--BackgroundSize--width), var(--pf-c-background-image--BackgroundSize--max-width));
|
|
11
9
|
position: fixed;
|
|
12
10
|
top: 0;
|
|
13
11
|
left: 0;
|
|
14
12
|
z-index: -1;
|
|
15
13
|
width: 100%;
|
|
16
14
|
height: 100%;
|
|
17
|
-
content: "";
|
|
18
15
|
background-color: var(--pf-c-background-image--BackgroundColor);
|
|
19
16
|
background-image: var(--pf-c-background-image--BackgroundImage);
|
|
20
|
-
filter: var(--pf-c-background-image--Filter);
|
|
21
17
|
background-repeat: no-repeat;
|
|
22
|
-
background-
|
|
23
|
-
|
|
24
|
-
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
25
|
-
.pf-c-background-image::before {
|
|
26
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage-2x);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
@media (min-width: 576px) {
|
|
30
|
-
.pf-c-background-image::before {
|
|
31
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--sm);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
@media (min-width: 576px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 576px) and (min-resolution: 192dpi) {
|
|
35
|
-
.pf-c-background-image::before {
|
|
36
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--sm-2x);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 992px) {
|
|
40
|
-
.pf-c-background-image::before {
|
|
41
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--lg);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.pf-c-background-image__filter {
|
|
46
|
-
display: block;
|
|
18
|
+
background-position: var(--pf-c-background-image--BackgroundPosition);
|
|
19
|
+
background-size: var(--pf-c-background-image--BackgroundSize);
|
|
47
20
|
}
|
|
@@ -1,47 +1,21 @@
|
|
|
1
1
|
.pf-c-background-image {
|
|
2
2
|
--pf-c-background-image--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
|
|
3
|
-
--pf-c-background-image--BackgroundImage: url("#{$pf-global--image-path}/
|
|
4
|
-
--pf-c-background-image--
|
|
5
|
-
--pf-c-background-image--
|
|
6
|
-
--pf-c-background-image--
|
|
7
|
-
--pf-c-background-image--
|
|
8
|
-
--pf-c-background-image--
|
|
3
|
+
--pf-c-background-image--BackgroundImage: url("#{$pf-global--image-path}/pfbg-icon.svg");
|
|
4
|
+
--pf-c-background-image--BackgroundPosition: bottom right;
|
|
5
|
+
--pf-c-background-image--BackgroundSize--min-width: 200px;
|
|
6
|
+
--pf-c-background-image--BackgroundSize--width: 60%;
|
|
7
|
+
--pf-c-background-image--BackgroundSize--max-width: 600px;
|
|
8
|
+
--pf-c-background-image--BackgroundSize: clamp(var(--pf-c-background-image--BackgroundSize--min-width), var(--pf-c-background-image--BackgroundSize--width), var(--pf-c-background-image--BackgroundSize--max-width));
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
background-repeat: no-repeat;
|
|
22
|
-
background-size: cover;
|
|
23
|
-
|
|
24
|
-
// stylelint-disable
|
|
25
|
-
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
26
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage-2x);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (min-width: $pf-global--breakpoint--sm) {
|
|
30
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--sm);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (min-width: $pf-global--breakpoint--sm) and (-webkit-min-device-pixel-ratio: 2),
|
|
34
|
-
(min-width: $pf-global--breakpoint--sm) and (min-resolution: 192dpi) {
|
|
35
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--sm-2x);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (min-width: $pf-global--breakpoint--lg) {
|
|
39
|
-
--pf-c-background-image--BackgroundImage: var(--pf-c-background-image--BackgroundImage--lg);
|
|
40
|
-
}
|
|
41
|
-
// stylelint-enable
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.pf-c-background-image__filter {
|
|
46
|
-
display: block;
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
z-index: -1;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
background-color: var(--pf-c-background-image--BackgroundColor);
|
|
17
|
+
background-image: var(--pf-c-background-image--BackgroundImage);
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
background-position: var(--pf-c-background-image--BackgroundPosition);
|
|
20
|
+
background-size: var(--pf-c-background-image--BackgroundSize);
|
|
47
21
|
}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
.pf-c-login {
|
|
12
12
|
--pf-c-login--PaddingTop: var(--pf-global--spacer--lg);
|
|
13
13
|
--pf-c-login--PaddingBottom: var(--pf-global--spacer--lg);
|
|
14
|
-
--pf-c-login--xl--BackgroundImage: none;
|
|
15
14
|
--pf-c-login__container--xl--GridColumnGap: var(--pf-global--spacer--3xl);
|
|
16
15
|
--pf-c-login__container--MaxWidth: 31.25rem;
|
|
17
16
|
--pf-c-login__container--xl--MaxWidth: none;
|
|
@@ -25,8 +24,9 @@
|
|
|
25
24
|
--pf-c-login__header--xl--MarginTop: var(--pf-global--spacer--3xl);
|
|
26
25
|
--pf-c-login__header--c-brand--MarginBottom: var(--pf-global--spacer--lg);
|
|
27
26
|
--pf-c-login__header--c-brand--xl--MarginBottom: var(--pf-global--spacer--2xl);
|
|
28
|
-
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--
|
|
27
|
+
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
29
28
|
--pf-c-login__main--MarginBottom: var(--pf-global--spacer--lg);
|
|
29
|
+
--pf-c-login__main--BoxShadow: var(--pf-global--BoxShadow--xl);
|
|
30
30
|
--pf-c-login__main-header--PaddingTop: var(--pf-global--spacer--2xl);
|
|
31
31
|
--pf-c-login__main-header--PaddingRight: var(--pf-global--spacer--xl);
|
|
32
32
|
--pf-c-login__main-header--PaddingBottom: var(--pf-global--spacer--md);
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
--pf-c-login__main-footer-band--PaddingRight: var(--pf-global--spacer--md);
|
|
61
61
|
--pf-c-login__main-footer-band--PaddingBottom: var(--pf-global--spacer--lg);
|
|
62
62
|
--pf-c-login__main-footer-band--PaddingLeft: var(--pf-global--spacer--md);
|
|
63
|
-
--pf-c-login__main-footer-band--
|
|
63
|
+
--pf-c-login__main-footer-band--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
64
|
+
--pf-c-login__main-footer-band--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
64
65
|
--pf-c-login__main-footer-band-item--PaddingTop: var(--pf-global--spacer--md);
|
|
65
66
|
--pf-c-login__footer--PaddingLeft: var(--pf-global--spacer--md);
|
|
66
67
|
--pf-c-login__footer--PaddingRight: var(--pf-global--spacer--md);
|
|
@@ -118,11 +119,6 @@
|
|
|
118
119
|
--pf-c-login__footer--c-list--PaddingTop: var(--pf-c-login__footer--c-list--xl--PaddingTop);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
@media (min-width: 1200px) {
|
|
122
|
-
.pf-c-login {
|
|
123
|
-
background-image: var(--pf-c-login--xl--BackgroundImage);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
122
|
@media (min-width: 576px) {
|
|
127
123
|
.pf-c-login {
|
|
128
124
|
align-items: center;
|
|
@@ -165,6 +161,7 @@
|
|
|
165
161
|
align-self: start;
|
|
166
162
|
margin-bottom: var(--pf-c-login__main--MarginBottom);
|
|
167
163
|
background-color: var(--pf-c-login__main--BackgroundColor);
|
|
164
|
+
box-shadow: var(--pf-c-login__main--BoxShadow);
|
|
168
165
|
}
|
|
169
166
|
.pf-c-login__main > :first-child:not(.pf-c-login__main-header) {
|
|
170
167
|
padding-top: var(--pf-c-login__main-header--PaddingTop);
|
|
@@ -256,7 +253,7 @@
|
|
|
256
253
|
.pf-c-login__main-footer-band {
|
|
257
254
|
padding: var(--pf-c-login__main-footer-band--PaddingTop) var(--pf-c-login__main-footer-band--PaddingRight) var(--pf-c-login__main-footer-band--PaddingBottom) var(--pf-c-login__main-footer-band--PaddingLeft);
|
|
258
255
|
text-align: center;
|
|
259
|
-
|
|
256
|
+
border-top: var(--pf-c-login__main-footer-band--BorderTopWidth) solid var(--pf-c-login__main-footer-band--BorderTopColor);
|
|
260
257
|
}
|
|
261
258
|
.pf-c-login__main-footer-band > * + * {
|
|
262
259
|
padding-top: var(--pf-c-login__main-footer-band-item--PaddingTop);
|
|
@@ -286,6 +283,9 @@
|
|
|
286
283
|
--pf-global--BackgroundColor--100: #1b1d21;
|
|
287
284
|
}
|
|
288
285
|
|
|
286
|
+
:where(.pf-theme-dark) .pf-c-login {
|
|
287
|
+
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
288
|
+
}
|
|
289
289
|
:where(.pf-theme-dark) .pf-c-login__header,
|
|
290
290
|
:where(.pf-theme-dark) .pf-c-login__footer {
|
|
291
291
|
color: var(--pf-global--Color--100);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.pf-c-login {
|
|
2
2
|
--pf-c-login--PaddingTop: var(--pf-global--spacer--lg);
|
|
3
3
|
--pf-c-login--PaddingBottom: var(--pf-global--spacer--lg);
|
|
4
|
-
--pf-c-login--xl--BackgroundImage: none;
|
|
5
4
|
|
|
6
5
|
// container
|
|
7
6
|
--pf-c-login__container--xl--GridColumnGap: var(--pf-global--spacer--3xl);
|
|
@@ -36,8 +35,9 @@
|
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
// main
|
|
39
|
-
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--
|
|
38
|
+
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
40
39
|
--pf-c-login__main--MarginBottom: var(--pf-global--spacer--lg);
|
|
40
|
+
--pf-c-login__main--BoxShadow: var(--pf-global--BoxShadow--xl);
|
|
41
41
|
|
|
42
42
|
@media (min-width: $pf-global--breakpoint--xl) {
|
|
43
43
|
--pf-c-login__main--MarginBottom: 0;
|
|
@@ -95,7 +95,8 @@
|
|
|
95
95
|
--pf-c-login__main-footer-band--PaddingRight: var(--pf-global--spacer--md);
|
|
96
96
|
--pf-c-login__main-footer-band--PaddingBottom: var(--pf-global--spacer--lg);
|
|
97
97
|
--pf-c-login__main-footer-band--PaddingLeft: var(--pf-global--spacer--md);
|
|
98
|
-
--pf-c-login__main-footer-band--
|
|
98
|
+
--pf-c-login__main-footer-band--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
99
|
+
--pf-c-login__main-footer-band--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
99
100
|
--pf-c-login__main-footer-band-item--PaddingTop: var(--pf-global--spacer--md);
|
|
100
101
|
|
|
101
102
|
// footer
|
|
@@ -120,10 +121,6 @@
|
|
|
120
121
|
padding-top: var(--pf-c-login--PaddingTop);
|
|
121
122
|
padding-bottom: var(--pf-c-login--PaddingBottom);
|
|
122
123
|
|
|
123
|
-
@media (min-width: $pf-global--breakpoint--xl) {
|
|
124
|
-
background-image: var(--pf-c-login--xl--BackgroundImage);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
124
|
@media (min-width: $pf-global--breakpoint--sm) {
|
|
128
125
|
align-items: center;
|
|
129
126
|
}
|
|
@@ -169,6 +166,7 @@
|
|
|
169
166
|
align-self: start;
|
|
170
167
|
margin-bottom: var(--pf-c-login__main--MarginBottom);
|
|
171
168
|
background-color: var(--pf-c-login__main--BackgroundColor);
|
|
169
|
+
box-shadow: var(--pf-c-login__main--BoxShadow);
|
|
172
170
|
|
|
173
171
|
// If the first child isn't a header, then we need to put the header's top padding there
|
|
174
172
|
> :first-child:not(.pf-c-login__main-header) {
|
|
@@ -270,7 +268,7 @@
|
|
|
270
268
|
.pf-c-login__main-footer-band {
|
|
271
269
|
padding: var(--pf-c-login__main-footer-band--PaddingTop) var(--pf-c-login__main-footer-band--PaddingRight) var(--pf-c-login__main-footer-band--PaddingBottom) var(--pf-c-login__main-footer-band--PaddingLeft);
|
|
272
270
|
text-align: center;
|
|
273
|
-
|
|
271
|
+
border-top: var(--pf-c-login__main-footer-band--BorderTopWidth) solid var(--pf-c-login__main-footer-band--BorderTopColor);
|
|
274
272
|
|
|
275
273
|
> * + * {
|
|
276
274
|
padding-top: var(--pf-c-login__main-footer-band-item--PaddingTop);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
@import "../../../../sass-utilities/themes/dark/all";
|
|
2
2
|
|
|
3
3
|
@mixin pf-theme-dark-login() {
|
|
4
|
+
.pf-c-login {
|
|
5
|
+
--pf-c-login__main--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
.pf-c-login__header,
|
|
5
9
|
.pf-c-login__footer {
|
|
6
10
|
@include pf-theme-dark--t-dark;
|
package/components/Page/page.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.pf-c-page__main-section[class*=pf-m-dark-], .pf-c-page__sidebar-body.pf-m-menu .pf-c-context-selector, .pf-c-page__header {
|
|
11
|
+
.pf-c-page__main-section[class*=pf-m-dark-], .pf-c-page__sidebar-body.pf-m-menu .pf-c-context-selector, .pf-c-page__sidebar, .pf-c-page__header {
|
|
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);
|
|
@@ -69,6 +69,8 @@
|
|
|
69
69
|
|
|
70
70
|
.pf-c-page {
|
|
71
71
|
--pf-c-page--BackgroundColor: var(--pf-global--BackgroundColor--light-300);
|
|
72
|
+
--pf-c-page--inset: var(--pf-global--spacer--md);
|
|
73
|
+
--pf-c-page--xl--inset: var(--pf-global--spacer--lg);
|
|
72
74
|
--pf-c-page__header--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
|
|
73
75
|
--pf-c-page__header--ZIndex: var(--pf-global--ZIndex--md);
|
|
74
76
|
--pf-c-page__header--MinHeight: 4.75rem;
|
|
@@ -115,10 +117,10 @@
|
|
|
115
117
|
--pf-c-page__sidebar--TranslateZ: 0;
|
|
116
118
|
--pf-c-page__sidebar--m-expanded--TranslateX: 0;
|
|
117
119
|
--pf-c-page__sidebar--xl--TranslateX: 0;
|
|
118
|
-
--pf-c-page__sidebar-body--
|
|
119
|
-
--pf-c-page__sidebar-body--
|
|
120
|
-
--pf-c-page__sidebar-body--m-
|
|
121
|
-
--pf-c-page__sidebar-body--m-
|
|
120
|
+
--pf-c-page__sidebar-body--PaddingRight: 0;
|
|
121
|
+
--pf-c-page__sidebar-body--PaddingLeft: 0;
|
|
122
|
+
--pf-c-page__sidebar-body--m-page-insets--PaddingRight: var(--pf-c-page--inset);
|
|
123
|
+
--pf-c-page__sidebar-body--m-page-insets--PaddingLeft: var(--pf-c-page--inset);
|
|
122
124
|
--pf-c-page__sidebar-body--m-menu--BorderTopColor: var(--pf-global--BackgroundColor--dark-200);
|
|
123
125
|
--pf-c-page__sidebar-body--m-menu--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
124
126
|
--pf-c-page__sidebar-body--m-menu--c-context-selector--BorderBottomColor: var(--pf-global--BackgroundColor--dark-200);
|
|
@@ -189,6 +191,7 @@
|
|
|
189
191
|
@media (min-width: 1200px) {
|
|
190
192
|
.pf-c-page {
|
|
191
193
|
--pf-c-page__header-brand--PaddingLeft: var(--pf-c-page__header-brand--xl--PaddingLeft);
|
|
194
|
+
--pf-c-page--inset: var(--pf-c-page--xl--inset);
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
@media screen and (min-width: 1200px) {
|
|
@@ -374,7 +377,10 @@
|
|
|
374
377
|
}
|
|
375
378
|
|
|
376
379
|
.pf-c-page__sidebar {
|
|
380
|
+
color: var(--pf-global--Color--100);
|
|
377
381
|
z-index: var(--pf-c-page__sidebar--ZIndex);
|
|
382
|
+
display: flex;
|
|
383
|
+
flex-direction: column;
|
|
378
384
|
grid-area: nav;
|
|
379
385
|
grid-row-start: 2;
|
|
380
386
|
grid-column-start: 1;
|
|
@@ -406,12 +412,13 @@
|
|
|
406
412
|
}
|
|
407
413
|
|
|
408
414
|
.pf-c-page__sidebar-body {
|
|
409
|
-
padding-
|
|
410
|
-
padding-
|
|
415
|
+
padding-right: var(--pf-c-page__sidebar-body--PaddingRight);
|
|
416
|
+
padding-left: var(--pf-c-page__sidebar-body--PaddingLeft);
|
|
417
|
+
}
|
|
418
|
+
.pf-c-page__sidebar-body:last-child {
|
|
419
|
+
flex-grow: 1;
|
|
411
420
|
}
|
|
412
421
|
.pf-c-page__sidebar-body.pf-m-menu {
|
|
413
|
-
--pf-c-page__sidebar-body--PaddingTop: var(--pf-c-page__sidebar-body--m-menu--PaddingTop);
|
|
414
|
-
--pf-c-page__sidebar-body--PaddingBottom: var(--pf-c-page__sidebar-body--m-menu--PaddingBottom);
|
|
415
422
|
background-color: var(--pf-global--palette--black-900);
|
|
416
423
|
border-top: var(--pf-c-page__sidebar-body--m-menu--BorderTopWidth) solid var(--pf-c-page__sidebar-body--m-menu--BorderTopColor);
|
|
417
424
|
}
|
|
@@ -427,6 +434,20 @@
|
|
|
427
434
|
color: var(--pf-global--Color--100);
|
|
428
435
|
width: 100%;
|
|
429
436
|
}
|
|
437
|
+
.pf-c-page__sidebar-body.pf-m-page-insets {
|
|
438
|
+
--pf-c-page__sidebar-body--PaddingRight: var(--pf-c-page__sidebar-body--m-page-insets--PaddingRight);
|
|
439
|
+
--pf-c-page__sidebar-body--PaddingLeft: var(--pf-c-page__sidebar-body--m-page-insets--PaddingLeft);
|
|
440
|
+
}
|
|
441
|
+
.pf-c-page__sidebar-body.pf-m-inset-none {
|
|
442
|
+
--pf-c-page__sidebar-body--PaddingRight: 0;
|
|
443
|
+
--pf-c-page__sidebar-body--PaddingLeft: 0;
|
|
444
|
+
}
|
|
445
|
+
.pf-c-page__sidebar-body.pf-m-fill {
|
|
446
|
+
flex-grow: 1;
|
|
447
|
+
}
|
|
448
|
+
.pf-c-page__sidebar-body.pf-m-no-fill {
|
|
449
|
+
flex-grow: 0;
|
|
450
|
+
}
|
|
430
451
|
|
|
431
452
|
.pf-c-page__main-nav.pf-m-limit-width,
|
|
432
453
|
.pf-c-page__main-breadcrumb.pf-m-limit-width,
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
// stylelint-disable
|
|
1
2
|
$pf-c-page--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
2
3
|
$pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
|
|
4
|
+
// stylelint-enable
|
|
3
5
|
|
|
4
6
|
// URL.com/guidelines#layout
|
|
5
7
|
.pf-c-page {
|
|
6
8
|
--pf-c-page--BackgroundColor: var(--pf-global--BackgroundColor--light-300);
|
|
9
|
+
--pf-c-page--inset: var(--pf-global--spacer--md);
|
|
10
|
+
--pf-c-page--xl--inset: var(--pf-global--spacer--lg);
|
|
7
11
|
|
|
8
12
|
// Header
|
|
9
13
|
--pf-c-page__header--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
|
|
@@ -17,6 +21,7 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
|
|
|
17
21
|
|
|
18
22
|
@media (min-width: $pf-global--breakpoint--xl) {
|
|
19
23
|
--pf-c-page__header-brand--PaddingLeft: var(--pf-c-page__header-brand--xl--PaddingLeft);
|
|
24
|
+
--pf-c-page--inset: var(--pf-c-page--xl--inset);
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
// Toggle
|
|
@@ -84,10 +89,10 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
|
|
|
84
89
|
--pf-c-page__sidebar--xl--TranslateX: 0;
|
|
85
90
|
|
|
86
91
|
// Sidebar body
|
|
87
|
-
--pf-c-page__sidebar-body--
|
|
88
|
-
--pf-c-page__sidebar-body--
|
|
89
|
-
--pf-c-page__sidebar-body--m-
|
|
90
|
-
--pf-c-page__sidebar-body--m-
|
|
92
|
+
--pf-c-page__sidebar-body--PaddingRight: 0;
|
|
93
|
+
--pf-c-page__sidebar-body--PaddingLeft: 0;
|
|
94
|
+
--pf-c-page__sidebar-body--m-page-insets--PaddingRight: var(--pf-c-page--inset);
|
|
95
|
+
--pf-c-page__sidebar-body--m-page-insets--PaddingLeft: var(--pf-c-page--inset);
|
|
91
96
|
--pf-c-page__sidebar-body--m-menu--BorderTopColor: var(--pf-global--BackgroundColor--dark-200);
|
|
92
97
|
--pf-c-page__sidebar-body--m-menu--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
93
98
|
--pf-c-page__sidebar-body--m-menu--c-context-selector--BorderBottomColor: var(--pf-global--BackgroundColor--dark-200);
|
|
@@ -386,7 +391,11 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
|
|
|
386
391
|
|
|
387
392
|
// Sidebar
|
|
388
393
|
.pf-c-page__sidebar {
|
|
394
|
+
@include pf-t-dark;
|
|
395
|
+
|
|
389
396
|
z-index: var(--pf-c-page__sidebar--ZIndex);
|
|
397
|
+
display: flex;
|
|
398
|
+
flex-direction: column;
|
|
390
399
|
grid-area: nav;
|
|
391
400
|
grid-row-start: 2;
|
|
392
401
|
grid-column-start: 1;
|
|
@@ -427,13 +436,14 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
|
|
|
427
436
|
}
|
|
428
437
|
|
|
429
438
|
.pf-c-page__sidebar-body {
|
|
430
|
-
padding-
|
|
431
|
-
padding-
|
|
439
|
+
padding-right: var(--pf-c-page__sidebar-body--PaddingRight);
|
|
440
|
+
padding-left: var(--pf-c-page__sidebar-body--PaddingLeft);
|
|
432
441
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
442
|
+
&:last-child {
|
|
443
|
+
flex-grow: 1;
|
|
444
|
+
}
|
|
436
445
|
|
|
446
|
+
&.pf-m-menu {
|
|
437
447
|
background-color: var(--pf-global--palette--black-900);
|
|
438
448
|
border-top: var(--pf-c-page__sidebar-body--m-menu--BorderTopWidth) solid var(--pf-c-page__sidebar-body--m-menu--BorderTopColor);
|
|
439
449
|
|
|
@@ -453,6 +463,24 @@ $pf-c-page--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg"
|
|
|
453
463
|
width: 100%;
|
|
454
464
|
}
|
|
455
465
|
}
|
|
466
|
+
|
|
467
|
+
&.pf-m-page-insets {
|
|
468
|
+
--pf-c-page__sidebar-body--PaddingRight: var(--pf-c-page__sidebar-body--m-page-insets--PaddingRight);
|
|
469
|
+
--pf-c-page__sidebar-body--PaddingLeft: var(--pf-c-page__sidebar-body--m-page-insets--PaddingLeft);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
&.pf-m-inset-none {
|
|
473
|
+
--pf-c-page__sidebar-body--PaddingRight: 0;
|
|
474
|
+
--pf-c-page__sidebar-body--PaddingLeft: 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
&.pf-m-fill {
|
|
478
|
+
flex-grow: 1;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
&.pf-m-no-fill {
|
|
482
|
+
flex-grow: 0;
|
|
483
|
+
}
|
|
456
484
|
}
|
|
457
485
|
|
|
458
486
|
.pf-c-page__main-nav,
|
|
@@ -27,7 +27,6 @@ cssPrefix: pf-c-about-modal-box
|
|
|
27
27
|
<div class="pf-c-about-modal-box__header">
|
|
28
28
|
<h1 class="pf-c-title pf-m-4xl" id="about-modal-title">Product name</h1>
|
|
29
29
|
</div>
|
|
30
|
-
<div class="pf-c-about-modal-box__hero"></div>
|
|
31
30
|
<div class="pf-c-about-modal-box__content">
|
|
32
31
|
<div class="pf-c-about-modal-box__body">content</div>
|
|
33
32
|
<p
|
|
@@ -46,6 +45,14 @@ cssPrefix: pf-c-about-modal-box
|
|
|
46
45
|
| -- | -- | -- |
|
|
47
46
|
| `aria-label="Close Dialog"` | `.pf-c-modal-box__close .pf-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required** |
|
|
48
47
|
|
|
48
|
+
### Customizing the background image
|
|
49
|
+
|
|
50
|
+
In order to use a custom image, pass a new value to the `--pf-c-about-modal-box--BackgroundImage` CSS variable. For example:
|
|
51
|
+
|
|
52
|
+
```css
|
|
53
|
+
--pf-c-about-modal-box--BackgroundImage: url("custom/image/path");
|
|
54
|
+
```
|
|
55
|
+
|
|
49
56
|
### Usage
|
|
50
57
|
|
|
51
58
|
| Class | Applied to | Outcome |
|
|
@@ -55,7 +62,6 @@ cssPrefix: pf-c-about-modal-box
|
|
|
55
62
|
| `.pf-c-about-modal-box__brand-image` | `<img>` | Initiates a modal box brand image. |
|
|
56
63
|
| `.pf-c-about-modal-box__close` | `<div>` | Initiates a modal box close cell. |
|
|
57
64
|
| `.pf-c-about-modal-box__header` | `<div>`, `<header>` | Initiates a modal box header cell. |
|
|
58
|
-
| `.pf-c-about-modal-box__hero` | `<div>` | Initiates a modal box hero cell. |
|
|
59
65
|
| `.pf-c-about-modal-box__content` | `<div>` | Initiates a modal box content cell. |
|
|
60
66
|
| `.pf-c-about-modal-box__body` | `<div>` | Initiates a modal box body cell. |
|
|
61
67
|
| `.pf-c-about-modal-box__strapline` | `<p>` | Initiates a modal box strapline cell. |
|
|
@@ -7,30 +7,7 @@ cssPrefix: pf-c-background-image
|
|
|
7
7
|
### Basic
|
|
8
8
|
|
|
9
9
|
```html isFullscreen
|
|
10
|
-
<div class="pf-c-background-image">
|
|
11
|
-
<svg
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
class="pf-c-background-image__filter"
|
|
14
|
-
width="0"
|
|
15
|
-
height="0"
|
|
16
|
-
>
|
|
17
|
-
<filter id="image_overlay">
|
|
18
|
-
<feColorMatrix
|
|
19
|
-
type="matrix"
|
|
20
|
-
values="1 0 0 0 0
|
|
21
|
-
1 0 0 0 0
|
|
22
|
-
1 0 0 0 0
|
|
23
|
-
0 0 0 1 0"
|
|
24
|
-
/>
|
|
25
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
26
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
27
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
28
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
29
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
30
|
-
</feComponentTransfer>
|
|
31
|
-
</filter>
|
|
32
|
-
</svg>
|
|
33
|
-
</div>
|
|
10
|
+
<div class="pf-c-background-image"></div>
|
|
34
11
|
|
|
35
12
|
```
|
|
36
13
|
|
|
@@ -38,11 +15,18 @@ cssPrefix: pf-c-background-image
|
|
|
38
15
|
|
|
39
16
|
### Overview
|
|
40
17
|
|
|
41
|
-
This component puts an image on the background
|
|
18
|
+
This component puts an image on the background.
|
|
19
|
+
|
|
20
|
+
### Customizing the background image
|
|
21
|
+
|
|
22
|
+
In order to use a custom image, pass a new value to the `--pf-c-background-image--BackgroundImage` CSS variable. For example:
|
|
23
|
+
|
|
24
|
+
```css
|
|
25
|
+
--pf-c-background-image--BackgroundImage: url("custom/image/path");
|
|
26
|
+
```
|
|
42
27
|
|
|
43
28
|
### Usage
|
|
44
29
|
|
|
45
30
|
| Class | Applied to | Outcome |
|
|
46
31
|
| -- | -- | -- |
|
|
47
32
|
| `.pf-c-background-image` | `*` | A fixed background image is applied to the background of the page. |
|
|
48
|
-
| `.pf-c-background-image__filter` | `*` | The inline svg that provides the filter for the background image. |
|