1
+ @use ' sass:color' ;
2
+
1
3
/*
2
4
* Multiple-Select-Vanilla SASS variables.
3
5
* You can also CSS variables by simply replacing `$ms-` prefix with `--ms-`
@@ -11,7 +13,7 @@ $ms-primary-color: $primary-color !default;
11
13
$ms-item-border : 1px solid transparent !default ;
12
14
$ms-item-hover-border : 1px solid #d5d5d5 !default ;
13
15
$ms-checkbox-color : $ms-primary-color !default ;
14
- $ms-checkbox-hover-color : darken ($ms-primary-color , 3% ) !default ;
16
+ $ms-checkbox-hover-color : color . adjust ($ms-primary-color , $lightness : - 3% ) !default ;
15
17
$ms-checkbox-icon-container-border : 1px solid #d0d0d0 !default ;
16
18
$ms-checkbox-icon-container-height : 1.05rem !default ;
17
19
$ms-checkbox-icon-container-width : 1.05rem !default ;
@@ -34,7 +36,7 @@ $ms-icon-size: 1em !default;
34
36
$ms-chevron-icon-size : 1.2em !default ;
35
37
$ms-choice-text-align : left !default ;
36
38
$ms-choice-line-height : 26px !default ;
37
- $ms-choice-focus-border-color : lighten ($ms-primary-color , 60% ) !default ;
39
+ $ms-choice-focus-border-color : color . adjust ($ms-primary-color , $lightness : 60% ) !default ;
38
40
$ms-choice-focus-box-shadow : 0 0 0 1.5px rgba ($ms-primary-color ,.35 ) !default ;
39
41
$ms-drop-background : #fff !default ;
40
42
$ms-drop-color : #000 !default ;
@@ -82,7 +84,7 @@ $ms-ok-button-border-width: 1px 0 0 0 !default;
82
84
$ms-ok-button-font-weight : 600 !default ;
83
85
$ms-ok-button-padding : 0 !default ;
84
86
$ms-ok-button-text-color : $ms-primary-color !default ;
85
- $ms-ok-button-text-hover-color : darken ($ms-primary-color , 5% ) !default ;
87
+ $ms-ok-button-text-hover-color : color . adjust ($ms-primary-color , $lightness : - 5% ) !default ;
86
88
$ms-ok-button-height : 26px !default ;
87
89
$ms-ok-button-width : 100% !default ;
88
90
$ms-ok-button-text-align : center !default ;
@@ -109,33 +111,33 @@ $ms-select-all-label-padding: 4px !default;
109
111
$ms-select-all-line-height : 18px !default ;
110
112
$ms-select-all-padding : 4px !default ;
111
113
$ms-select-all-text-font-weight : normal !default ;
112
- $ms-select-all-text-color : darken ($ms-primary-color , 5% ) !default ;
114
+ $ms-select-all-text-color : color . adjust ($ms-primary-color , $lightness : - 5% ) !default ;
113
115
$ms-select-all-text-hover-color : transparent !default ;
114
116
115
117
.ms-dark-mode {
116
- --ms-checkbox-color : #{lighten ($ms-primary-color , 10% )} ;
117
- --ms-checkbox-hover-color : #{lighten ($ms-primary-color , 13% )} ;
118
+ --ms-checkbox-color : #{color . adjust ($ms-primary-color , $lightness : 10% )} ;
119
+ --ms-checkbox-hover-color : #{color . adjust ($ms-primary-color , $lightness : 13% )} ;
118
120
--ms-checkbox-icon-container-border : 1px solid #797979 ;
119
121
--ms-choice-border : 1px solid #757575 ;
120
122
--ms-choice-bgcolor : #262b2f ;
121
123
--ms-choice-color : #d4d4d4 ;
122
124
--ms-choice-border-hover-color : #7f7f7f ;
123
- --ms-choice-focus-border-color : #{lighten ($ms-primary-color , 5% )} ;
125
+ --ms-choice-focus-border-color : #{color . adjust ($ms-primary-color , $lightness : 5% )} ;
124
126
--ms-choice-focus-box-shadow : 0 0 0 2px #{rgba ($ms-primary-color ,.2 )} ;
125
127
--ms-drop-background : #2a2f34 ;
126
128
--ms-drop-border : 1px solid #585858 ;
127
129
--ms-drop-color : #cccccc ;
128
- --ms-drop-hide-radio-hover-bgcolor : #{darken ($ms-primary-color , 5% )} ;
130
+ --ms-drop-hide-radio-hover-bgcolor : #{color . adjust ($ms-primary-color , $lightness : - 5% )} ;
129
131
--ms-drop-option-divider-border-top : 1px solid #696969 ;
130
132
--ms-drop-scrollbar-color : #828282 #424242 ;
131
133
--ms-icon-color : #bcbcbc ;
132
134
--ms-icon-color-hover : #d0d0d0 ;
133
- --ms-option-highlight-bg-color : #{darken ($ms-primary-color , 10% )} ;
135
+ --ms-option-highlight-bg-color : #{color . adjust ($ms-primary-color , $lightness : - 10% )} ;
134
136
--ms-ok-button-bg-color : #262b2f ;
135
137
--ms-ok-button-bg-hover-color : #24282c ;
136
138
--ms-ok-button-border-color : #4a4a4a ;
137
- --ms-ok-button-text-color : #{lighten ($ms-primary-color , 5% )} ;
138
- --ms-ok-button-text-hover-color : #{lighten ($ms-primary-color , 5% )} ;
139
+ --ms-ok-button-text-color : #{color . adjust ($ms-primary-color , $lightness : 5% )} ;
140
+ --ms-ok-button-text-hover-color : #{color . adjust ($ms-primary-color , $lightness : 5% )} ;
139
141
--ms-optgroup-color : #fff ;
140
142
--ms-search-input-bg-color : #2f353a ;
141
143
--ms-search-input-color : #d4d4d4 ;
0 commit comments