naive-ui/styles/themes/light/components/InputNumber.scss
2019-11-09 00:25:06 +08:00

40 lines
1.4 KiB
SCSS

@mixin setup-light-input-number {
$--input-number-border-color: (
'default': $--n-border-color,
'hover': $--n-primary-color,
'focus': $--n-primary-color,
'error': $--error-6
)!global;
$--input-number-background-color: (
'default': rgb(255, 255, 255),
'disabled': $--neutral-8,
'focus': rgb(255, 255, 255),
'error-focus': rgb(255, 255, 255)
) !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
) !global;
$--input-number-button-background-color: (
'default': $--neutral-8,
'hover': $--neutral-8,
'active': $--neutral-8,
'disabled': $--neutral-8
) !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,
"hover": inset 0 0 0 1px $--primary-5,
"focus": (inset 0 0 0 1px $--primary-5, 0 0 0 2px change-color($--primary-5, $alpha: .3)),
"error-default": inset 0 0 0 1px $--error-5,
"error-hover": inset 0 0 0 1px $--error-5,
"error-focus": (inset 0 0 0 1px $--error-5, 0 0 0 2px change-color($--error-5, $alpha: .3)),
"disabled": inset 0 0 0 1px $--n-border-color
) !global;
}