@patternfly/patternfly 6.0.0-alpha.46 → 6.0.0-alpha.47
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/Button/button.css +3 -1
- package/components/Button/button.scss +3 -1
- package/components/Switch/switch.css +41 -37
- package/components/Switch/switch.scss +47 -42
- package/docs/components/Button/examples/Button.md +29 -2
- package/package.json +1 -1
- package/patternfly-no-globals.css +44 -42
- package/patternfly-theme-dark-unversioned.css +44 -42
- package/patternfly.css +44 -42
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/Switch/themes/dark/switch.scss +0 -11
|
@@ -8129,6 +8129,7 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8129
8129
|
text-align: center;
|
|
8130
8130
|
text-decoration: var(--pf-v5-c-button--TextDecoration);
|
|
8131
8131
|
white-space: nowrap;
|
|
8132
|
+
cursor: pointer;
|
|
8132
8133
|
user-select: none;
|
|
8133
8134
|
background-color: var(--pf-v5-c-button--BackgroundColor);
|
|
8134
8135
|
border: 0;
|
|
@@ -8226,7 +8227,6 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8226
8227
|
display: inline;
|
|
8227
8228
|
text-align: start;
|
|
8228
8229
|
white-space: normal;
|
|
8229
|
-
cursor: pointer;
|
|
8230
8230
|
outline-offset: 0.125rem;
|
|
8231
8231
|
}
|
|
8232
8232
|
.pf-v5-c-button.pf-m-link:where(.pf-m-danger) {
|
|
@@ -8342,7 +8342,9 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8342
8342
|
mix-blend-mode: var(--pf-v5-c-button--m-plain--MixBlendMode);
|
|
8343
8343
|
}
|
|
8344
8344
|
.pf-v5-c-button.pf-m-plain.pf-m-no-padding {
|
|
8345
|
+
min-width: auto;
|
|
8345
8346
|
padding: 0;
|
|
8347
|
+
background-color: transparent;
|
|
8346
8348
|
}
|
|
8347
8349
|
.pf-v5-c-button.pf-m-block {
|
|
8348
8350
|
display: block;
|
|
@@ -25279,40 +25281,44 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25279
25281
|
transform: rotate(720deg);
|
|
25280
25282
|
}
|
|
25281
25283
|
}
|
|
25284
|
+
:root,
|
|
25282
25285
|
.pf-v5-c-switch {
|
|
25283
|
-
--pf-v5-c-switch--FontSize: var(--pf-
|
|
25284
|
-
--pf-v5-c-
|
|
25285
|
-
--pf-v5-c-switch--ColumnGap: var(--pf-v5-c-switch__label--PaddingLeft);
|
|
25286
|
+
--pf-v5-c-switch--FontSize: var(--pf-t--global--font--size--sm);
|
|
25287
|
+
--pf-v5-c-switch--ColumnGap: var(--pf-t--global--spacer--sm);
|
|
25286
25288
|
--pf-v5-c-switch__toggle-icon--FontSize: calc(var(--pf-v5-c-switch--FontSize) * .625);
|
|
25287
|
-
--pf-v5-c-switch__toggle-icon--Color: var(--pf-
|
|
25289
|
+
--pf-v5-c-switch__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--default);
|
|
25288
25290
|
--pf-v5-c-switch__toggle-icon--Left: calc(var(--pf-v5-c-switch--FontSize) * .4);
|
|
25289
25291
|
--pf-v5-c-switch__toggle-icon--Offset: 0.125rem;
|
|
25290
|
-
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-
|
|
25291
|
-
--pf-v5-c-switch--LineHeight: var(--pf-
|
|
25292
|
+
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-t--global--icon--color--disabled);
|
|
25293
|
+
--pf-v5-c-switch--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
25292
25294
|
--pf-v5-c-switch--Height: auto;
|
|
25293
|
-
--pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-
|
|
25295
|
+
--pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
25294
25296
|
--pf-v5-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-v5-c-switch__toggle-icon--Offset));
|
|
25295
|
-
--pf-v5-c-switch__input--
|
|
25296
|
-
--pf-v5-c-switch__input--
|
|
25297
|
-
--pf-v5-c-switch__input--
|
|
25298
|
-
--pf-v5-c-switch__input--
|
|
25299
|
-
--pf-v5-c-switch__input--disabled__toggle--
|
|
25300
|
-
--pf-v5-c-switch__input--
|
|
25301
|
-
--pf-v5-c-switch__input--
|
|
25302
|
-
--pf-v5-c-switch__input--
|
|
25297
|
+
--pf-v5-c-switch__input--checked__toggle--BorderWidth: 0;
|
|
25298
|
+
--pf-v5-c-switch__input--checked__label--Color: var(--pf-t--global--text--color--regular);
|
|
25299
|
+
--pf-v5-c-switch__input--not-checked__label--Color: var(--pf-t--global--text--color--subtle);
|
|
25300
|
+
--pf-v5-c-switch__input--disabled__label--Color: var(--pf-t--global--text--color--disabled);
|
|
25301
|
+
--pf-v5-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
25302
|
+
--pf-v5-c-switch__input--checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--inverse);
|
|
25303
|
+
--pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--subtle);
|
|
25304
|
+
--pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);
|
|
25305
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineWidth: var(--pf-t--global--border--width--strong);
|
|
25306
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineOffset: var(--pf-t--global--spacer--xs);
|
|
25307
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineColor: var(--pf-t--global--color--brand--default);
|
|
25303
25308
|
--pf-v5-c-switch__toggle--Height: calc(var(--pf-v5-c-switch--FontSize) * var(--pf-v5-c-switch--LineHeight));
|
|
25304
|
-
--pf-v5-c-switch__toggle--BackgroundColor: var(--pf-
|
|
25305
|
-
--pf-v5-c-switch__toggle--
|
|
25309
|
+
--pf-v5-c-switch__toggle--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
25310
|
+
--pf-v5-c-switch__toggle--BorderColor: var(--pf-t--global--border--color--default);
|
|
25311
|
+
--pf-v5-c-switch__toggle--BorderWidth: var(--pf-t--global--border--width--control--default);
|
|
25312
|
+
--pf-v5-c-switch__toggle--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
25306
25313
|
--pf-v5-c-switch__toggle--before--Width: calc(var(--pf-v5-c-switch--FontSize) - var(--pf-v5-c-switch__toggle-icon--Offset));
|
|
25307
25314
|
--pf-v5-c-switch__toggle--before--Height: var(--pf-v5-c-switch__toggle--before--Width);
|
|
25308
|
-
--pf-v5-c-switch__toggle--before--
|
|
25309
|
-
--pf-v5-c-switch__toggle--before--
|
|
25310
|
-
--pf-v5-c-switch__toggle--before--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
|
|
25311
|
-
--pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-v5-global--BorderRadius--lg);
|
|
25312
|
-
--pf-v5-c-switch__toggle--before--BoxShadow: var(--pf-v5-global--BoxShadow--md);
|
|
25315
|
+
--pf-v5-c-switch__toggle--before--Left: calc((var(--pf-v5-c-switch__toggle--Height) - var(--pf-v5-c-switch__toggle--before--Height)) / 2);
|
|
25316
|
+
--pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
25313
25317
|
--pf-v5-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
25314
25318
|
--pf-v5-c-switch__toggle--Width: calc(var(--pf-v5-c-switch__toggle--Height) + var(--pf-v5-c-switch__toggle-icon--Offset) + var(--pf-v5-c-switch__toggle--before--Width));
|
|
25315
|
-
|
|
25319
|
+
}
|
|
25320
|
+
|
|
25321
|
+
.pf-v5-c-switch {
|
|
25316
25322
|
position: relative;
|
|
25317
25323
|
display: inline-grid;
|
|
25318
25324
|
grid-template-columns: auto;
|
|
@@ -25345,13 +25351,15 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25345
25351
|
color: var(--pf-v5-c-switch__input--checked__label--Color);
|
|
25346
25352
|
}
|
|
25347
25353
|
.pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle {
|
|
25354
|
+
--pf-v5-c-switch__toggle--BorderWidth: var(--pf-v5-c-switch__input--checked__toggle--BorderWidth);
|
|
25348
25355
|
background-color: var(--pf-v5-c-switch__input--checked__toggle--BackgroundColor);
|
|
25349
25356
|
}
|
|
25350
25357
|
.pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
|
|
25351
|
-
transform:
|
|
25358
|
+
transform: translate(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX), -50%);
|
|
25359
|
+
background-color: var(--pf-v5-c-switch__input--checked__toggle--before--BackgroundColor);
|
|
25352
25360
|
}
|
|
25353
25361
|
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
|
|
25354
|
-
transform:
|
|
25362
|
+
transform: translate(calc(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX) * var(--pf-v5-global--inverse--multiplier)), -50%);
|
|
25355
25363
|
}
|
|
25356
25364
|
|
|
25357
25365
|
.pf-v5-c-switch__input:checked ~ .pf-m-off {
|
|
@@ -25392,16 +25400,23 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25392
25400
|
}
|
|
25393
25401
|
.pf-v5-c-switch__toggle::before {
|
|
25394
25402
|
position: absolute;
|
|
25395
|
-
inset-block-start:
|
|
25403
|
+
inset-block-start: 50%;
|
|
25396
25404
|
inset-inline-start: var(--pf-v5-c-switch__toggle--before--Left);
|
|
25397
25405
|
display: block;
|
|
25398
25406
|
width: var(--pf-v5-c-switch__toggle--before--Width);
|
|
25399
25407
|
height: var(--pf-v5-c-switch__toggle--before--Height);
|
|
25400
25408
|
content: "";
|
|
25401
|
-
background-color: var(--pf-v5-c-
|
|
25409
|
+
background-color: var(--pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor);
|
|
25402
25410
|
border-radius: var(--pf-v5-c-switch__toggle--before--BorderRadius);
|
|
25403
|
-
box-shadow: var(--pf-v5-c-switch__toggle--before--BoxShadow);
|
|
25404
25411
|
transition: var(--pf-v5-c-switch__toggle--before--Transition);
|
|
25412
|
+
transform: translateY(-50%);
|
|
25413
|
+
}
|
|
25414
|
+
.pf-v5-c-switch__toggle::after {
|
|
25415
|
+
position: absolute;
|
|
25416
|
+
inset: 0;
|
|
25417
|
+
content: "";
|
|
25418
|
+
border: var(--pf-v5-c-switch__toggle--BorderWidth) solid var(--pf-v5-c-switch__toggle--BorderColor);
|
|
25419
|
+
border-radius: var(--pf-v5-c-switch__toggle--BorderRadius);
|
|
25405
25420
|
}
|
|
25406
25421
|
|
|
25407
25422
|
.pf-v5-c-switch__toggle-icon {
|
|
@@ -25418,22 +25433,9 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25418
25433
|
.pf-v5-c-switch__label {
|
|
25419
25434
|
display: inline-block;
|
|
25420
25435
|
grid-column: 2;
|
|
25421
|
-
color: var(--pf-v5-c-switch__label--Color);
|
|
25422
25436
|
vertical-align: top;
|
|
25423
25437
|
}
|
|
25424
25438
|
|
|
25425
|
-
:where(.pf-theme-dark) .pf-v5-c-wizard__header .pf-v5-c-button, :where(.pf-theme-dark) .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main .pf-v5-c-button {
|
|
25426
|
-
--pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
|
|
25427
|
-
}
|
|
25428
|
-
|
|
25429
|
-
:where(.pf-theme-dark) .pf-v5-c-switch {
|
|
25430
|
-
--pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-global--BackgroundColor--100);
|
|
25431
|
-
--pf-v5-c-switch__input--not-checked__label--Color: var(--pf-v5-global--Color--100);
|
|
25432
|
-
--pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-v5-global--disabled-color--100);
|
|
25433
|
-
--pf-v5-c-switch__toggle--before--BoxShadow: none;
|
|
25434
|
-
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--disabled-color--100);
|
|
25435
|
-
}
|
|
25436
|
-
|
|
25437
25439
|
:root,
|
|
25438
25440
|
.pf-v5-c-tab-content {
|
|
25439
25441
|
--pf-v5-c-tab-content__body--PaddingTop: 0;
|
package/patternfly.css
CHANGED
|
@@ -8129,6 +8129,7 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8129
8129
|
text-align: center;
|
|
8130
8130
|
text-decoration: var(--pf-v5-c-button--TextDecoration);
|
|
8131
8131
|
white-space: nowrap;
|
|
8132
|
+
cursor: pointer;
|
|
8132
8133
|
user-select: none;
|
|
8133
8134
|
background-color: var(--pf-v5-c-button--BackgroundColor);
|
|
8134
8135
|
border: 0;
|
|
@@ -8226,7 +8227,6 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8226
8227
|
display: inline;
|
|
8227
8228
|
text-align: start;
|
|
8228
8229
|
white-space: normal;
|
|
8229
|
-
cursor: pointer;
|
|
8230
8230
|
outline-offset: 0.125rem;
|
|
8231
8231
|
}
|
|
8232
8232
|
.pf-v5-c-button.pf-m-link:where(.pf-m-danger) {
|
|
@@ -8342,7 +8342,9 @@ button.pf-v5-c-breadcrumb__link {
|
|
|
8342
8342
|
mix-blend-mode: var(--pf-v5-c-button--m-plain--MixBlendMode);
|
|
8343
8343
|
}
|
|
8344
8344
|
.pf-v5-c-button.pf-m-plain.pf-m-no-padding {
|
|
8345
|
+
min-width: auto;
|
|
8345
8346
|
padding: 0;
|
|
8347
|
+
background-color: transparent;
|
|
8346
8348
|
}
|
|
8347
8349
|
.pf-v5-c-button.pf-m-block {
|
|
8348
8350
|
display: block;
|
|
@@ -25279,40 +25281,44 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25279
25281
|
transform: rotate(720deg);
|
|
25280
25282
|
}
|
|
25281
25283
|
}
|
|
25284
|
+
:root,
|
|
25282
25285
|
.pf-v5-c-switch {
|
|
25283
|
-
--pf-v5-c-switch--FontSize: var(--pf-
|
|
25284
|
-
--pf-v5-c-
|
|
25285
|
-
--pf-v5-c-switch--ColumnGap: var(--pf-v5-c-switch__label--PaddingLeft);
|
|
25286
|
+
--pf-v5-c-switch--FontSize: var(--pf-t--global--font--size--sm);
|
|
25287
|
+
--pf-v5-c-switch--ColumnGap: var(--pf-t--global--spacer--sm);
|
|
25286
25288
|
--pf-v5-c-switch__toggle-icon--FontSize: calc(var(--pf-v5-c-switch--FontSize) * .625);
|
|
25287
|
-
--pf-v5-c-switch__toggle-icon--Color: var(--pf-
|
|
25289
|
+
--pf-v5-c-switch__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--default);
|
|
25288
25290
|
--pf-v5-c-switch__toggle-icon--Left: calc(var(--pf-v5-c-switch--FontSize) * .4);
|
|
25289
25291
|
--pf-v5-c-switch__toggle-icon--Offset: 0.125rem;
|
|
25290
|
-
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-
|
|
25291
|
-
--pf-v5-c-switch--LineHeight: var(--pf-
|
|
25292
|
+
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-t--global--icon--color--disabled);
|
|
25293
|
+
--pf-v5-c-switch--LineHeight: var(--pf-t--global--font--line-height--body);
|
|
25292
25294
|
--pf-v5-c-switch--Height: auto;
|
|
25293
|
-
--pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-
|
|
25295
|
+
--pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-t--global--color--brand--default);
|
|
25294
25296
|
--pf-v5-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-v5-c-switch__toggle-icon--Offset));
|
|
25295
|
-
--pf-v5-c-switch__input--
|
|
25296
|
-
--pf-v5-c-switch__input--
|
|
25297
|
-
--pf-v5-c-switch__input--
|
|
25298
|
-
--pf-v5-c-switch__input--
|
|
25299
|
-
--pf-v5-c-switch__input--disabled__toggle--
|
|
25300
|
-
--pf-v5-c-switch__input--
|
|
25301
|
-
--pf-v5-c-switch__input--
|
|
25302
|
-
--pf-v5-c-switch__input--
|
|
25297
|
+
--pf-v5-c-switch__input--checked__toggle--BorderWidth: 0;
|
|
25298
|
+
--pf-v5-c-switch__input--checked__label--Color: var(--pf-t--global--text--color--regular);
|
|
25299
|
+
--pf-v5-c-switch__input--not-checked__label--Color: var(--pf-t--global--text--color--subtle);
|
|
25300
|
+
--pf-v5-c-switch__input--disabled__label--Color: var(--pf-t--global--text--color--disabled);
|
|
25301
|
+
--pf-v5-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
|
|
25302
|
+
--pf-v5-c-switch__input--checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--inverse);
|
|
25303
|
+
--pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--subtle);
|
|
25304
|
+
--pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);
|
|
25305
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineWidth: var(--pf-t--global--border--width--strong);
|
|
25306
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineOffset: var(--pf-t--global--spacer--xs);
|
|
25307
|
+
--pf-v5-c-switch__input--focus__toggle--OutlineColor: var(--pf-t--global--color--brand--default);
|
|
25303
25308
|
--pf-v5-c-switch__toggle--Height: calc(var(--pf-v5-c-switch--FontSize) * var(--pf-v5-c-switch--LineHeight));
|
|
25304
|
-
--pf-v5-c-switch__toggle--BackgroundColor: var(--pf-
|
|
25305
|
-
--pf-v5-c-switch__toggle--
|
|
25309
|
+
--pf-v5-c-switch__toggle--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
25310
|
+
--pf-v5-c-switch__toggle--BorderColor: var(--pf-t--global--border--color--default);
|
|
25311
|
+
--pf-v5-c-switch__toggle--BorderWidth: var(--pf-t--global--border--width--control--default);
|
|
25312
|
+
--pf-v5-c-switch__toggle--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
25306
25313
|
--pf-v5-c-switch__toggle--before--Width: calc(var(--pf-v5-c-switch--FontSize) - var(--pf-v5-c-switch__toggle-icon--Offset));
|
|
25307
25314
|
--pf-v5-c-switch__toggle--before--Height: var(--pf-v5-c-switch__toggle--before--Width);
|
|
25308
|
-
--pf-v5-c-switch__toggle--before--
|
|
25309
|
-
--pf-v5-c-switch__toggle--before--
|
|
25310
|
-
--pf-v5-c-switch__toggle--before--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
|
|
25311
|
-
--pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-v5-global--BorderRadius--lg);
|
|
25312
|
-
--pf-v5-c-switch__toggle--before--BoxShadow: var(--pf-v5-global--BoxShadow--md);
|
|
25315
|
+
--pf-v5-c-switch__toggle--before--Left: calc((var(--pf-v5-c-switch__toggle--Height) - var(--pf-v5-c-switch__toggle--before--Height)) / 2);
|
|
25316
|
+
--pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-t--global--border--radius--large);
|
|
25313
25317
|
--pf-v5-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
25314
25318
|
--pf-v5-c-switch__toggle--Width: calc(var(--pf-v5-c-switch__toggle--Height) + var(--pf-v5-c-switch__toggle-icon--Offset) + var(--pf-v5-c-switch__toggle--before--Width));
|
|
25315
|
-
|
|
25319
|
+
}
|
|
25320
|
+
|
|
25321
|
+
.pf-v5-c-switch {
|
|
25316
25322
|
position: relative;
|
|
25317
25323
|
display: inline-grid;
|
|
25318
25324
|
grid-template-columns: auto;
|
|
@@ -25345,13 +25351,15 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25345
25351
|
color: var(--pf-v5-c-switch__input--checked__label--Color);
|
|
25346
25352
|
}
|
|
25347
25353
|
.pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle {
|
|
25354
|
+
--pf-v5-c-switch__toggle--BorderWidth: var(--pf-v5-c-switch__input--checked__toggle--BorderWidth);
|
|
25348
25355
|
background-color: var(--pf-v5-c-switch__input--checked__toggle--BackgroundColor);
|
|
25349
25356
|
}
|
|
25350
25357
|
.pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
|
|
25351
|
-
transform:
|
|
25358
|
+
transform: translate(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX), -50%);
|
|
25359
|
+
background-color: var(--pf-v5-c-switch__input--checked__toggle--before--BackgroundColor);
|
|
25352
25360
|
}
|
|
25353
25361
|
:where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
|
|
25354
|
-
transform:
|
|
25362
|
+
transform: translate(calc(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX) * var(--pf-v5-global--inverse--multiplier)), -50%);
|
|
25355
25363
|
}
|
|
25356
25364
|
|
|
25357
25365
|
.pf-v5-c-switch__input:checked ~ .pf-m-off {
|
|
@@ -25392,16 +25400,23 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25392
25400
|
}
|
|
25393
25401
|
.pf-v5-c-switch__toggle::before {
|
|
25394
25402
|
position: absolute;
|
|
25395
|
-
inset-block-start:
|
|
25403
|
+
inset-block-start: 50%;
|
|
25396
25404
|
inset-inline-start: var(--pf-v5-c-switch__toggle--before--Left);
|
|
25397
25405
|
display: block;
|
|
25398
25406
|
width: var(--pf-v5-c-switch__toggle--before--Width);
|
|
25399
25407
|
height: var(--pf-v5-c-switch__toggle--before--Height);
|
|
25400
25408
|
content: "";
|
|
25401
|
-
background-color: var(--pf-v5-c-
|
|
25409
|
+
background-color: var(--pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor);
|
|
25402
25410
|
border-radius: var(--pf-v5-c-switch__toggle--before--BorderRadius);
|
|
25403
|
-
box-shadow: var(--pf-v5-c-switch__toggle--before--BoxShadow);
|
|
25404
25411
|
transition: var(--pf-v5-c-switch__toggle--before--Transition);
|
|
25412
|
+
transform: translateY(-50%);
|
|
25413
|
+
}
|
|
25414
|
+
.pf-v5-c-switch__toggle::after {
|
|
25415
|
+
position: absolute;
|
|
25416
|
+
inset: 0;
|
|
25417
|
+
content: "";
|
|
25418
|
+
border: var(--pf-v5-c-switch__toggle--BorderWidth) solid var(--pf-v5-c-switch__toggle--BorderColor);
|
|
25419
|
+
border-radius: var(--pf-v5-c-switch__toggle--BorderRadius);
|
|
25405
25420
|
}
|
|
25406
25421
|
|
|
25407
25422
|
.pf-v5-c-switch__toggle-icon {
|
|
@@ -25418,22 +25433,9 @@ label.pf-v5-c-radio, .pf-v5-c-radio__label,
|
|
|
25418
25433
|
.pf-v5-c-switch__label {
|
|
25419
25434
|
display: inline-block;
|
|
25420
25435
|
grid-column: 2;
|
|
25421
|
-
color: var(--pf-v5-c-switch__label--Color);
|
|
25422
25436
|
vertical-align: top;
|
|
25423
25437
|
}
|
|
25424
25438
|
|
|
25425
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-wizard__header .pf-v5-c-button, :where(.pf-v5-theme-dark) .pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main .pf-v5-c-button {
|
|
25426
|
-
--pf-v5-c-button--m-primary--BackgroundColor: var(--pf-v5-global--primary-color--300);
|
|
25427
|
-
}
|
|
25428
|
-
|
|
25429
|
-
:where(.pf-v5-theme-dark) .pf-v5-c-switch {
|
|
25430
|
-
--pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-global--BackgroundColor--100);
|
|
25431
|
-
--pf-v5-c-switch__input--not-checked__label--Color: var(--pf-v5-global--Color--100);
|
|
25432
|
-
--pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-v5-global--disabled-color--100);
|
|
25433
|
-
--pf-v5-c-switch__toggle--before--BoxShadow: none;
|
|
25434
|
-
--pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--disabled-color--100);
|
|
25435
|
-
}
|
|
25436
|
-
|
|
25437
25439
|
:root,
|
|
25438
25440
|
.pf-v5-c-tab-content {
|
|
25439
25441
|
--pf-v5-c-tab-content__body--PaddingTop: 0;
|