naive-ui/styles/themes/light/components/InputNumber.scss

46 lines
1.9 KiB
SCSS
Raw Normal View History

2019-10-22 16:35:44 +08:00
@mixin setup-light-input-number {
$--input-number-border-color: (
'default': $--n-border-color,
'hover': $--n-primary-color,
'focus': $--n-primary-color,
2020-02-19 21:08:31 +08:00
'error': $--n-error-color
2019-10-22 16:35:44 +08:00
)!global;
2020-01-29 16:14:59 +08:00
$--input-number-placeholder-color: (
2020-02-20 15:26:12 +08:00
"default": $--n-placeholder-text-color,
"disabled": $--n-placeholder-text-color,
2020-01-29 16:14:59 +08:00
) !global;
$--input-number-text-decoration-color: $--n-secondary-text-color !global;
2019-10-22 16:35:44 +08:00
$--input-number-background-color: (
2020-02-19 22:37:20 +08:00
'default': $--n-card-background-color,
'disabled': $--n-disabled-background-color,
'focus': $--n-card-background-color,
'error-focus': $--n-card-background-color,
2019-10-22 16:35:44 +08:00
) !global;
$--input-number-text-color: (
'default': $--n-secondary-text-color,
'disabled': $--n-disabled-text-color
) !global;
$--input-number-button-text-color: (
'default': $--n-secondary-text-color,
'disabled': $--n-disabled-text-color,
'hover': $--n-primary-color,
'active': $--n-primary-active-color
2019-10-22 16:35:44 +08:00
) !global;
$--input-number-button-background-color: (
2020-02-22 14:11:34 +08:00
'default': $--n-action-background-color,
'hover': $--n-action-background-color,
'active': $--n-action-background-color,
2020-02-19 22:37:20 +08:00
'disabled': $--n-disabled-background-color,
2019-10-22 16:35:44 +08:00
) !global;
$--input-number-caret-color: $--n-primary-color !global;
$--input-number-disabled-opacity: 1 !global;
$--input-number-box-shadow: (
"default": inset 0 0 0 1px $--n-border-color,
2020-02-19 19:58:39 +08:00
"hover": inset 0 0 0 1px $--n-primary-hover-color,
"focus": (inset 0 0 0 1px $--n-primary-hover-color, 0 0 0 2px change-color($--n-primary-hover-color, $alpha: .3)),
2020-02-19 21:08:31 +08:00
"error-default": inset 0 0 0 1px $--n-error-hover-color,
"error-hover": inset 0 0 0 1px $--n-error-hover-color,
"error-focus": (inset 0 0 0 1px $--n-error-hover-color, 0 0 0 2px change-color($--n-error-hover-color, $alpha: .3)),
2019-10-22 16:35:44 +08:00
"disabled": inset 0 0 0 1px $--n-border-color
) !global;
}