naive-ui/styles/themes/light/components/BaseSelection.scss
2020-02-19 21:08:31 +08:00

36 lines
1.3 KiB
SCSS

@mixin setup-light-base-selection {
$--base-selection-color: $--n-secondary-text-color !global;
$--base-selection-background-color: (
'default': rgb(255, 255, 255),
'disabled': $--n-action-background-color,
'active': rgb(255, 255, 255),
'error-active': rgb(255, 255, 255)
) !global;
$--base-selection-placeholder-color: (
'default': $--n-disabled-text-color,
'disabled': $--n-disabled-text-color,
) !global;
$--base-selection-border-mask-border-color: (
'default': transparent,
'hover': $--n-primary-hover-color,
'active': $--n-primary-hover-color,
'focus': $--n-primary-hover-color,
'disabled': transparent,
'error-hover': $--n-error-hover-color,
'error-active': $--n-error-hover-color,
'error-focus': $--n-error-hover-color
) !global;
$--base-selection-border-mask-box-shadow: (
'focus': 0 0 0 2px change-color($--n-primary-hover-color, $alpha: .3),
'error-focus': 0 0 0 2px change-color($--n-error-hover-color, $alpha: .3)
) !global;
$--base-selection-box-shadow: (
'default': inset 0 0 0 1px $--n-border-color,
'disabled': inset 0 0 0 1px $--n-border-color,
'error-default': inset 0 0 0 1px $--n-error-hover-color,
) !global;
$--base-selection-caret-color: (
'default': $--n-primary-color,
'error': $--n-error-color
) !global;
}