| 1 |
.pf-v6-c-number-input { |
| 2 |
--pf-v6-c-number-input__unit--c-input-group--MarginInlineStart: var(--pf-t--global--spacer--sm); |
| 3 |
--pf-v6-c-number-input__icon--FontSize: var(--pf-t--global--font--size--xs); |
| 4 |
--pf-v6-c-number-input--c-form-control--width-base: calc(var(--pf-t--global--spacer--md) * 2 + var(--pf-t--global--border--width--box--default) * 2); |
| 5 |
--pf-v6-c-number-input--c-form-control--width-icon: var(--pf-t--global--spacer--xl); |
| 6 |
--pf-v6-c-number-input--c-form-control--width-chars: 4; |
| 7 |
--pf-v6-c-number-input--c-form-control--Width: |
| 8 |
calc( |
| 9 |
calc( |
| 10 |
var(--pf-v6-c-number-input--c-form-control--width-base) + var(--pf-v6-c-number-input--c-form-control--width-chars) * 1ch |
| 11 |
) + var(--pf-v6-c-number-input--c-form-control--width-icon) |
| 12 |
); |
| 13 |
} |
| 14 |
|
| 15 |
.pf-v6-c-number-input { |
| 16 |
display: inline-flex; |
| 17 |
align-items: center; |
| 18 |
} |
| 19 |
.pf-v6-c-number-input .pf-v6-c-form-control { |
| 20 |
width: var(--pf-v6-c-number-input--c-form-control--Width); |
| 21 |
} |
| 22 |
.pf-v6-c-number-input .pf-v6-c-form-control > :is(input) { |
| 23 |
text-align: end; |
| 24 |
appearance: textfield; |
| 25 |
} |
| 26 |
.pf-v6-c-number-input .pf-v6-c-form-control > :is(input)::-webkit-inner-spin-button, .pf-v6-c-number-input .pf-v6-c-form-control > :is(input)::-webkit-outer-spin-button { |
| 27 |
margin: 0; |
| 28 |
appearance: none; |
| 29 |
} |
| 30 |
|
| 31 |
.pf-v6-c-input-group + .pf-v6-c-number-input__unit, |
| 32 |
.pf-v6-c-number-input__unit + .pf-v6-c-input-group { |
| 33 |
margin-inline-start: var(--pf-v6-c-number-input__unit--c-input-group--MarginInlineStart); |
| 34 |
} |
| 35 |
|
| 36 |
.pf-v6-c-number-input__icon { |
| 37 |
font-size: var(--pf-v6-c-number-input__icon--FontSize); |
| 38 |
} |