naive-ui/styles/themes/dark/components/Input.scss
2020-02-20 15:26:12 +08:00

43 lines
1.7 KiB
SCSS

@mixin setup-dark-input {
$--input-color: (
'default': $--n-secondary-text-color,
'disabled': $--n-disabled-text-color
) !global;
$--input-caret-color: (
'default': $--n-primary-color,
'error': $--n-error-color
) !global;
$--input-placeholder-color: (
'default': $--n-placeholder-text-color,
'disabled': change-color($--n-placeholder-text-color, $alpha: alpha($--n-placeholder-text-color) * $--n-disabled-opacity),
) !global;
$--input-background-color: (
'default': $--n-input-background-color,
'disabled': change-color($--n-input-background-color, $alpha: alpha($--n-input-background-color) * $--n-disabled-opacity),
'focus': change-color($--n-primary-color, $alpha: 0.1),
'error-focus': change-color($--n-error-color, $alpha: 0.1),
) !global;
$--input-icon-color: (
'default': $--n-icon-color,
'disabled': change-color($--n-icon-color, $alpha: alpha($--n-icon-color) * $--n-disabled-opacity),
)!global;
$--input-border-mask-border-color: (
'default': transparent,
'hover': $--n-primary-color,
'focus': $--n-primary-color,
'disabled': transparent,
'error-default': transparent,
'error-hover': $--n-error-color,
'error-focus': $--n-error-color
) !global;
$--input-border-mask-box-shadow: (
'focus': (0 0 8px 0 change-color($--n-primary-color, $alpha: .3)),
'error-focus': (0 0 8px 0 change-color($--n-error-color, $alpha: .3)),
) !global;
$--input-box-shadow: (
'default': inset 0 0 0 0 transparent,
'disabled': inset 0 0 0 1px transparent,
'error-default': inset 0 0 0 1px $--n-error-color
) !global;
$--input-group-label-background-color: $--n-action-background-color !global;
}