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

24 lines
1.1 KiB
SCSS
Raw Normal View History

2019-10-22 18:34:49 +08:00
@mixin setup-light-slider {
$--slider-rail-background-color: (
2020-02-20 15:26:12 +08:00
'default': $--n-rail-color,
'hover': change-color($--n-rail-color, $alpha: alpha($--n-rail-color) * 0.75)
2019-10-22 18:34:49 +08:00
) !global;
$--slider-rail-fill-background-color: (
2020-02-19 19:58:39 +08:00
'default': $--n-primary-color,
'hover': $--n-primary-hover-color
2019-10-22 18:34:49 +08:00
) !global;
2020-02-22 18:08:53 +08:00
$--slider-handle-background-color: $--n-base-background-color !global;
2019-10-22 18:34:49 +08:00
$--slider-handle-box-shadow: (
2020-02-19 19:58:39 +08:00
'default': inset 0 0 0 2px $--n-primary-color,
'hover': inset 0 0 0 2px $--n-primary-hover-color,
'active': (inset 0 0 0 2px $--n-primary-hover-color, 0 0 0 3px change-color($--n-primary-color, $alpha: .2)),
'focus': (inset 0 0 0 2px $--n-primary-color, 0 0 0 3px change-color($--n-primary-color, $alpha: .2))
2019-10-22 18:34:49 +08:00
) !global;
2020-02-20 15:26:12 +08:00
$--slider-indicator-background-color: rgba(0, 0, 0, .85) !global;
$--slider-indicator-box-shadow: $--n-popover-box-shadow !global;
2020-02-22 18:08:53 +08:00
$--slider-indicator-text-color: $--n-base-background-color !global;
2019-10-22 18:34:49 +08:00
$--slider-dot-box-shadow: (
2020-02-19 19:58:39 +08:00
'default': inset 0 0 0 2px $--n-primary-color,
'active': inset 0 0 0 2px $--n-primary-hover-color
2019-10-22 18:34:49 +08:00
) !global;
}