| 1 |
.pf-v6-c-toggle-group { |
| 2 |
--pf-v6-c-toggle-group__button--PaddingBlockStart: var(--pf-t--global--spacer--sm); |
| 3 |
--pf-v6-c-toggle-group__button--PaddingInlineEnd: var(--pf-t--global--spacer--md); |
| 4 |
--pf-v6-c-toggle-group__button--PaddingBlockEnd: var(--pf-t--global--spacer--sm); |
| 5 |
--pf-v6-c-toggle-group__button--PaddingInlineStart: var(--pf-t--global--spacer--md); |
| 6 |
--pf-v6-c-toggle-group__button--FontSize: var(--pf-t--global--font--size--body--default); |
| 7 |
--pf-v6-c-toggle-group__button--LineHeight: var(--pf-t--global--font--line-height--body); |
| 8 |
--pf-v6-c-toggle-group__button--Color: var(--pf-t--global--text--color--regular); |
| 9 |
--pf-v6-c-toggle-group__button--BackgroundColor: var(--pf-t--global--background--color--control--default); |
| 10 |
--pf-v6-c-toggle-group__button--ZIndex: auto; |
| 11 |
--pf-v6-c-toggle-group__button--hover--Color: var(--pf-t--global--text--color--on-brand--subtle--default); |
| 12 |
--pf-v6-c-toggle-group__button--hover--BackgroundColor: var(--pf-t--global--color--brand--subtle--default); |
| 13 |
--pf-v6-c-toggle-group__button--hover--ZIndex: var(--pf-t--global--z-index--xs); |
| 14 |
--pf-v6-c-toggle-group__button--hover--before--BorderColor: var(--pf-t--global--border--color--brand--subtle--hover); |
| 15 |
--pf-v6-c-toggle-group__button--hover--after--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular); |
| 16 |
--pf-v6-c-toggle-group__button--before--BorderWidth: var(--pf-t--global--border--width--control--default); |
| 17 |
--pf-v6-c-toggle-group__button--before--BorderColor: var(--pf-t--global--border--color--control--default); |
| 18 |
--pf-v6-c-toggle-group__item--item--MarginInlineStart: calc(-1 * var(--pf-t--global--border--width--control--default)); |
| 19 |
--pf-v6-c-toggle-group__item--first-child__button--BorderStartStartRadius: var(--pf-t--global--border--radius--control--default); |
| 20 |
--pf-v6-c-toggle-group__item--first-child__button--BorderEndStartRadius: var(--pf-t--global--border--radius--control--default); |
| 21 |
--pf-v6-c-toggle-group__item--last-child__button--BorderStartEndRadius: var(--pf-t--global--border--radius--control--default); |
| 22 |
--pf-v6-c-toggle-group__item--last-child__button--BorderEndEndRadius: var(--pf-t--global--border--radius--control--default); |
| 23 |
--pf-v6-c-toggle-group__icon--text--MarginInlineStart: var(--pf-t--global--spacer--sm); |
| 24 |
--pf-v6-c-toggle-group__icon--Color: var(--pf-t--global--icon--color--regular); |
| 25 |
--pf-v6-c-toggle-group__icon--hover--Color: var(--pf-t--global--icon--color--on-brand--subtle--default); |
| 26 |
--pf-v6-c-toggle-group__icon--m-selected--Color: var(--pf-t--global--icon--color--on-brand--subtle--default); |
| 27 |
--pf-v6-c-toggle-group__icon--disabled--Color: var(--pf-t--global--icon--color--on-disabled); |
| 28 |
--pf-v6-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-t--global--color--brand--subtle--default); |
| 29 |
--pf-v6-c-toggle-group__button--m-selected--Color: var(--pf-t--global--text--color--on-brand--subtle--default); |
| 30 |
--pf-v6-c-toggle-group__button--m-selected--before--BorderColor: var(--pf-t--global--border--color--brand--subtle--clicked); |
| 31 |
--pf-v6-c-toggle-group__button--m-selected--before--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular); |
| 32 |
--pf-v6-c-toggle-group__button--m-selected--after--BorderColor: var(--pf-t--global--border--color--brand--subtle--clicked); |
| 33 |
--pf-v6-c-toggle-group__button--m-selected--after--BorderWidth: var(--pf-t--global--border--width--control--clicked); |
| 34 |
--pf-v6-c-toggle-group__button--m-selected--selected--before--BorderInlineStartColor: var(--pf-t--global--border--color--brand--subtle--clicked); |
| 35 |
--pf-v6-c-toggle-group__button--m-selected--ZIndex: var(--pf-t--global--z-index--xs); |
| 36 |
--pf-v6-c-toggle-group__button--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default); |
| 37 |
--pf-v6-c-toggle-group__button--disabled--Color: var(--pf-t--global--text--color--on-disabled); |
| 38 |
--pf-v6-c-toggle-group__button--disabled--before--BorderColor: var(--pf-t--global--border--color--control--default); |
| 39 |
--pf-v6-c-toggle-group__button--disabled--disabled--before--BorderInlineStartColor: var(--pf-t--global--border--color--control--default); |
| 40 |
--pf-v6-c-toggle-group__button--disabled--ZIndex: var(--pf-t--global--z-index--xs); |
| 41 |
--pf-v6-c-toggle-group--m-compact__button--PaddingBlockStart: var(--pf-t--global--spacer--xs); |
| 42 |
--pf-v6-c-toggle-group--m-compact__button--PaddingInlineEnd: var(--pf-t--global--spacer--sm); |
| 43 |
--pf-v6-c-toggle-group--m-compact__button--PaddingBlockEnd: var(--pf-t--global--spacer--xs); |
| 44 |
--pf-v6-c-toggle-group--m-compact__button--PaddingInlineStart: var(--pf-t--global--spacer--sm); |
| 45 |
--pf-v6-c-toggle-group--m-compact__button--FontSize: var(--pf-t--global--font--size--body--default); |
| 46 |
} |
| 47 |
|
| 48 |
.pf-v6-c-toggle-group { |
| 49 |
display: flex; |
| 50 |
} |
| 51 |
.pf-v6-c-toggle-group.pf-m-compact { |
| 52 |
--pf-v6-c-toggle-group__button--PaddingBlockStart: var(--pf-v6-c-toggle-group--m-compact__button--PaddingBlockStart); |
| 53 |
--pf-v6-c-toggle-group__button--PaddingInlineEnd: var(--pf-v6-c-toggle-group--m-compact__button--PaddingInlineEnd); |
| 54 |
--pf-v6-c-toggle-group__button--PaddingBlockEnd: var(--pf-v6-c-toggle-group--m-compact__button--PaddingBlockEnd); |
| 55 |
--pf-v6-c-toggle-group__button--PaddingInlineStart: var(--pf-v6-c-toggle-group--m-compact__button--PaddingInlineStart); |
| 56 |
--pf-v6-c-toggle-group__button--FontSize: var(--pf-v6-c-toggle-group--m-compact__button--FontSize); |
| 57 |
} |
| 58 |
.pf-v6-c-toggle-group.pf-m-fill .pf-v6-c-toggle-group__item { |
| 59 |
display: flex; |
| 60 |
flex-grow: 1; |
| 61 |
} |
| 62 |
.pf-v6-c-toggle-group.pf-m-fill .pf-v6-c-toggle-group__button { |
| 63 |
flex-basis: 100%; |
| 64 |
justify-content: center; |
| 65 |
} |
| 66 |
|
| 67 |
.pf-v6-c-toggle-group__item + .pf-v6-c-toggle-group__item { |
| 68 |
margin-inline-start: var(--pf-v6-c-toggle-group__item--item--MarginInlineStart); |
| 69 |
} |
| 70 |
.pf-v6-c-toggle-group__item:first-child .pf-v6-c-toggle-group__button { |
| 71 |
border-start-start-radius: var(--pf-v6-c-toggle-group__item--first-child__button--BorderStartStartRadius); |
| 72 |
border-end-start-radius: var(--pf-v6-c-toggle-group__item--first-child__button--BorderEndStartRadius); |
| 73 |
} |
| 74 |
.pf-v6-c-toggle-group__item:last-child .pf-v6-c-toggle-group__button { |
| 75 |
border-start-end-radius: var(--pf-v6-c-toggle-group__item--last-child__button--BorderStartEndRadius); |
| 76 |
border-end-end-radius: var(--pf-v6-c-toggle-group__item--last-child__button--BorderEndEndRadius); |
| 77 |
} |
| 78 |
|
| 79 |
.pf-v6-c-toggle-group__button { |
| 80 |
position: relative; |
| 81 |
z-index: var(--pf-v6-c-toggle-group__button--ZIndex); |
| 82 |
display: inline-flex; |
| 83 |
padding-block-start: var(--pf-v6-c-toggle-group__button--PaddingBlockStart); |
| 84 |
padding-block-end: var(--pf-v6-c-toggle-group__button--PaddingBlockEnd); |
| 85 |
padding-inline-start: var(--pf-v6-c-toggle-group__button--PaddingInlineStart); |
| 86 |
padding-inline-end: var(--pf-v6-c-toggle-group__button--PaddingInlineEnd); |
| 87 |
font-size: var(--pf-v6-c-toggle-group__button--FontSize); |
| 88 |
line-height: var(--pf-v6-c-toggle-group__button--LineHeight); |
| 89 |
color: var(--pf-v6-c-toggle-group__button--Color); |
| 90 |
background-color: var(--pf-v6-c-toggle-group__button--BackgroundColor); |
| 91 |
border: 0; |
| 92 |
} |
| 93 |
.pf-v6-c-toggle-group__button::before, .pf-v6-c-toggle-group__button::after { |
| 94 |
position: absolute; |
| 95 |
inset: 0; |
| 96 |
pointer-events: none; |
| 97 |
content: ""; |
| 98 |
border-style: solid; |
| 99 |
border-radius: inherit; |
| 100 |
} |
| 101 |
.pf-v6-c-toggle-group__button::before { |
| 102 |
border-width: var(--pf-v6-c-toggle-group__button--before--BorderWidth); |
| 103 |
border-block-start-color: var(--pf-v6-c-toggle-group__button--before--BorderBlockStartColor, var(--pf-v6-c-toggle-group__button--before--BorderColor)); |
| 104 |
border-block-end-color: var(--pf-v6-c-toggle-group__button--before--BorderBlockEndColor, var(--pf-v6-c-toggle-group__button--before--BorderColor)); |
| 105 |
border-inline-start-color: var(--pf-v6-c-toggle-group__button--before--BorderInlineStartColor, var(--pf-v6-c-toggle-group__button--before--BorderColor)); |
| 106 |
border-inline-end-color: var(--pf-v6-c-toggle-group__button--before--BorderInlineEndColor, var(--pf-v6-c-toggle-group__button--before--BorderColor)); |
| 107 |
} |
| 108 |
.pf-v6-c-toggle-group__button::after { |
| 109 |
inset: var(--pf-v6-c-toggle-group__button--before--BorderWidth); |
| 110 |
border-color: var(--pf-v6-c-toggle-group__button--after--BorderColor, transparent); |
| 111 |
border-width: var(--pf-v6-c-toggle-group__button--after--BorderWidth, 0); |
| 112 |
} |
| 113 |
.pf-v6-c-toggle-group__button:is(:hover, :focus) { |
| 114 |
--pf-v6-c-toggle-group__button--BackgroundColor: var(--pf-v6-c-toggle-group__button--hover--BackgroundColor); |
| 115 |
--pf-v6-c-toggle-group__button--Color: var(--pf-v6-c-toggle-group__button--hover--Color); |
| 116 |
--pf-v6-c-toggle-group__button--ZIndex: var(--pf-v6-c-toggle-group__button--hover--ZIndex); |
| 117 |
--pf-v6-c-toggle-group__button--before--BorderColor: var(--pf-v6-c-toggle-group__button--hover--before--BorderColor); |
| 118 |
--pf-v6-c-toggle-group__button--after--BorderWidth: var(--pf-v6-c-toggle-group__button--hover--after--BorderWidth); |
| 119 |
--pf-v6-c-toggle-group__icon--Color: var(--pf-v6-c-toggle-group__icon--hover--Color); |
| 120 |
text-decoration-line: none; |
| 121 |
} |
| 122 |
.pf-v6-c-toggle-group__button.pf-m-selected { |
| 123 |
--pf-v6-c-toggle-group__button--BackgroundColor: var(--pf-v6-c-toggle-group__button--m-selected--BackgroundColor); |
| 124 |
--pf-v6-c-toggle-group__button--Color: var(--pf-v6-c-toggle-group__button--m-selected--Color, inherit); |
| 125 |
--pf-v6-c-toggle-group__button--ZIndex: var(--pf-v6-c-toggle-group__button--m-selected--ZIndex); |
| 126 |
--pf-v6-c-toggle-group__button--before--BorderColor: var(--pf-v6-c-toggle-group__button--m-selected--before--BorderColor); |
| 127 |
--pf-v6-c-toggle-group__button--before--BorderWidth: var(--pf-v6-c-toggle-group__button--m-selected--before--BorderWidth); |
| 128 |
--pf-v6-c-toggle-group__button--after--BorderColor: var(--pf-v6-c-toggle-group__button--m-selected--after--BorderColor); |
| 129 |
--pf-v6-c-toggle-group__button--after--BorderWidth: var(--pf-v6-c-toggle-group__button--m-selected--after--BorderWidth); |
| 130 |
--pf-v6-c-toggle-group__icon--Color: var(--pf-v6-c-toggle-group__icon--m-selected--Color); |
| 131 |
} |
| 132 |
.pf-v6-c-toggle-group__button:is(:disabled, .pf-m-disabled) { |
| 133 |
--pf-v6-c-toggle-group__button--BackgroundColor: var(--pf-v6-c-toggle-group__button--disabled--BackgroundColor); |
| 134 |
--pf-v6-c-toggle-group__button--Color: var(--pf-v6-c-toggle-group__button--disabled--Color); |
| 135 |
--pf-v6-c-toggle-group__button--ZIndex: var(--pf-v6-c-toggle-group__button--disabled--ZIndex); |
| 136 |
--pf-v6-c-toggle-group__button--before--BorderColor: var(--pf-v6-c-toggle-group__button--disabled--before--BorderColor); |
| 137 |
--pf-v6-c-toggle-group__icon--Color: var(--pf-v6-c-toggle-group__icon--disabled--Color); |
| 138 |
pointer-events: none; |
| 139 |
} |
| 140 |
|
| 141 |
.pf-v6-c-toggle-group__item:has(.pf-m-selected) + .pf-v6-c-toggle-group__item:has(.pf-m-selected) { |
| 142 |
--pf-v6-c-toggle-group__button--before--BorderInlineStartColor: var(--pf-v6-c-toggle-group__button--m-selected--selected--before--BorderInlineStartColor); |
| 143 |
} |
| 144 |
|
| 145 |
.pf-v6-c-toggle-group__item:has(:disabled, .pf-m-disabled) + .pf-v6-c-toggle-group__item:has(:disabled, .pf-m-disabled) { |
| 146 |
--pf-v6-c-toggle-group__button--before--BorderInlineStartColor: var(--pf-v6-c-toggle-group__button--disabled--disabled--before--BorderInlineStartColor); |
| 147 |
} |
| 148 |
|
| 149 |
.pf-v6-c-toggle-group__icon { |
| 150 |
color: var(--pf-v6-c-toggle-group__icon--Color); |
| 151 |
} |
| 152 |
|
| 153 |
.pf-v6-c-toggle-group__icon + .pf-v6-c-toggle-group__text, |
| 154 |
.pf-v6-c-toggle-group__text + .pf-v6-c-toggle-group__icon { |
| 155 |
margin-inline-start: var(--pf-v6-c-toggle-group__icon--text--MarginInlineStart); |
| 156 |
} |