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

23 lines
786 B
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;
$--input-caret-color: initial !global;
$--input-placeholder-color: (
"default": $--n-disabled-text-color,
"disabled": $--n-disabled-text-color,
) !global;
$--input-background-color: (
"default": rgb(255, 255, 255),
2019-10-22 16:35:44 +08:00
"disabled": $--alpha-neutral-8,
2019-10-10 18:24:51 +08:00
"focus": rgb(255, 255, 255)
) !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-10-10 18:24:51 +08:00
"disabled": inset 0 0 0 1px $--n-border-color
) !global;
}