liuxiaolong
2019-05-06 acc45d2ece02563964d7b8a22ff0c40bd8358889
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@import "~@/vendor/styles/_appwork/functions";
 
@mixin vue-slider-variant($background, $color: null) {
  $color: if($color, $color, yiq($background));
 
  .vue-slider-process {
    background: $background !important;
  }
  .vue-slider-tooltip {
    border-color: $background !important;
    background: $background !important;
    color: $color !important;
  }
}
 
@mixin material-vue-slider-variant($background, $color: null) {
  $color: if($color, $color, yiq($background));
 
  .vue-slider-process,
  .vue-slider-dot {
    background: $background !important;
  }
  .vue-slider-dot {
    box-shadow: none !important;
  }
  .vue-slider-tooltip {
    border-color: $background !important;
    background: $background !important;
    color: $color !important;
  }
}
 
@mixin vue-slider-theme($background, $color: null) {
  .vue-slider-primary {
    @include vue-slider-variant($background, $color);
  }
}
 
@mixin material-vue-slider-theme($background, $color: null) {
  .vue-slider-primary {
    @include material-vue-slider-variant($background, $color);
  }
}