@patternfly/patternfly 6.5.0-prerelease.86 → 6.5.0-prerelease.88
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/normalize.scss +9 -1
- package/base/patternfly-variables.css +6 -3
- package/base/patternfly-variables.scss +8 -0
- package/base/tokens/tokens-local-felt-glass-dark.scss +5 -0
- package/base/tokens/tokens-local-felt-glass.scss +5 -0
- package/base/tokens/tokens-local-glass-dark.scss +5 -0
- package/base/tokens/tokens-local-glass.scss +6 -0
- package/base/tokens/tokens-local.scss +2 -4
- package/components/Compass/compass.css +26 -22
- package/components/Compass/compass.scss +40 -34
- package/components/Page/page.css +2 -0
- package/components/Page/page.scss +2 -0
- package/components/_index.css +28 -22
- package/docs/components/Compass/examples/Compass.md +42 -35
- package/docs/demos/Compass/examples/Compass.md +8835 -8661
- package/package.json +2 -2
- package/patternfly-base-no-globals.css +6 -3
- package/patternfly-base.css +14 -3
- package/patternfly-no-globals.css +34 -59
- package/patternfly.css +42 -59
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/patternfly.scss +0 -48
package/base/normalize.scss
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
scrollbar-color: var(--pf-t--global--border--color--default) transparent;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
// styling scrollbar color in Safari requires setting max-width and max-height
|
|
13
13
|
*::-webkit-scrollbar-thumb {
|
|
14
14
|
background-color: var(--pf-t--global--border--color--default);
|
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
max-height: var(--pf-t--global--spacer--sm);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
:where(html) {
|
|
28
|
+
background-image: var(--pf-t--global--background--image--default);
|
|
29
|
+
background-repeat: no-repeat;
|
|
30
|
+
background-attachment: fixed;
|
|
31
|
+
background-position: center;
|
|
32
|
+
background-size: cover;
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
:where(
|
|
28
36
|
html,
|
|
29
37
|
body
|
|
@@ -980,9 +980,7 @@
|
|
|
980
980
|
var(--pf-t--global--box-shadow--color--lg--directional);
|
|
981
981
|
--pf-t--global--list-style: disc outside;
|
|
982
982
|
--pf-t--temp--dev--tbd: #BC11E0;
|
|
983
|
-
|
|
984
|
-
:root:where(.pf-v6-theme-glass) {
|
|
985
|
-
--pf-t--global--box-shadow--glass--default: var(--pf-t--global--box-shadow--md);
|
|
983
|
+
--pf-t--global--background--image--default: none;
|
|
986
984
|
}
|
|
987
985
|
|
|
988
986
|
:root:where(.pf-v6-theme-high-contrast) {
|
|
@@ -1701,6 +1699,8 @@
|
|
|
1701
1699
|
--pf-t--global--border--radius--glass--default: var(--pf-t--global--border--radius--medium);
|
|
1702
1700
|
--pf-t--global--border--width--glass--default: var(--pf-t--global--border--width--regular);
|
|
1703
1701
|
--pf-t--global--background--color--floating--secondary--default: var(--pf-t--global--background--color--floating--default);
|
|
1702
|
+
--pf-t--global--background--image--default: var(--pf-t--global--background--image--glass, url("../assets/images/PF-Bkg-Generic-Light.svg"));
|
|
1703
|
+
--pf-t--global--box-shadow--glass--default: var(--pf-t--global--box-shadow--md);
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
1706
|
:root:where(.pf-v6-theme-felt) {
|
|
@@ -1863,6 +1863,7 @@
|
|
|
1863
1863
|
--pf-t--global--color--brand--accent--default: var(--pf-t--global--color--brand--accent--100);
|
|
1864
1864
|
--pf-t--global--color--brand--accent--hover: var(--pf-t--global--color--brand--accent--200);
|
|
1865
1865
|
--pf-t--global--background--color--floating--secondary--default: var(--pf-t--global--background--color--floating--default);
|
|
1866
|
+
--pf-t--global--background--image--default: var(--pf-t--global--background--image--felt--glass, url("../assets/images/Felt-Bkg-Generic-Light.svg"));
|
|
1866
1867
|
}
|
|
1867
1868
|
|
|
1868
1869
|
:root:where(.pf-v6-theme-dark) {
|
|
@@ -2719,6 +2720,7 @@
|
|
|
2719
2720
|
--pf-t--global--border--color--glass--default: var(--pf-t--global--border--color--alt);
|
|
2720
2721
|
--pf-t--global--border--color--subtle: var(--pf-t--global--dark--border--color--50);
|
|
2721
2722
|
--pf-t--global--background--color--floating--secondary--default: var(--pf-t--global--background--color--floating--default);
|
|
2723
|
+
--pf-t--global--background--image--default: var(--pf-t--global--background--image--glass--dark, url("../assets/images/PF-Bkg-Generic-Dark.svg"));
|
|
2722
2724
|
}
|
|
2723
2725
|
|
|
2724
2726
|
:root:where(.pf-v6-theme-dark.pf-v6-theme-felt) {
|
|
@@ -2818,6 +2820,7 @@
|
|
|
2818
2820
|
--pf-t--global--text--color--on-brand--accent--clicked: var(--pf-t--global--text--color--regular);
|
|
2819
2821
|
--pf-t--global--text--color--on-brand--accent--default: var(--pf-t--global--text--color--regular);
|
|
2820
2822
|
--pf-t--global--text--color--on-brand--accent--hover: var(--pf-t--global--text--color--regular);
|
|
2823
|
+
--pf-t--global--background--image--default: var(--pf-t--global--background--image--felt--glass--dark, url("../assets/images/Felt-Bkg-Generic-Dark.svg"));
|
|
2821
2824
|
}
|
|
2822
2825
|
|
|
2823
2826
|
:is(.pf-v6-m-dir-rtl, [dir=rtl]) {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
@use "./tokens/tokens-felt-highcontrast-dark" as felt-highcontrast-dark;
|
|
14
14
|
@use "./tokens/tokens-felt-glass" as felt-glass;
|
|
15
15
|
@use "./tokens/tokens-felt-glass-dark" as felt-glass-dark;
|
|
16
|
+
@use "./tokens/tokens-local-felt-glass-dark" as local-felt-glass-dark;
|
|
17
|
+
@use "./tokens/tokens-local-felt-glass" as local-felt-glass;
|
|
18
|
+
@use "./tokens/tokens-local-glass-dark" as local-glass-dark;
|
|
19
|
+
@use "./tokens/tokens-local-glass" as local-glass;
|
|
16
20
|
|
|
17
21
|
:root {
|
|
18
22
|
@include pf-v6-set-inverse(false);
|
|
@@ -28,6 +32,7 @@
|
|
|
28
32
|
|
|
29
33
|
:root:where(.pf-v6-theme-glass) {
|
|
30
34
|
@include glass.pf-v6-tokens;
|
|
35
|
+
@include local-glass.pf-v6-tokens;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
:root:where(.pf-v6-theme-felt) {
|
|
@@ -40,6 +45,7 @@
|
|
|
40
45
|
|
|
41
46
|
:root:where(.pf-v6-theme-felt.pf-v6-theme-glass) {
|
|
42
47
|
@include felt-glass.pf-v6-tokens;
|
|
48
|
+
@include local-felt-glass.pf-v6-tokens;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
// Dark
|
|
@@ -53,6 +59,7 @@
|
|
|
53
59
|
|
|
54
60
|
:root:where(.pf-v6-theme-dark.pf-v6-theme-glass) {
|
|
55
61
|
@include glass-dark.pf-v6-tokens;
|
|
62
|
+
@include local-glass-dark.pf-v6-tokens;
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
:root:where(.pf-v6-theme-dark.pf-v6-theme-felt) {
|
|
@@ -65,6 +72,7 @@
|
|
|
65
72
|
|
|
66
73
|
:root:where(.pf-v6-theme-dark.pf-v6-theme-felt.pf-v6-theme-glass) {
|
|
67
74
|
@include felt-glass-dark.pf-v6-tokens;
|
|
75
|
+
@include local-felt-glass-dark.pf-v6-tokens;
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
// RTL
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
@use '../../sass-utilities/init' as *;
|
|
2
|
+
|
|
3
|
+
@mixin pf-v6-tokens {
|
|
4
|
+
--pf-t--global--background--image--default: var(--pf-t--global--background--image--glass, url("./assets/images/PF-Bkg-Generic-Light.svg"));
|
|
5
|
+
--pf-t--global--box-shadow--glass--default: var(--pf-t--global--box-shadow--md);
|
|
6
|
+
}
|
|
@@ -137,8 +137,6 @@
|
|
|
137
137
|
--pf-t--temp--dev--tbd: #BC11E0;
|
|
138
138
|
// stylelint-enable
|
|
139
139
|
|
|
140
|
-
//
|
|
141
|
-
|
|
142
|
-
--pf-t--global--box-shadow--glass--default: var(--pf-t--global--box-shadow--md);
|
|
143
|
-
}
|
|
140
|
+
// Background images (overridden by glass / felt / dark local token mixins)
|
|
141
|
+
--pf-t--global--background--image--default: none;
|
|
144
142
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.pf-v6-c-compass {
|
|
2
|
-
--pf-v6-c-compass--
|
|
3
|
-
--pf-v6-c-compass--BackgroundImage--light: none;
|
|
4
|
-
--pf-v6-c-compass--BackgroundImage--dark: none;
|
|
2
|
+
--pf-v6-c-compass--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
5
3
|
--pf-v6-c-compass--Padding: var(--pf-t--global--spacer--inset--page-chrome);
|
|
6
4
|
--pf-v6-c-compass--Gap: var(--pf-t--global--spacer--inset--page-chrome);
|
|
7
5
|
--pf-v6-c-compass__nav--RowGap: var(--pf-t--global--spacer--gap--group--vertical);
|
|
@@ -59,7 +57,7 @@
|
|
|
59
57
|
--pf-v6-c-compass--section--TransitionDelay: 0s, var(--pf-v6-c-compass--section--duration), 0s, var(--pf-v6-c-compass--section--duration), var(--pf-v6-c-compass--section--duration), var(--pf-v6-c-compass--section--duration);
|
|
60
58
|
--pf-v6-c-compass--section--m-expanded--TransitionDuration: var(--pf-v6-c-compass--section--m-expanded--duration), 0s, var(--pf-v6-c-compass--section--m-expanded--duration), 0s, 0s, 0s;
|
|
61
59
|
}
|
|
62
|
-
.pf-v6-c-compass.pf-m-animate-smoothly {
|
|
60
|
+
.pf-v6-c-compass.pf-m-animate-smoothly .pf-v6-c-compass__container {
|
|
63
61
|
--pf-v6-c-compass--section--TransitionProperty: opacity, visibility, translate, height, width, margin;
|
|
64
62
|
--pf-v6-c-compass--section--slide--length--header: 10rem;
|
|
65
63
|
--pf-v6-c-compass--section--slide--length--sidebar: var(--pf-t--global--spacer--4xl);
|
|
@@ -70,23 +68,19 @@
|
|
|
70
68
|
--pf-v6-c-compass--section--m-expanded--TransitionDuration: var(--pf-v6-c-compass--section--m-expanded--duration), 0s, var(--pf-v6-c-compass--section--m-expanded--duration), var(--pf-v6-c-compass--section--m-expanded--duration), var(--pf-v6-c-compass--section--m-expanded--duration);
|
|
71
69
|
}
|
|
72
70
|
}
|
|
71
|
+
.pf-v6-c-compass {
|
|
72
|
+
--pf-v6-c-compass--BackgroundColor--glass: transparent;
|
|
73
|
+
}
|
|
74
|
+
:where(.pf-v6-theme-glass) .pf-v6-c-compass {
|
|
75
|
+
--pf-v6-c-compass--BackgroundColor: var(--pf-v6-c-compass--BackgroundColor--glass);
|
|
76
|
+
}
|
|
73
77
|
|
|
74
78
|
.pf-v6-c-compass {
|
|
75
79
|
interpolate-size: allow-keywords;
|
|
76
|
-
display: grid;
|
|
77
|
-
grid-template-areas: "header header header" "sidebar-start main sidebar-end";
|
|
78
|
-
grid-template-rows: auto 1fr;
|
|
79
|
-
grid-template-columns: auto 1fr auto;
|
|
80
|
-
grid-auto-rows: auto;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
80
|
height: 100dvh;
|
|
84
|
-
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
background-image: var(--pf-v6-c-compass--BackgroundImage);
|
|
87
|
-
background-size: cover;
|
|
81
|
+
background-color: var(--pf-v6-c-compass--BackgroundColor);
|
|
88
82
|
}
|
|
89
|
-
.pf-v6-c-compass.pf-m-docked {
|
|
83
|
+
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__container {
|
|
90
84
|
grid-template-areas: "header" "main";
|
|
91
85
|
grid-template-rows: max-content 1fr;
|
|
92
86
|
grid-template-columns: 1fr;
|
|
@@ -96,15 +90,12 @@
|
|
|
96
90
|
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__main {
|
|
97
91
|
padding: var(--pf-v6-c-compass--Padding);
|
|
98
92
|
}
|
|
99
|
-
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-masthead {
|
|
93
|
+
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-compass__container > .pf-v6-c-masthead {
|
|
100
94
|
--pf-v6-c-masthead--BackgroundColor: var(--pf-v6-c-compass--m-docked__masthead--BackgroundColor);
|
|
101
95
|
grid-area: header;
|
|
102
96
|
}
|
|
103
|
-
:root:where(.pf-v6-theme-dark) .pf-v6-c-compass {
|
|
104
|
-
--pf-v6-c-compass--BackgroundImage: var(--pf-v6-c-compass--BackgroundImage--dark);
|
|
105
|
-
}
|
|
106
97
|
@media (min-width: 62rem) {
|
|
107
|
-
.pf-v6-c-compass.pf-m-docked {
|
|
98
|
+
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__container {
|
|
108
99
|
grid-template-areas: "dock main";
|
|
109
100
|
grid-template-rows: auto;
|
|
110
101
|
grid-template-columns: auto 1fr;
|
|
@@ -112,7 +103,7 @@
|
|
|
112
103
|
align-items: stretch;
|
|
113
104
|
padding: 0;
|
|
114
105
|
}
|
|
115
|
-
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-masthead {
|
|
106
|
+
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-compass__container > .pf-v6-c-masthead {
|
|
116
107
|
display: none;
|
|
117
108
|
}
|
|
118
109
|
}
|
|
@@ -172,6 +163,19 @@
|
|
|
172
163
|
}
|
|
173
164
|
}
|
|
174
165
|
|
|
166
|
+
.pf-v6-c-compass__container {
|
|
167
|
+
display: grid;
|
|
168
|
+
grid-template-areas: "header header header" "sidebar-start main sidebar-end";
|
|
169
|
+
grid-template-rows: auto 1fr;
|
|
170
|
+
grid-template-columns: auto 1fr auto;
|
|
171
|
+
grid-auto-rows: auto;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
height: 100%;
|
|
175
|
+
padding: var(--pf-v6-c-compass--Padding);
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
}
|
|
178
|
+
|
|
175
179
|
.pf-v6-c-compass__header,
|
|
176
180
|
.pf-v6-c-compass__sidebar:is(.pf-m-start, .pf-m-end),
|
|
177
181
|
.pf-v6-c-compass__main-footer,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@use '../../sass-utilities' as *;
|
|
2
2
|
|
|
3
3
|
@include pf-root($compass) {
|
|
4
|
-
--#{$compass}--
|
|
5
|
-
--#{$compass}--BackgroundImage--light: none;
|
|
6
|
-
--#{$compass}--BackgroundImage--dark: none;
|
|
4
|
+
--#{$compass}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
7
5
|
--#{$compass}--Padding: var(--pf-t--global--spacer--inset--page-chrome);
|
|
8
6
|
--#{$compass}--Gap: var(--pf-t--global--spacer--inset--page-chrome);
|
|
9
7
|
--#{$compass}__nav--RowGap: var(--pf-t--global--spacer--gap--group--vertical);
|
|
@@ -68,7 +66,7 @@
|
|
|
68
66
|
--#{$compass}--section--TransitionDelay: 0s, var(--#{$compass}--section--duration), 0s, var(--#{$compass}--section--duration), var(--#{$compass}--section--duration), var(--#{$compass}--section--duration);
|
|
69
67
|
--#{$compass}--section--m-expanded--TransitionDuration: var(--#{$compass}--section--m-expanded--duration), 0s, var(--#{$compass}--section--m-expanded--duration), 0s, 0s, 0s;
|
|
70
68
|
|
|
71
|
-
&.pf-m-animate-smoothly {
|
|
69
|
+
&.pf-m-animate-smoothly .#{$compass}__container {
|
|
72
70
|
--#{$compass}--section--TransitionProperty: opacity, visibility, translate, height, width, margin;
|
|
73
71
|
--#{$compass}--section--slide--length--header: 10rem;
|
|
74
72
|
--#{$compass}--section--slide--length--sidebar: var(--pf-t--global--spacer--4xl);
|
|
@@ -79,62 +77,55 @@
|
|
|
79
77
|
--#{$compass}--section--m-expanded--TransitionDuration: var(--#{$compass}--section--m-expanded--duration), 0s, var(--#{$compass}--section--m-expanded--duration), var(--#{$compass}--section--m-expanded--duration), var(--#{$compass}--section--m-expanded--duration);
|
|
80
78
|
}
|
|
81
79
|
}
|
|
80
|
+
|
|
81
|
+
// Glass theme
|
|
82
|
+
--#{$compass}--BackgroundColor--glass: transparent;
|
|
83
|
+
|
|
84
|
+
:where(.pf-v6-theme-glass) & {
|
|
85
|
+
--#{$compass}--BackgroundColor: var(--#{$compass}--BackgroundColor--glass);
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
.#{$compass} {
|
|
85
90
|
// stylelint-disable-next-line
|
|
86
91
|
interpolate-size: allow-keywords;
|
|
87
|
-
display: grid;
|
|
88
|
-
grid-template-areas:
|
|
89
|
-
"header header header"
|
|
90
|
-
"sidebar-start main sidebar-end";
|
|
91
|
-
grid-template-rows: auto 1fr;
|
|
92
|
-
grid-template-columns: auto 1fr auto;
|
|
93
|
-
grid-auto-rows: auto;
|
|
94
|
-
align-items: center;
|
|
95
|
-
justify-content: center;
|
|
96
92
|
height: 100dvh;
|
|
97
|
-
|
|
98
|
-
overflow: hidden;
|
|
99
|
-
background-image: var(--#{$compass}--BackgroundImage);
|
|
100
|
-
background-size: cover;
|
|
93
|
+
background-color: var(--#{$compass}--BackgroundColor);
|
|
101
94
|
|
|
102
95
|
&.pf-m-docked {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
96
|
+
.#{$compass}__container {
|
|
97
|
+
grid-template-areas:
|
|
98
|
+
"header"
|
|
99
|
+
"main";
|
|
100
|
+
grid-template-rows: max-content 1fr;
|
|
101
|
+
grid-template-columns: 1fr;
|
|
102
|
+
align-items: stretch;
|
|
103
|
+
padding: 0;
|
|
104
|
+
}
|
|
110
105
|
|
|
111
106
|
.#{$compass}__main {
|
|
112
107
|
padding: var(--#{$compass}--Padding);
|
|
113
108
|
}
|
|
114
109
|
|
|
115
|
-
> .#{$masthead} {
|
|
110
|
+
> .#{$compass}__container > .#{$masthead} {
|
|
116
111
|
--#{$masthead}--BackgroundColor: var(--#{$compass}--m-docked__masthead--BackgroundColor);
|
|
117
112
|
|
|
118
113
|
grid-area: header;
|
|
119
114
|
}
|
|
120
115
|
}
|
|
121
116
|
|
|
122
|
-
:root:where(.#{$pf-prefix}theme-dark) & {
|
|
123
|
-
--#{$compass}--BackgroundImage: var(--#{$compass}--BackgroundImage--dark);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
117
|
@media (min-width: $pf-v6-global--breakpoint--dock--desktop) {
|
|
127
|
-
&.pf-m-docked {
|
|
118
|
+
&.pf-m-docked .#{$compass}__container {
|
|
128
119
|
grid-template-areas: "dock main";
|
|
129
120
|
grid-template-rows: auto;
|
|
130
121
|
grid-template-columns: auto 1fr;
|
|
131
122
|
row-gap: var(--#{$compass}__main--RowGap);
|
|
132
123
|
align-items: stretch;
|
|
133
124
|
padding: 0;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.pf-m-docked > .#{$compass}__container > .#{$masthead} {
|
|
128
|
+
display: none;
|
|
138
129
|
}
|
|
139
130
|
}
|
|
140
131
|
|
|
@@ -172,6 +163,21 @@
|
|
|
172
163
|
}
|
|
173
164
|
}
|
|
174
165
|
|
|
166
|
+
.#{$compass}__container {
|
|
167
|
+
display: grid;
|
|
168
|
+
grid-template-areas:
|
|
169
|
+
"header header header"
|
|
170
|
+
"sidebar-start main sidebar-end";
|
|
171
|
+
grid-template-rows: auto 1fr;
|
|
172
|
+
grid-template-columns: auto 1fr auto;
|
|
173
|
+
grid-auto-rows: auto;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
height: 100%;
|
|
177
|
+
padding: var(--#{$compass}--Padding);
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
}
|
|
180
|
+
|
|
175
181
|
.#{$compass}__header,
|
|
176
182
|
.#{$compass}__sidebar:is(.pf-m-start, .pf-m-end),
|
|
177
183
|
.#{$compass}__main-footer,
|
package/components/Page/page.css
CHANGED
|
@@ -220,6 +220,7 @@
|
|
|
220
220
|
--pf-v6-c-page__sidebar-main--xl--MarginInlineStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
221
221
|
--pf-v6-c-page__sidebar-main--xl--MarginInlineEnd--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
222
222
|
--pf-v6-c-page__main-container--MarginBlockStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
223
|
+
--pf-v6-c-page__main-container--MaxHeight--glass: calc(100% - var(--pf-t--global--spacer--inset--page-chrome) * 2);
|
|
223
224
|
}
|
|
224
225
|
:where(.pf-v6-theme-glass) .pf-v6-c-page {
|
|
225
226
|
--pf-v6-c-page--BackgroundColor: var(--pf-v6-c-page--BackgroundColor--glass);
|
|
@@ -241,6 +242,7 @@
|
|
|
241
242
|
--pf-v6-c-page__sidebar-main--BorderRadius: var(--pf-v6-c-page__sidebar-main--BorderRadius--glass);
|
|
242
243
|
--pf-v6-c-page__sidebar-main--BoxShadow: var(--pf-v6-c-page__sidebar-main--BoxShadow--glass);
|
|
243
244
|
--pf-v6-c-page__main-container--MarginBlockStart: var(--pf-v6-c-page__main-container--MarginBlockStart--glass);
|
|
245
|
+
--pf-v6-c-page__main-container--MaxHeight: var(--pf-v6-c-page__main-container--MaxHeight--glass);
|
|
244
246
|
}
|
|
245
247
|
@media (min-width: 75rem) {
|
|
246
248
|
.pf-v6-c-page {
|
|
@@ -264,6 +264,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
264
264
|
--#{$page}__sidebar-main--xl--MarginInlineStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
265
265
|
--#{$page}__sidebar-main--xl--MarginInlineEnd--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
266
266
|
--#{$page}__main-container--MarginBlockStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
267
|
+
--#{$page}__main-container--MaxHeight--glass: calc(100% - var(--pf-t--global--spacer--inset--page-chrome) * 2);
|
|
267
268
|
|
|
268
269
|
:where(.pf-v6-theme-glass) & {
|
|
269
270
|
--#{$page}--BackgroundColor: var(--#{$page}--BackgroundColor--glass);
|
|
@@ -285,6 +286,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
285
286
|
--#{$page}__sidebar-main--BorderRadius: var(--#{$page}__sidebar-main--BorderRadius--glass);
|
|
286
287
|
--#{$page}__sidebar-main--BoxShadow: var(--#{$page}__sidebar-main--BoxShadow--glass);
|
|
287
288
|
--#{$page}__main-container--MarginBlockStart: var(--#{$page}__main-container--MarginBlockStart--glass);
|
|
289
|
+
--#{$page}__main-container--MaxHeight: var(--#{$page}__main-container--MaxHeight--glass);
|
|
288
290
|
}
|
|
289
291
|
|
|
290
292
|
@media (min-width: $pf-v6-global--breakpoint--xl) {
|
package/components/_index.css
CHANGED
|
@@ -3683,9 +3683,7 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3683
3683
|
}
|
|
3684
3684
|
|
|
3685
3685
|
.pf-v6-c-compass {
|
|
3686
|
-
--pf-v6-c-compass--
|
|
3687
|
-
--pf-v6-c-compass--BackgroundImage--light: none;
|
|
3688
|
-
--pf-v6-c-compass--BackgroundImage--dark: none;
|
|
3686
|
+
--pf-v6-c-compass--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
3689
3687
|
--pf-v6-c-compass--Padding: var(--pf-t--global--spacer--inset--page-chrome);
|
|
3690
3688
|
--pf-v6-c-compass--Gap: var(--pf-t--global--spacer--inset--page-chrome);
|
|
3691
3689
|
--pf-v6-c-compass__nav--RowGap: var(--pf-t--global--spacer--gap--group--vertical);
|
|
@@ -3743,7 +3741,7 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3743
3741
|
--pf-v6-c-compass--section--TransitionDelay: 0s, var(--pf-v6-c-compass--section--duration), 0s, var(--pf-v6-c-compass--section--duration), var(--pf-v6-c-compass--section--duration), var(--pf-v6-c-compass--section--duration);
|
|
3744
3742
|
--pf-v6-c-compass--section--m-expanded--TransitionDuration: var(--pf-v6-c-compass--section--m-expanded--duration), 0s, var(--pf-v6-c-compass--section--m-expanded--duration), 0s, 0s, 0s;
|
|
3745
3743
|
}
|
|
3746
|
-
.pf-v6-c-compass.pf-m-animate-smoothly {
|
|
3744
|
+
.pf-v6-c-compass.pf-m-animate-smoothly .pf-v6-c-compass__container {
|
|
3747
3745
|
--pf-v6-c-compass--section--TransitionProperty: opacity, visibility, translate, height, width, margin;
|
|
3748
3746
|
--pf-v6-c-compass--section--slide--length--header: 10rem;
|
|
3749
3747
|
--pf-v6-c-compass--section--slide--length--sidebar: var(--pf-t--global--spacer--4xl);
|
|
@@ -3754,23 +3752,19 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3754
3752
|
--pf-v6-c-compass--section--m-expanded--TransitionDuration: var(--pf-v6-c-compass--section--m-expanded--duration), 0s, var(--pf-v6-c-compass--section--m-expanded--duration), var(--pf-v6-c-compass--section--m-expanded--duration), var(--pf-v6-c-compass--section--m-expanded--duration);
|
|
3755
3753
|
}
|
|
3756
3754
|
}
|
|
3755
|
+
.pf-v6-c-compass {
|
|
3756
|
+
--pf-v6-c-compass--BackgroundColor--glass: transparent;
|
|
3757
|
+
}
|
|
3758
|
+
:where(.pf-v6-theme-glass) .pf-v6-c-compass {
|
|
3759
|
+
--pf-v6-c-compass--BackgroundColor: var(--pf-v6-c-compass--BackgroundColor--glass);
|
|
3760
|
+
}
|
|
3757
3761
|
|
|
3758
3762
|
.pf-v6-c-compass {
|
|
3759
3763
|
interpolate-size: allow-keywords;
|
|
3760
|
-
display: grid;
|
|
3761
|
-
grid-template-areas: "header header header" "sidebar-start main sidebar-end";
|
|
3762
|
-
grid-template-rows: auto 1fr;
|
|
3763
|
-
grid-template-columns: auto 1fr auto;
|
|
3764
|
-
grid-auto-rows: auto;
|
|
3765
|
-
align-items: center;
|
|
3766
|
-
justify-content: center;
|
|
3767
3764
|
height: 100dvh;
|
|
3768
|
-
|
|
3769
|
-
overflow: hidden;
|
|
3770
|
-
background-image: var(--pf-v6-c-compass--BackgroundImage);
|
|
3771
|
-
background-size: cover;
|
|
3765
|
+
background-color: var(--pf-v6-c-compass--BackgroundColor);
|
|
3772
3766
|
}
|
|
3773
|
-
.pf-v6-c-compass.pf-m-docked {
|
|
3767
|
+
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__container {
|
|
3774
3768
|
grid-template-areas: "header" "main";
|
|
3775
3769
|
grid-template-rows: max-content 1fr;
|
|
3776
3770
|
grid-template-columns: 1fr;
|
|
@@ -3780,15 +3774,12 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3780
3774
|
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__main {
|
|
3781
3775
|
padding: var(--pf-v6-c-compass--Padding);
|
|
3782
3776
|
}
|
|
3783
|
-
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-masthead {
|
|
3777
|
+
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-compass__container > .pf-v6-c-masthead {
|
|
3784
3778
|
--pf-v6-c-masthead--BackgroundColor: var(--pf-v6-c-compass--m-docked__masthead--BackgroundColor);
|
|
3785
3779
|
grid-area: header;
|
|
3786
3780
|
}
|
|
3787
|
-
:root:where(.pf-v6-theme-dark) .pf-v6-c-compass {
|
|
3788
|
-
--pf-v6-c-compass--BackgroundImage: var(--pf-v6-c-compass--BackgroundImage--dark);
|
|
3789
|
-
}
|
|
3790
3781
|
@media (min-width: 62rem) {
|
|
3791
|
-
.pf-v6-c-compass.pf-m-docked {
|
|
3782
|
+
.pf-v6-c-compass.pf-m-docked .pf-v6-c-compass__container {
|
|
3792
3783
|
grid-template-areas: "dock main";
|
|
3793
3784
|
grid-template-rows: auto;
|
|
3794
3785
|
grid-template-columns: auto 1fr;
|
|
@@ -3796,7 +3787,7 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3796
3787
|
align-items: stretch;
|
|
3797
3788
|
padding: 0;
|
|
3798
3789
|
}
|
|
3799
|
-
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-masthead {
|
|
3790
|
+
.pf-v6-c-compass.pf-m-docked > .pf-v6-c-compass__container > .pf-v6-c-masthead {
|
|
3800
3791
|
display: none;
|
|
3801
3792
|
}
|
|
3802
3793
|
}
|
|
@@ -3856,6 +3847,19 @@ label.pf-v6-c-check, .pf-v6-c-check__label,
|
|
|
3856
3847
|
}
|
|
3857
3848
|
}
|
|
3858
3849
|
|
|
3850
|
+
.pf-v6-c-compass__container {
|
|
3851
|
+
display: grid;
|
|
3852
|
+
grid-template-areas: "header header header" "sidebar-start main sidebar-end";
|
|
3853
|
+
grid-template-rows: auto 1fr;
|
|
3854
|
+
grid-template-columns: auto 1fr auto;
|
|
3855
|
+
grid-auto-rows: auto;
|
|
3856
|
+
align-items: center;
|
|
3857
|
+
justify-content: center;
|
|
3858
|
+
height: 100%;
|
|
3859
|
+
padding: var(--pf-v6-c-compass--Padding);
|
|
3860
|
+
overflow: hidden;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3859
3863
|
.pf-v6-c-compass__header,
|
|
3860
3864
|
.pf-v6-c-compass__sidebar:is(.pf-m-start, .pf-m-end),
|
|
3861
3865
|
.pf-v6-c-compass__main-footer,
|
|
@@ -13877,6 +13881,7 @@ ul.pf-v6-c-list {
|
|
|
13877
13881
|
--pf-v6-c-page__sidebar-main--xl--MarginInlineStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
13878
13882
|
--pf-v6-c-page__sidebar-main--xl--MarginInlineEnd--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
13879
13883
|
--pf-v6-c-page__main-container--MarginBlockStart--glass: var(--pf-t--global--spacer--inset--page-chrome);
|
|
13884
|
+
--pf-v6-c-page__main-container--MaxHeight--glass: calc(100% - var(--pf-t--global--spacer--inset--page-chrome) * 2);
|
|
13880
13885
|
}
|
|
13881
13886
|
:where(.pf-v6-theme-glass) .pf-v6-c-page {
|
|
13882
13887
|
--pf-v6-c-page--BackgroundColor: var(--pf-v6-c-page--BackgroundColor--glass);
|
|
@@ -13898,6 +13903,7 @@ ul.pf-v6-c-list {
|
|
|
13898
13903
|
--pf-v6-c-page__sidebar-main--BorderRadius: var(--pf-v6-c-page__sidebar-main--BorderRadius--glass);
|
|
13899
13904
|
--pf-v6-c-page__sidebar-main--BoxShadow: var(--pf-v6-c-page__sidebar-main--BoxShadow--glass);
|
|
13900
13905
|
--pf-v6-c-page__main-container--MarginBlockStart: var(--pf-v6-c-page__main-container--MarginBlockStart--glass);
|
|
13906
|
+
--pf-v6-c-page__main-container--MaxHeight: var(--pf-v6-c-page__main-container--MaxHeight--glass);
|
|
13901
13907
|
}
|
|
13902
13908
|
@media (min-width: 75rem) {
|
|
13903
13909
|
.pf-v6-c-page {
|
|
@@ -9,7 +9,7 @@ cssPrefix: pf-v6-c-compass
|
|
|
9
9
|
|
|
10
10
|
### Basic
|
|
11
11
|
|
|
12
|
-
In a basic Compass layout, the page structure is defined by the order of elements nested within
|
|
12
|
+
In a basic Compass layout, the page structure is defined by the order of elements nested within `.pf-v6-c-compass__container` (inside `.pf-v6-c-compass`):
|
|
13
13
|
|
|
14
14
|
* **Header:** Content rendered at the top of the page (`.pf-v6-c-compass__header`), typically containing a logo (`.pf-v6-c-compass__logo`), middle navigation (`.pf-v6-c-compass__nav`), and profile (`.pf-v6-c-compass__profile`).
|
|
15
15
|
* **Start sidebar:** Content rendered at the horizontal start of the page (by default, the left side). In this example, a `.pf-v6-c-compass__sidebar` with the `.pf-m-start` modifier.
|
|
@@ -19,36 +19,40 @@ In a basic Compass layout, the page structure is defined by the order of element
|
|
|
19
19
|
|
|
20
20
|
```html isBeta
|
|
21
21
|
<div class="pf-v6-c-compass pf-m-animate-smoothly">
|
|
22
|
-
<div class="pf-v6-c-
|
|
23
|
-
<div class="pf-v6-c-
|
|
22
|
+
<div class="pf-v6-c-compass__container">
|
|
23
|
+
<div class="pf-v6-c-compass__header pf-m-expanded">
|
|
24
|
+
<div class="pf-v6-c-compass__logo">logo</div>
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
<div class="pf-v6-c-compass__nav">
|
|
27
|
+
<div class="pf-v6-c-compass__nav-content">
|
|
28
|
+
<div class="pf-v6-c-compass__nav-home">home</div>
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
<div class="pf-v6-c-compass__nav-main">main</div>
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
<div class="pf-v6-c-compass__nav-search">search</div>
|
|
33
|
+
</div>
|
|
32
34
|
</div>
|
|
35
|
+
<div class="pf-v6-c-compass__profile">profile</div>
|
|
33
36
|
</div>
|
|
34
|
-
<div
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
<div
|
|
38
|
+
class="pf-v6-c-compass__sidebar pf-m-expanded pf-m-start"
|
|
39
|
+
>sidebar (start)</div>
|
|
40
|
+
|
|
41
|
+
<div class="pf-v6-c-compass__main">
|
|
42
|
+
<div class="pf-v6-c-compass__hero">hero</div>
|
|
43
|
+
<div class="pf-v6-c-compass__main-header">
|
|
44
|
+
<div class="pf-v6-c-compass__main-header-content">main header</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="pf-v6-c-compass__content">content</div>
|
|
37
47
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<div class="pf-v6-c-compass__main-header-content">main header</div>
|
|
48
|
+
<div class="pf-v6-c-compass__main-footer pf-m-expanded">
|
|
49
|
+
<div class="pf-v6-c-compass__message-bar">message bar</div>
|
|
50
|
+
</div>
|
|
42
51
|
</div>
|
|
43
|
-
<div class="pf-v6-c-
|
|
52
|
+
<div class="pf-v6-c-compass__sidebar pf-m-expanded pf-m-end">sidebar (end)</div>
|
|
44
53
|
|
|
45
|
-
<div class="pf-v6-c-
|
|
46
|
-
<div class="pf-v6-c-compass__message-bar">message bar</div>
|
|
47
|
-
</div>
|
|
54
|
+
<div class="pf-v6-c-compass__footer pf-m-expanded">footer</div>
|
|
48
55
|
</div>
|
|
49
|
-
<div class="pf-v6-c-compass__sidebar pf-m-expanded pf-m-end">sidebar (end)</div>
|
|
50
|
-
|
|
51
|
-
<div class="pf-v6-c-compass__footer pf-m-expanded">footer</div>
|
|
52
56
|
</div>
|
|
53
57
|
|
|
54
58
|
```
|
|
@@ -57,18 +61,20 @@ In a basic Compass layout, the page structure is defined by the order of element
|
|
|
57
61
|
|
|
58
62
|
```html isBeta
|
|
59
63
|
<div class="pf-v6-c-compass pf-m-animate-smoothly pf-m-docked">
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<div class="pf-v6-c-compass__dock
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<div class="pf-v6-c-compass__main
|
|
69
|
-
<div class="pf-v6-c-compass__main-header
|
|
64
|
+
<div class="pf-v6-c-compass__container">
|
|
65
|
+
<header class="pf-v6-c-masthead pf-m-display-inline">
|
|
66
|
+
<div class="pf-v6-c-masthead__main">masthead main</div>
|
|
67
|
+
<div class="pf-v6-c-masthead__content">masthead content</div>
|
|
68
|
+
</header>
|
|
69
|
+
<div class="pf-v6-c-compass__dock">
|
|
70
|
+
<div class="pf-v6-c-compass__dock-main">dock</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="pf-v6-c-compass__main">
|
|
73
|
+
<div class="pf-v6-c-compass__main-header">
|
|
74
|
+
<div class="pf-v6-c-compass__main-header-content">main header</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="pf-v6-c-compass__content">content</div>
|
|
70
77
|
</div>
|
|
71
|
-
<div class="pf-v6-c-compass__content">content</div>
|
|
72
78
|
</div>
|
|
73
79
|
</div>
|
|
74
80
|
|
|
@@ -80,12 +86,13 @@ In a basic Compass layout, the page structure is defined by the order of element
|
|
|
80
86
|
|
|
81
87
|
| Class | Applied to | Outcome |
|
|
82
88
|
| -- | -- | -- |
|
|
83
|
-
| `.pf-v6-c-compass` | `<div>` |
|
|
89
|
+
| `.pf-v6-c-compass` | `<div>` | Outermost wrapper for the Compass component. Handles background. **Required** |
|
|
90
|
+
| `.pf-v6-c-compass__container` | `<div>` | Grid wrapper for Compass regions. **Required** |
|
|
84
91
|
| `.pf-v6-c-compass__header` | `<div>` | Initiates the Compass header. **Required** |
|
|
85
92
|
| `.pf-v6-c-compass__logo` | `<div>` | Initiates the Compass logo header. |
|
|
86
93
|
| `.pf-v6-c-compass__dock` | `<div>` | Initiates the Compass dock. |
|
|
87
|
-
| `.pf-v6-c-compass__dock-main` | `<div>` | Initiates the Compass dock main wrapper. |
|
|
88
94
|
| `.pf-v6-c-compass__profile` | `<div>` | Initiates the Compass profile. |
|
|
95
|
+
| `.pf-v6-c-compass__dock-main` | `<div>` | Initiates the Compass dock main wrapper. |
|
|
89
96
|
| `.pf-v6-c-compass__sidebar` | `<div>` | Initiates a Compass sidebar. **Required** |
|
|
90
97
|
| `.pf-v6-c-compass__main` | `<div>` | Initiates the Compass main wrapper. **Required** |
|
|
91
98
|
| `.pf-v6-c-compass__main-header` | `<div>` | Initiates the Compass main header. |
|