| 1 |
.pf-v6-c-check { |
| 2 |
--pf-v6-c-check--GridGap: var(--pf-t--global--spacer--gap--group--vertical) var(--pf-t--global--spacer--gap--text-to-element--default); |
| 3 |
--pf-v6-c-check--AccentColor: var(--pf-t--global--color--brand--default); |
| 4 |
--pf-v6-c-check--m-standalone--MinHeight: calc(var(--pf-v6-c-check__label--FontSize) * var(--pf-v6-c-check__label--LineHeight)); |
| 5 |
--pf-v6-c-check__label--disabled--Color: var(--pf-t--global--text--color--disabled); |
| 6 |
--pf-v6-c-check__label--Color: var(--pf-t--global--text--color--regular); |
| 7 |
--pf-v6-c-check__label--FontWeight: var(--pf-t--global--font--weight--body--default); |
| 8 |
--pf-v6-c-check__label--FontSize: var(--pf-t--global--font--size--body--default); |
| 9 |
--pf-v6-c-check__label--LineHeight: var(--pf-t--global--font--line-height--body); |
| 10 |
--pf-v6-c-check__description--FontSize: var(--pf-t--global--font--size--body--sm); |
| 11 |
--pf-v6-c-check__description--Color: var(--pf-t--global--text--color--subtle); |
| 12 |
--pf-v6-c-check__label-required--MarginInlineStart: var(--pf-t--global--spacer--xs); |
| 13 |
--pf-v6-c-check__label-required--FontSize: var(--pf-t--global--font--size--body--sm); |
| 14 |
--pf-v6-c-check__label-required--Color: var(--pf-t--global--color--status--danger--default); |
| 15 |
--pf-v6-c-check__input--TranslateY: calc((var(--pf-v6-c-check__label--LineHeight) * var(--pf-v6-c-check__label--FontSize) / 2 ) - 50%); |
| 16 |
} |
| 17 |
|
| 18 |
.pf-v6-c-check { |
| 19 |
display: grid; |
| 20 |
grid-template-columns: auto 1fr; |
| 21 |
gap: var(--pf-v6-c-check--GridGap); |
| 22 |
accent-color: var(--pf-v6-c-check--AccentColor); |
| 23 |
} |
| 24 |
.pf-v6-c-check.pf-m-standalone { |
| 25 |
display: inline-grid; |
| 26 |
grid-template-columns: auto; |
| 27 |
min-height: var(--pf-v6-c-check--m-standalone--MinHeight); |
| 28 |
} |
| 29 |
.pf-v6-c-check.pf-m-standalone .pf-v6-c-check__input { |
| 30 |
align-self: center; |
| 31 |
transform: none; |
| 32 |
} |
| 33 |
|
| 34 |
.pf-v6-c-check__input { |
| 35 |
align-self: start; |
| 36 |
font-size: var(--pf-v6-c-check__label--FontSize); |
| 37 |
line-height: var(--pf-v6-c-check__label--LineHeight); |
| 38 |
transform: translateY(var(--pf-v6-c-check__input--TranslateY)); |
| 39 |
} |
| 40 |
|
| 41 |
.pf-v6-c-check__label { |
| 42 |
font-size: var(--pf-v6-c-check__label--FontSize); |
| 43 |
font-weight: var(--pf-v6-c-check__label--FontWeight); |
| 44 |
line-height: var(--pf-v6-c-check__label--LineHeight); |
| 45 |
color: var(--pf-v6-c-check__label--Color); |
| 46 |
} |
| 47 |
|
| 48 |
.pf-v6-c-check__description { |
| 49 |
grid-column: 2; |
| 50 |
font-size: var(--pf-v6-c-check__description--FontSize); |
| 51 |
color: var(--pf-v6-c-check__description--Color); |
| 52 |
} |
| 53 |
|
| 54 |
.pf-v6-c-check__body { |
| 55 |
grid-column: 2; |
| 56 |
} |
| 57 |
|
| 58 |
.pf-v6-c-check__label, |
| 59 |
.pf-v6-c-check__input { |
| 60 |
justify-self: start; |
| 61 |
} |
| 62 |
label.pf-v6-c-check, .pf-v6-c-check__label, |
| 63 |
.pf-v6-c-check__input { |
| 64 |
cursor: pointer; |
| 65 |
} |
| 66 |
|
| 67 |
.pf-v6-c-check__label:disabled, .pf-v6-c-check__label.pf-m-disabled, |
| 68 |
.pf-v6-c-check__input:disabled, |
| 69 |
.pf-v6-c-check__input.pf-m-disabled { |
| 70 |
--pf-v6-c-check__label--Color: var(--pf-v6-c-check__label--disabled--Color); |
| 71 |
cursor: not-allowed; |
| 72 |
} |
| 73 |
|
| 74 |
.pf-v6-c-check__label-required { |
| 75 |
margin-inline-start: var(--pf-v6-c-check__label-required--MarginInlineStart); |
| 76 |
font-size: var(--pf-v6-c-check__label-required--FontSize); |
| 77 |
color: var(--pf-v6-c-check__label-required--Color); |
| 78 |
} |