@patternfly/patternfly 6.3.0-prerelease.75 → 6.3.0-prerelease.77
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/components/CalendarMonth/calendar-month.css +23 -8
- package/components/CalendarMonth/calendar-month.scss +26 -8
- package/components/Card/card.css +2 -0
- package/components/Card/card.scss +2 -0
- package/components/Divider/divider.css +2 -0
- package/components/Divider/divider.scss +2 -0
- package/components/Drawer/drawer.css +3 -1
- package/components/Drawer/drawer.scss +4 -1
- package/components/Page/page.css +9 -5
- package/components/Page/page.scss +8 -5
- package/components/Progress/progress.css +9 -0
- package/components/Progress/progress.scss +11 -0
- package/components/Switch/switch.css +7 -1
- package/components/Switch/switch.scss +7 -1
- package/components/_index.css +55 -15
- package/docs/demos/CardView/examples/CardView.md +81 -85
- package/package.json +1 -1
- package/patternfly-no-globals.css +55 -15
- package/patternfly.css +55 -15
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -46,12 +46,14 @@
|
|
|
46
46
|
--pf-v6-c-calendar-month__dates-cell--m-adjacent-month__date--Color: var(--pf-t--global--text--color--subtle);
|
|
47
47
|
--pf-v6-c-calendar-month__date--Width: 4ch;
|
|
48
48
|
--pf-v6-c-calendar-month__date--Height: 4ch;
|
|
49
|
+
--pf-v6-c-calendar-month__date--BorderWidth: 0;
|
|
50
|
+
--pf-v6-c-calendar-month__date--BorderColor: transparent;
|
|
49
51
|
--pf-v6-c-calendar-month__date--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
50
52
|
--pf-v6-c-calendar-month__date--Color: var(--pf-t--global--text--color--regular);
|
|
51
53
|
--pf-v6-c-calendar-month__date--BackgroundColor: transparent;
|
|
52
54
|
--pf-v6-c-calendar-month__date--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
53
55
|
--pf-v6-c-calendar-month__date--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
54
|
-
--pf-v6-c-calendar-month__date--after--BorderWidth:
|
|
56
|
+
--pf-v6-c-calendar-month__date--after--BorderWidth: 0;
|
|
55
57
|
--pf-v6-c-calendar-month__date--after--BorderColor: transparent;
|
|
56
58
|
--pf-v6-c-calendar-month__date--after--OutlineOffset: 0;
|
|
57
59
|
--pf-v6-c-calendar-month__date--hover--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
@@ -60,9 +62,12 @@
|
|
|
60
62
|
--pf-v6-c-calendar-month__date--focus--Color: var(--pf-t--global--icon--color--on-brand--clicked);
|
|
61
63
|
--pf-v6-c-calendar-month__date--focus--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
62
64
|
--pf-v6-c-calendar-month__date--focus--after--BorderColor: var(--pf-t--global--border--color--hover);
|
|
65
|
+
--pf-v6-c-calendar-month__date--focus--after--BorderWidth: var(--pf-t--global--border--width--regular);
|
|
63
66
|
--pf-v6-c-calendar-month__date--after--focus--OutlineOffset: -2px;
|
|
64
|
-
--pf-v6-c-calendar-month__dates-cell--m-current__date--
|
|
65
|
-
--pf-v6-c-calendar-month__dates-cell--m-current__date--
|
|
67
|
+
--pf-v6-c-calendar-month__dates-cell--m-current__date--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
68
|
+
--pf-v6-c-calendar-month__dates-cell--m-current__date--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
69
|
+
--pf-v6-c-calendar-month__dates-cell--m-selected__date--BorderWidth: var(--pf-t--global--border--width--high-contrast--strong);
|
|
70
|
+
--pf-v6-c-calendar-month__dates-cell--m-selected__date--BorderColor: transparent;
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
.pf-v6-c-calendar-month {
|
|
@@ -143,8 +148,8 @@
|
|
|
143
148
|
}
|
|
144
149
|
.pf-v6-c-calendar-month__dates-cell.pf-m-current {
|
|
145
150
|
--pf-v6-c-calendar-month__date--BackgroundColor: var(--pf-v6-c-calendar-month__dates-cell--m-current__date--BackgroundColor);
|
|
146
|
-
--pf-v6-c-calendar-month__date--
|
|
147
|
-
--pf-v6-c-calendar-month__date--
|
|
151
|
+
--pf-v6-c-calendar-month__date--BorderWidth: var(--pf-v6-c-calendar-month__dates-cell--m-current__date--BorderWidth);
|
|
152
|
+
--pf-v6-c-calendar-month__date--BorderColor: var(--pf-v6-c-calendar-month__dates-cell--m-current__date--BorderColor);
|
|
148
153
|
}
|
|
149
154
|
.pf-v6-c-calendar-month__dates-cell.pf-m-in-range {
|
|
150
155
|
--pf-v6-c-calendar-month__dates-cell--after--BorderBlockStartWidth: var(--pf-v6-c-calendar-month__dates-cell--m-in-range--after--BorderBlockStartWidth);
|
|
@@ -167,8 +172,10 @@
|
|
|
167
172
|
.pf-v6-c-calendar-month__dates-cell.pf-m-selected {
|
|
168
173
|
--pf-v6-c-calendar-month__date--BackgroundColor: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--BackgroundColor);
|
|
169
174
|
--pf-v6-c-calendar-month__date--Color: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--Color);
|
|
175
|
+
--pf-v6-c-calendar-month__date--BorderWidth: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--BorderWidth);
|
|
176
|
+
--pf-v6-c-calendar-month__date--BorderColor: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--BorderColor);
|
|
170
177
|
--pf-v6-c-calendar-month__date--hover--BackgroundColor: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--hover--BackgroundColor);
|
|
171
|
-
--pf-v6-c-calendar-month__date--hover--BorderWidth:
|
|
178
|
+
--pf-v6-c-calendar-month__date--hover--BorderWidth: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--BorderWidth);
|
|
172
179
|
--pf-v6-c-calendar-month__date--focus--BackgroundColor: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--focus--BackgroundColor);
|
|
173
180
|
--pf-v6-c-calendar-month__date--focus--after--BorderColor: var(--pf-v6-c-calendar-month__dates-cell--m-selected__date--focus--after--BorderColor);
|
|
174
181
|
--pf-v6-c-calendar-month__date--after--OutlineOffset: var(--pf-v6-c-calendar-month__date--after--focus--OutlineOffset);
|
|
@@ -192,6 +199,12 @@
|
|
|
192
199
|
background-color: var(--pf-v6-c-calendar-month__date--BackgroundColor);
|
|
193
200
|
border: 0;
|
|
194
201
|
}
|
|
202
|
+
.pf-v6-c-calendar-month__date::before {
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset: 0;
|
|
205
|
+
content: "";
|
|
206
|
+
border: var(--pf-v6-c-calendar-month__date--BorderWidth) solid var(--pf-v6-c-calendar-month__date--BorderColor);
|
|
207
|
+
}
|
|
195
208
|
.pf-v6-c-calendar-month__date::after {
|
|
196
209
|
position: absolute;
|
|
197
210
|
inset-block-start: var(--pf-v6-c-calendar-month__date--after--OutlineOffset);
|
|
@@ -201,15 +214,17 @@
|
|
|
201
214
|
content: "";
|
|
202
215
|
border: var(--pf-v6-c-calendar-month__date--after--BorderWidth) solid var(--pf-v6-c-calendar-month__date--after--BorderColor);
|
|
203
216
|
}
|
|
204
|
-
.pf-v6-c-calendar-month__date, .pf-v6-c-calendar-month__date::after {
|
|
217
|
+
.pf-v6-c-calendar-month__date, .pf-v6-c-calendar-month__date::before, .pf-v6-c-calendar-month__date::after {
|
|
205
218
|
border-radius: var(--pf-v6-c-calendar-month__date--BorderRadius);
|
|
206
219
|
}
|
|
207
220
|
.pf-v6-c-calendar-month__date:hover, .pf-v6-c-calendar-month__date.pf-m-hover {
|
|
208
221
|
--pf-v6-c-calendar-month__date--BackgroundColor: var(--pf-v6-c-calendar-month__date--hover--BackgroundColor);
|
|
209
|
-
|
|
222
|
+
--pf-v6-c-calendar-month__date--BorderWidth: var(--pf-v6-c-calendar-month__date--hover--BorderWidth);
|
|
223
|
+
--pf-v6-c-calendar-month__date--BorderColor: var(--pf-v6-c-calendar-month__date--hover--BorderColor);
|
|
210
224
|
}
|
|
211
225
|
.pf-v6-c-calendar-month__date:focus, .pf-v6-c-calendar-month__date.pf-m-focus {
|
|
212
226
|
--pf-v6-c-calendar-month__date--after--BorderColor: var(--pf-v6-c-calendar-month__date--focus--after--BorderColor);
|
|
227
|
+
--pf-v6-c-calendar-month__date--after--BorderWidth: var(--pf-v6-c-calendar-month__date--focus--after--BorderWidth);
|
|
213
228
|
outline: 0;
|
|
214
229
|
}
|
|
215
230
|
.pf-v6-c-calendar-month__date:disabled {
|
|
@@ -58,12 +58,14 @@
|
|
|
58
58
|
// date button
|
|
59
59
|
--#{$calendar-month}__date--Width: 4ch;
|
|
60
60
|
--#{$calendar-month}__date--Height: 4ch;
|
|
61
|
+
--#{$calendar-month}__date--BorderWidth: 0;
|
|
62
|
+
--#{$calendar-month}__date--BorderColor: transparent;
|
|
61
63
|
--#{$calendar-month}__date--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
62
64
|
--#{$calendar-month}__date--Color: var(--pf-t--global--text--color--regular);
|
|
63
65
|
--#{$calendar-month}__date--BackgroundColor: transparent;
|
|
64
66
|
--#{$calendar-month}__date--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
65
67
|
--#{$calendar-month}__date--disabled--Color: var(--pf-t--global--text--color--on-disabled);
|
|
66
|
-
--#{$calendar-month}__date--after--BorderWidth:
|
|
68
|
+
--#{$calendar-month}__date--after--BorderWidth: 0;
|
|
67
69
|
--#{$calendar-month}__date--after--BorderColor: transparent;
|
|
68
70
|
--#{$calendar-month}__date--after--OutlineOffset: 0;
|
|
69
71
|
--#{$calendar-month}__date--hover--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
@@ -72,9 +74,12 @@
|
|
|
72
74
|
--#{$calendar-month}__date--focus--Color: var(--pf-t--global--icon--color--on-brand--clicked);
|
|
73
75
|
--#{$calendar-month}__date--focus--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
74
76
|
--#{$calendar-month}__date--focus--after--BorderColor: var(--pf-t--global--border--color--hover);
|
|
77
|
+
--#{$calendar-month}__date--focus--after--BorderWidth: var(--pf-t--global--border--width--regular);
|
|
75
78
|
--#{$calendar-month}__date--after--focus--OutlineOffset: -2px;
|
|
76
|
-
--#{$calendar-month}__dates-cell--m-current__date--
|
|
77
|
-
--#{$calendar-month}__dates-cell--m-current__date--
|
|
79
|
+
--#{$calendar-month}__dates-cell--m-current__date--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
80
|
+
--#{$calendar-month}__dates-cell--m-current__date--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
81
|
+
--#{$calendar-month}__dates-cell--m-selected__date--BorderWidth: var(--pf-t--global--border--width--high-contrast--strong);
|
|
82
|
+
--#{$calendar-month}__dates-cell--m-selected__date--BorderColor: transparent;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
.#{$calendar-month} {
|
|
@@ -158,8 +163,8 @@
|
|
|
158
163
|
|
|
159
164
|
&.pf-m-current {
|
|
160
165
|
--#{$calendar-month}__date--BackgroundColor: var(--#{$calendar-month}__dates-cell--m-current__date--BackgroundColor);
|
|
161
|
-
--#{$calendar-month}__date--
|
|
162
|
-
--#{$calendar-month}__date--
|
|
166
|
+
--#{$calendar-month}__date--BorderWidth: var(--#{$calendar-month}__dates-cell--m-current__date--BorderWidth);
|
|
167
|
+
--#{$calendar-month}__date--BorderColor: var(--#{$calendar-month}__dates-cell--m-current__date--BorderColor);
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
&.pf-m-in-range {
|
|
@@ -187,10 +192,12 @@
|
|
|
187
192
|
&.pf-m-selected {
|
|
188
193
|
--#{$calendar-month}__date--BackgroundColor: var(--#{$calendar-month}__dates-cell--m-selected__date--BackgroundColor);
|
|
189
194
|
--#{$calendar-month}__date--Color: var(--#{$calendar-month}__dates-cell--m-selected__date--Color);
|
|
195
|
+
--#{$calendar-month}__date--BorderWidth: var(--#{$calendar-month}__dates-cell--m-selected__date--BorderWidth);
|
|
196
|
+
--#{$calendar-month}__date--BorderColor: var(--#{$calendar-month}__dates-cell--m-selected__date--BorderColor);
|
|
190
197
|
|
|
191
198
|
// tweak the hover styling for a selected date
|
|
192
199
|
--#{$calendar-month}__date--hover--BackgroundColor: var(--#{$calendar-month}__dates-cell--m-selected__date--hover--BackgroundColor);
|
|
193
|
-
--#{$calendar-month}__date--hover--BorderWidth:
|
|
200
|
+
--#{$calendar-month}__date--hover--BorderWidth: var(--#{$calendar-month}__dates-cell--m-selected__date--BorderWidth);
|
|
194
201
|
|
|
195
202
|
// tweak the focus styling for a selected date
|
|
196
203
|
--#{$calendar-month}__date--focus--BackgroundColor: var(--#{$calendar-month}__dates-cell--m-selected__date--focus--BackgroundColor);
|
|
@@ -218,6 +225,15 @@
|
|
|
218
225
|
background-color: var(--#{$calendar-month}__date--BackgroundColor);
|
|
219
226
|
border: 0;
|
|
220
227
|
|
|
228
|
+
// base border
|
|
229
|
+
&::before {
|
|
230
|
+
position: absolute;
|
|
231
|
+
inset: 0;
|
|
232
|
+
content: "";
|
|
233
|
+
border: var(--#{$calendar-month}__date--BorderWidth) solid var(--#{$calendar-month}__date--BorderColor);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// offset focus outline
|
|
221
237
|
&::after {
|
|
222
238
|
position: absolute;
|
|
223
239
|
inset-block-start: var(--#{$calendar-month}__date--after--OutlineOffset);
|
|
@@ -229,6 +245,7 @@
|
|
|
229
245
|
}
|
|
230
246
|
|
|
231
247
|
&,
|
|
248
|
+
&::before,
|
|
232
249
|
&::after {
|
|
233
250
|
border-radius: var(--#{$calendar-month}__date--BorderRadius);
|
|
234
251
|
}
|
|
@@ -236,13 +253,14 @@
|
|
|
236
253
|
&:hover,
|
|
237
254
|
&.pf-m-hover {
|
|
238
255
|
--#{$calendar-month}__date--BackgroundColor: var(--#{$calendar-month}__date--hover--BackgroundColor);
|
|
239
|
-
|
|
240
|
-
|
|
256
|
+
--#{$calendar-month}__date--BorderWidth: var(--#{$calendar-month}__date--hover--BorderWidth);
|
|
257
|
+
--#{$calendar-month}__date--BorderColor: var(--#{$calendar-month}__date--hover--BorderColor);
|
|
241
258
|
}
|
|
242
259
|
|
|
243
260
|
&:focus,
|
|
244
261
|
&.pf-m-focus {
|
|
245
262
|
--#{$calendar-month}__date--after--BorderColor: var(--#{$calendar-month}__date--focus--after--BorderColor);
|
|
263
|
+
--#{$calendar-month}__date--after--BorderWidth: var(--#{$calendar-month}__date--focus--after--BorderWidth);
|
|
246
264
|
|
|
247
265
|
outline: 0;
|
|
248
266
|
}
|
package/components/Card/card.css
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
--pf-v6-c-card--m-display-lg__title--not--last-child--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
|
|
72
72
|
--pf-v6-c-card--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
73
73
|
--pf-v6-c-card--m-secondary--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
74
|
+
--pf-v6-c-card--m-secondary--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
74
75
|
--pf-v6-c-card--m-full-height--Height: 100%;
|
|
75
76
|
--pf-v6-c-card--m-plain--BorderColor: transparent;
|
|
76
77
|
--pf-v6-c-card--m-plain--BackgroundColor: transparent;
|
|
@@ -157,6 +158,7 @@
|
|
|
157
158
|
}
|
|
158
159
|
.pf-v6-c-card.pf-m-secondary {
|
|
159
160
|
--pf-v6-c-card--BorderColor: var(--pf-v6-c-card--m-secondary--BorderColor);
|
|
161
|
+
--pf-v6-c-card--BorderWidth: var(--pf-v6-c-card--m-secondary--BorderWidth);
|
|
160
162
|
--pf-v6-c-card--BackgroundColor: var(--pf-v6-c-card--m-secondary--BackgroundColor);
|
|
161
163
|
}
|
|
162
164
|
.pf-v6-c-card.pf-m-plain {
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
// Secondary
|
|
99
99
|
--#{$card}--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
100
100
|
--#{$card}--m-secondary--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
101
|
+
--#{$card}--m-secondary--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
101
102
|
|
|
102
103
|
// Full height
|
|
103
104
|
--#{$card}--m-full-height--Height: 100%;
|
|
@@ -221,6 +222,7 @@
|
|
|
221
222
|
|
|
222
223
|
&.pf-m-secondary {
|
|
223
224
|
--#{$card}--BorderColor: var(--#{$card}--m-secondary--BorderColor);
|
|
225
|
+
--#{$card}--BorderWidth: var(--#{$card}--m-secondary--BorderWidth);
|
|
224
226
|
--#{$card}--BackgroundColor: var(--#{$card}--m-secondary--BackgroundColor);
|
|
225
227
|
}
|
|
226
228
|
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
flex-basis: var(--pf-v6-c-divider--before--FlexBasis);
|
|
67
67
|
content: "";
|
|
68
68
|
background-color: var(--pf-v6-c-divider--Color);
|
|
69
|
+
border-block-start: var(--pf-v6-c-divider--Size) solid transparent;
|
|
70
|
+
border-inline-start: var(--pf-v6-c-divider--Size) solid transparent;
|
|
69
71
|
}
|
|
70
72
|
.pf-v6-c-divider.pf-m-horizontal {
|
|
71
73
|
flex-direction: row;
|
|
@@ -43,6 +43,8 @@ $pf-v6-c-divider--spacer-map: build-spacer-map("none", "xs", "sm", "md", "lg", "
|
|
|
43
43
|
flex-basis: var(--#{$divider}--before--FlexBasis);
|
|
44
44
|
content: "";
|
|
45
45
|
background-color: var(--#{$divider}--Color);
|
|
46
|
+
border-block-start: var(--#{$divider}--Size) solid transparent;
|
|
47
|
+
border-inline-start: var(--#{$divider}--Size) solid transparent;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
// - Divider horizontal
|
|
@@ -111,7 +111,8 @@
|
|
|
111
111
|
--pf-v6-c-drawer__panel--BoxShadow: none;
|
|
112
112
|
--pf-v6-c-drawer--m-expanded--m-panel-bottom__panel--BoxShadow: var(--pf-t--global--box-shadow--md--top);
|
|
113
113
|
--pf-v6-c-drawer__panel--after--Width: var(--pf-t--global--border--width--high-contrast--regular);
|
|
114
|
-
--pf-v6-c-drawer--m-inline__panel--after--Width:
|
|
114
|
+
--pf-v6-c-drawer--m-inline__panel--after--Width: 0;
|
|
115
|
+
--pf-v6-c-drawer--m-inline__panel--after--md--Width: var(--pf-t--global--border--width--divider--default);
|
|
115
116
|
--pf-v6-c-drawer--m-panel-bottom__panel--after--Height: var(--pf-t--global--border--width--high-contrast--regular);
|
|
116
117
|
--pf-v6-c-drawer__panel--after--BackgroundColor: var(--pf-t--global--border--color--high-contrast);
|
|
117
118
|
--pf-v6-c-drawer--m-inline--m-expanded__panel--after--BackgroundColor: var(--pf-t--global--border--color--default);
|
|
@@ -419,6 +420,7 @@
|
|
|
419
420
|
|
|
420
421
|
@media screen and (min-width: 48rem) {
|
|
421
422
|
.pf-v6-c-drawer {
|
|
423
|
+
--pf-v6-c-drawer--m-inline__panel--after--Width: var(--pf-v6-c-drawer--m-inline__panel--after--md--Width);
|
|
422
424
|
min-width: var(--pf-v6-c-drawer__panel--MinWidth);
|
|
423
425
|
}
|
|
424
426
|
.pf-v6-c-drawer > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
|
|
@@ -169,7 +169,8 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
|
|
|
169
169
|
// Divider
|
|
170
170
|
// TODO remove these variables in a breaking change in favor of setting the border variables directly
|
|
171
171
|
--#{$drawer}__panel--after--Width: var(--pf-t--global--border--width--high-contrast--regular);
|
|
172
|
-
--#{$drawer}--m-inline__panel--after--Width:
|
|
172
|
+
--#{$drawer}--m-inline__panel--after--Width: 0;
|
|
173
|
+
--#{$drawer}--m-inline__panel--after--md--Width: var(--pf-t--global--border--width--divider--default); // TODO this turns on border always for inline
|
|
173
174
|
--#{$drawer}--m-panel-bottom__panel--after--Height: var(--pf-t--global--border--width--high-contrast--regular);
|
|
174
175
|
--#{$drawer}__panel--after--BackgroundColor: var(--pf-t--global--border--color--high-contrast);
|
|
175
176
|
--#{$drawer}--m-inline--m-expanded__panel--after--BackgroundColor: var(--pf-t--global--border--color--default);
|
|
@@ -515,6 +516,8 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
|
|
|
515
516
|
@media screen and (min-width: $pf-v6-global--breakpoint--md) {
|
|
516
517
|
// Default
|
|
517
518
|
.#{$drawer} {
|
|
519
|
+
--#{$drawer}--m-inline__panel--after--Width: var(--#{$drawer}--m-inline__panel--after--md--Width);
|
|
520
|
+
|
|
518
521
|
min-width: var(--#{$drawer}__panel--MinWidth);
|
|
519
522
|
|
|
520
523
|
> .#{$drawer}__main {
|
package/components/Page/page.css
CHANGED
|
@@ -124,6 +124,15 @@
|
|
|
124
124
|
--pf-v6-c-page__sidebar--BorderInlineEndWidth: 0;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
@media screen and (max-width: calc(48rem - 1px)) {
|
|
128
|
+
.pf-v6-c-page {
|
|
129
|
+
--pf-v6-c-page__main-container--MarginInlineStart: var(--pf-v6-c-page__main-container--xs--MarginInlineStart);
|
|
130
|
+
--pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-v6-c-page__main-container--xs--MarginInlineEnd);
|
|
131
|
+
--pf-v6-c-page__main-container--BorderBlockEndWidth: var(--pf-v6-c-page__main-container--xs--BorderBlockEndWidth);
|
|
132
|
+
--pf-v6-c-page__main-container--BorderInlineStartWidth: var(--pf-v6-c-page__main-container--xs--BorderInlineStartWidth);
|
|
133
|
+
--pf-v6-c-page__main-container--BorderInlineEndWidth: var(--pf-v6-c-page__main-container--xs--BorderInlineEndWidth);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
127
136
|
|
|
128
137
|
.pf-v6-c-page {
|
|
129
138
|
display: grid;
|
|
@@ -514,13 +523,8 @@
|
|
|
514
523
|
@media screen and (max-width: calc(48rem - 1px)) {
|
|
515
524
|
.pf-v6-c-page__main-container {
|
|
516
525
|
--pf-v6-c-page__main-container--AlignSelf: var(--pf-v6-c-page__main-container--xs--AlignSelf);
|
|
517
|
-
--pf-v6-c-page__main-container--MarginInlineStart: var(--pf-v6-c-page__main-container--xs--MarginInlineStart);
|
|
518
|
-
--pf-v6-c-page__main-container--MarginInlineEnd: var(--pf-v6-c-page__main-container--xs--MarginInlineEnd);
|
|
519
526
|
--pf-v6-c-page__main-container--MaxHeight: var(--pf-v6-c-page__main-container--xs--MaxHeight);
|
|
520
527
|
--pf-v6-c-page__main-container--BorderRadius: var(--pf-v6-c-page__main-container--xs--BorderRadius);
|
|
521
|
-
--pf-v6-c-page__main-container--BorderBlockEndWidth: var(--pf-v6-c-page__main-container--xs--BorderBlockEndWidth);
|
|
522
|
-
--pf-v6-c-page__main-container--BorderInlineStartWidth: var(--pf-v6-c-page__main-container--xs--BorderInlineStartWidth);
|
|
523
|
-
--pf-v6-c-page__main-container--BorderInlineEndWidth: var(--pf-v6-c-page__main-container--xs--BorderInlineEndWidth);
|
|
524
528
|
}
|
|
525
529
|
}
|
|
526
530
|
|
|
@@ -93,6 +93,14 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
93
93
|
--#{$page}__main-container--xs--BorderInlineStartWidth: 0px; // needs a unit because it's used in calc()
|
|
94
94
|
--#{$page}__main-container--xs--BorderInlineEndWidth: 0px; // needs a unit because it's used in calc()
|
|
95
95
|
|
|
96
|
+
@media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
|
|
97
|
+
--#{$page}__main-container--MarginInlineStart: var(--#{$page}__main-container--xs--MarginInlineStart);
|
|
98
|
+
--#{$page}__main-container--MarginInlineEnd: var(--#{$page}__main-container--xs--MarginInlineEnd);
|
|
99
|
+
--#{$page}__main-container--BorderBlockEndWidth: var(--#{$page}__main-container--xs--BorderBlockEndWidth);
|
|
100
|
+
--#{$page}__main-container--BorderInlineStartWidth: var(--#{$page}__main-container--xs--BorderInlineStartWidth);
|
|
101
|
+
--#{$page}__main-container--BorderInlineEndWidth: var(--#{$page}__main-container--xs--BorderInlineEndWidth);
|
|
102
|
+
}
|
|
103
|
+
|
|
96
104
|
// Main section
|
|
97
105
|
--#{$page}__main-section--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
98
106
|
--#{$page}__main-section--PaddingInlineEnd: var(--pf-t--global--spacer--lg); // This is the intended spacing - the border of the main section will be subtracted
|
|
@@ -408,13 +416,8 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
408
416
|
|
|
409
417
|
@media screen and (max-width: pf-v6-max-width-bp($pf-v6-global--breakpoint--md)) {
|
|
410
418
|
--#{$page}__main-container--AlignSelf: var(--#{$page}__main-container--xs--AlignSelf);
|
|
411
|
-
--#{$page}__main-container--MarginInlineStart: var(--#{$page}__main-container--xs--MarginInlineStart);
|
|
412
|
-
--#{$page}__main-container--MarginInlineEnd: var(--#{$page}__main-container--xs--MarginInlineEnd);
|
|
413
419
|
--#{$page}__main-container--MaxHeight: var(--#{$page}__main-container--xs--MaxHeight);
|
|
414
420
|
--#{$page}__main-container--BorderRadius: var(--#{$page}__main-container--xs--BorderRadius);
|
|
415
|
-
--#{$page}__main-container--BorderBlockEndWidth: var(--#{$page}__main-container--xs--BorderBlockEndWidth);
|
|
416
|
-
--#{$page}__main-container--BorderInlineStartWidth: var(--#{$page}__main-container--xs--BorderInlineStartWidth);
|
|
417
|
-
--#{$page}__main-container--BorderInlineEndWidth: var(--#{$page}__main-container--xs--BorderInlineEndWidth);
|
|
418
421
|
}
|
|
419
422
|
}
|
|
420
423
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
--pf-v6-c-progress__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
11
11
|
--pf-v6-c-progress__indicator--Height: var(--pf-v6-c-progress__bar--Height);
|
|
12
12
|
--pf-v6-c-progress__indicator--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
13
|
+
--pf-v6-c-progress__indicator--BorderWidth: var(--pf-t--global--border--width--high-contrast--extra-strong);
|
|
14
|
+
--pf-v6-c-progress__indicator--BorderColor: transparent;
|
|
13
15
|
--pf-v6-c-progress__helper-text--MarginBlockStart: calc(var(--pf-t--global--spacer--sm) - var(--pf-v6-c-progress--GridGap));
|
|
14
16
|
--pf-v6-c-progress--m-success__indicator--BackgroundColor: var(--pf-t--global--color--status--success--default);
|
|
15
17
|
--pf-v6-c-progress--m-warning__indicator--BackgroundColor: var(--pf-t--global--color--status--warning--default);
|
|
@@ -180,6 +182,13 @@
|
|
|
180
182
|
height: var(--pf-v6-c-progress__indicator--Height);
|
|
181
183
|
background-color: var(--pf-v6-c-progress__indicator--BackgroundColor);
|
|
182
184
|
}
|
|
185
|
+
.pf-v6-c-progress__indicator::before {
|
|
186
|
+
position: absolute;
|
|
187
|
+
inset: 0;
|
|
188
|
+
content: "";
|
|
189
|
+
border: var(--pf-v6-c-progress__indicator--BorderWidth) solid var(--pf-v6-c-progress__indicator--BorderColor);
|
|
190
|
+
border-radius: var(--pf-v6-c-progress__bar--BorderRadius);
|
|
191
|
+
}
|
|
183
192
|
|
|
184
193
|
.pf-v6-c-progress__helper-text {
|
|
185
194
|
grid-row: 3/4;
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
--#{$progress}__status-icon--Color: var(--pf-t--global--icon--color--regular);
|
|
16
16
|
--#{$progress}__indicator--Height: var(--#{$progress}__bar--Height);
|
|
17
17
|
--#{$progress}__indicator--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
18
|
+
--#{$progress}__indicator--BorderWidth: var(--pf-t--global--border--width--high-contrast--extra-strong);
|
|
19
|
+
--#{$progress}__indicator--BorderColor: transparent;
|
|
18
20
|
--#{$progress}__helper-text--MarginBlockStart: calc(var(--pf-t--global--spacer--sm) - var(--#{$progress}--GridGap));
|
|
19
21
|
|
|
20
22
|
// Modifier variables
|
|
@@ -220,6 +222,15 @@
|
|
|
220
222
|
position: absolute; // position absolute to bring above the semi-transparent bar overlay
|
|
221
223
|
height: var(--#{$progress}__indicator--Height);
|
|
222
224
|
background-color: var(--#{$progress}__indicator--BackgroundColor);
|
|
225
|
+
|
|
226
|
+
// for forced colors mode
|
|
227
|
+
&::before {
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset: 0;
|
|
230
|
+
content: "";
|
|
231
|
+
border: var(--#{$progress}__indicator--BorderWidth) solid var(--#{$progress}__indicator--BorderColor);
|
|
232
|
+
border-radius: var(--#{$progress}__bar--BorderRadius);
|
|
233
|
+
}
|
|
223
234
|
}
|
|
224
235
|
|
|
225
236
|
.#{$progress}__helper-text {
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
--pf-v6-c-switch--Height: auto;
|
|
11
11
|
--pf-v6-c-switch__input--checked__toggle--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
12
12
|
--pf-v6-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-v6-c-switch__toggle-icon--Offset));
|
|
13
|
-
--pf-v6-c-switch__input--checked__toggle--
|
|
13
|
+
--pf-v6-c-switch__input--checked__toggle--BorderColor: transparent;
|
|
14
|
+
--pf-v6-c-switch__input--checked__toggle--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
14
15
|
--pf-v6-c-switch__input--checked__label--Color: var(--pf-t--global--text--color--regular);
|
|
15
16
|
--pf-v6-c-switch__input--not-checked__label--Color: var(--pf-t--global--text--color--subtle);
|
|
16
17
|
--pf-v6-c-switch__input--disabled__label--Color: var(--pf-t--global--text--color--disabled);
|
|
17
18
|
--pf-v6-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
19
|
+
--pf-v6-c-switch__input--disabled__toggle--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
18
20
|
--pf-v6-c-switch__input--checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--inverse);
|
|
19
21
|
--pf-v6-c-switch__input--not-checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--subtle);
|
|
20
22
|
--pf-v6-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);
|
|
@@ -29,6 +31,7 @@
|
|
|
29
31
|
--pf-v6-c-switch__toggle--before--Width: calc(var(--pf-v6-c-switch--FontSize) - var(--pf-v6-c-switch__toggle-icon--Offset));
|
|
30
32
|
--pf-v6-c-switch__toggle--before--Height: var(--pf-v6-c-switch__toggle--before--Width);
|
|
31
33
|
--pf-v6-c-switch__toggle--before--InsetInlineStart: calc((var(--pf-v6-c-switch__toggle--Height) - var(--pf-v6-c-switch__toggle--before--Height)) / 2);
|
|
34
|
+
--pf-v6-c-switch__toggle--before--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
32
35
|
--pf-v6-c-switch__toggle--before--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
33
36
|
--pf-v6-c-switch__toggle--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
34
37
|
--pf-v6-c-switch__toggle--before--TransitionDuration: var(--pf-t--global--motion--duration--md);
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
}
|
|
71
74
|
.pf-v6-c-switch__input:checked ~ .pf-v6-c-switch__toggle {
|
|
72
75
|
--pf-v6-c-switch__toggle--BorderWidth: var(--pf-v6-c-switch__input--checked__toggle--BorderWidth);
|
|
76
|
+
--pf-v6-c-switch__toggle--BorderColor: var(--pf-v6-c-switch__input--checked__toggle--BorderColor);
|
|
73
77
|
background-color: var(--pf-v6-c-switch__input--checked__toggle--BackgroundColor);
|
|
74
78
|
}
|
|
75
79
|
.pf-v6-c-switch__input:checked ~ .pf-v6-c-switch__toggle::before {
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
}
|
|
96
100
|
.pf-v6-c-switch__input:disabled ~ .pf-v6-c-switch__toggle {
|
|
97
101
|
--pf-v6-c-switch__toggle-icon--Color: var(--pf-v6-c-switch__input--disabled__toggle-icon--Color);
|
|
102
|
+
--pf-v6-c-switch__toggle--BorderColor: var(--pf-v6-c-switch__input--disabled__toggle--BorderColor);
|
|
98
103
|
cursor: not-allowed;
|
|
99
104
|
background-color: var(--pf-v6-c-switch__input--disabled__toggle--BackgroundColor);
|
|
100
105
|
}
|
|
@@ -119,6 +124,7 @@
|
|
|
119
124
|
height: var(--pf-v6-c-switch__toggle--before--Height);
|
|
120
125
|
content: "";
|
|
121
126
|
background-color: var(--pf-v6-c-switch__input--not-checked__toggle--before--BackgroundColor);
|
|
127
|
+
border: var(--pf-v6-c-switch__toggle--before--BorderWidth) solid transparent;
|
|
122
128
|
border-radius: var(--pf-v6-c-switch__toggle--before--BorderRadius);
|
|
123
129
|
transition: var(--pf-v6-c-switch__toggle--before--Transition);
|
|
124
130
|
transform: translateY(-50%);
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
// Switch input
|
|
20
20
|
--#{$switch}__input--checked__toggle--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
21
21
|
--#{$switch}__input--checked__toggle--before--TranslateX: calc(100% + var(--#{$switch}__toggle-icon--Offset));
|
|
22
|
-
--#{$switch}__input--checked__toggle--
|
|
22
|
+
--#{$switch}__input--checked__toggle--BorderColor: transparent;
|
|
23
|
+
--#{$switch}__input--checked__toggle--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
23
24
|
--#{$switch}__input--checked__label--Color: var(--pf-t--global--text--color--regular);
|
|
24
25
|
--#{$switch}__input--not-checked__label--Color: var(--pf-t--global--text--color--subtle);
|
|
25
26
|
--#{$switch}__input--disabled__label--Color: var(--pf-t--global--text--color--disabled);
|
|
26
27
|
--#{$switch}__input--disabled__toggle--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
28
|
+
--#{$switch}__input--disabled__toggle--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
27
29
|
--#{$switch}__input--checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--inverse);
|
|
28
30
|
--#{$switch}__input--not-checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--subtle);
|
|
29
31
|
--#{$switch}__input--disabled__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
--#{$switch}__toggle--before--Width: calc(var(--#{$switch}--FontSize) - var(--#{$switch}__toggle-icon--Offset));
|
|
41
43
|
--#{$switch}__toggle--before--Height: var(--#{$switch}__toggle--before--Width);
|
|
42
44
|
--#{$switch}__toggle--before--InsetInlineStart: calc((var(--#{$switch}__toggle--Height) - var(--#{$switch}__toggle--before--Height)) / 2);
|
|
45
|
+
--#{$switch}__toggle--before--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
43
46
|
--#{$switch}__toggle--before--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
44
47
|
--#{$switch}__toggle--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
45
48
|
--#{$switch}__toggle--before--TransitionDuration: var(--pf-t--global--motion--duration--md);
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
|
|
89
92
|
~ .#{$switch}__toggle {
|
|
90
93
|
--#{$switch}__toggle--BorderWidth: var(--#{$switch}__input--checked__toggle--BorderWidth);
|
|
94
|
+
--#{$switch}__toggle--BorderColor: var(--#{$switch}__input--checked__toggle--BorderColor);
|
|
91
95
|
|
|
92
96
|
background-color: var(--#{$switch}__input--checked__toggle--BackgroundColor);
|
|
93
97
|
|
|
@@ -125,6 +129,7 @@
|
|
|
125
129
|
|
|
126
130
|
~ .#{$switch}__toggle {
|
|
127
131
|
--#{$switch}__toggle-icon--Color: var(--#{$switch}__input--disabled__toggle-icon--Color);
|
|
132
|
+
--#{$switch}__toggle--BorderColor: var(--#{$switch}__input--disabled__toggle--BorderColor);
|
|
128
133
|
|
|
129
134
|
cursor: not-allowed;
|
|
130
135
|
background-color: var(--#{$switch}__input--disabled__toggle--BackgroundColor);
|
|
@@ -153,6 +158,7 @@
|
|
|
153
158
|
height: var(--#{$switch}__toggle--before--Height);
|
|
154
159
|
content: "";
|
|
155
160
|
background-color: var(--#{$switch}__input--not-checked__toggle--before--BackgroundColor);
|
|
161
|
+
border: var(--#{$switch}__toggle--before--BorderWidth) solid transparent; // for forced color mode
|
|
156
162
|
border-radius: var(--#{$switch}__toggle--before--BorderRadius);
|
|
157
163
|
transition: var(--#{$switch}__toggle--before--Transition); // TODO remove shorthand in breaking change
|
|
158
164
|
transform: translateY(-50%);
|