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

30 lines
1.0 KiB
SCSS
Raw Normal View History

2019-10-10 18:24:51 +08:00
@mixin setup-light-input {
$--input-color: (
'default': $--n-secondary-text-color,
'disabled': rgba(0, 0, 0, .3)
) !global;
2019-11-06 13:48:05 +08:00
$--input-caret-color: (
'default': $--primary-6,
'error': $--error-6
) !global;
2019-10-10 18:24:51 +08:00
$--input-placeholder-color: (
"default": $--n-disabled-text-color,
"disabled": $--n-disabled-text-color,
) !global;
$--input-background-color: (
"default": rgb(255, 255, 255),
2019-11-17 00:57:30 +08:00
"disabled": $--overlay-8,
2019-11-06 15:57:03 +08:00
"focus": rgb(255, 255, 255),
"error-focus": rgb(255, 255, 255)
2019-10-10 18:24:51 +08:00
) !global;
$--input-icon-color: $--n-disabled-text-color !global;
$--input-box-shadow: (
"default": inset 0 0 0 1px $--n-border-color,
2019-10-12 14:23:40 +08:00
"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)),
2019-11-06 13:48:05 +08:00
"disabled": inset 0 0 0 1px $--n-border-color,
"error-default": inset 0 0 0 1px $--error-6,
"error-hover": inset 0 0 0 1px $--error-6,
"error-focus": (inset 0 0 0 1px $--error-6, 0 0 0 2px change-color($--error-6, $alpha: .3)),
2019-10-10 18:24:51 +08:00
) !global;
}