1
1
/* ======================================
2
2
Selectric
3
3
======================================*/
4
- $main-color : #DDD ;
4
+ $main-color : #DDD ;
5
5
$secondary-color : #FFF ;
6
- $bg-color : #00A1D9 ;
7
- $text-color : #FFF ;
8
- $height : 40px ;
9
- $spacing : 10px ;
10
- $border-width : 1px ;
11
- $inner-height : $height - ($border-width * 2 );
6
+ $bg-color : #333745 ;
7
+ $text-color : #FFF ;
8
+ $height : 40px ;
9
+ $spacing : 10px ;
10
+ $border-width : 1px ;
11
+ $inner-height : $height - ($border-width * 2 );
12
12
13
13
.selectric-wrapper {
14
14
position : relative ;
@@ -29,7 +29,7 @@ $inner-height: $height - ($border-width * 2);
29
29
white-space : nowrap ;
30
30
overflow : hidden ;
31
31
text-overflow : ellipsis ;
32
- margin : 0 $inner-height 0 $spacing ;
32
+ margin : 0 $inner-height 0 $spacing ;
33
33
font-size : 12px ;
34
34
line-height : $inner-height ;
35
35
color : $text-color ;
@@ -65,6 +65,10 @@ $inner-height: $height - ($border-width * 2);
65
65
}
66
66
}
67
67
68
+ .selectric-focus .selectric {
69
+ background : darken ($bg-color , 10% );
70
+ }
71
+
68
72
.selectric-hover .selectric {
69
73
background : darken ($bg-color , 5% );
70
74
@@ -101,7 +105,26 @@ $inner-height: $height - ($border-width * 2);
101
105
select {
102
106
position : absolute ;
103
107
left : -100% ;
104
- display : none ;
108
+ }
109
+
110
+ & .selectric-is-native {
111
+ position : absolute ;
112
+ width : 100% ;
113
+ height : 100% ;
114
+ z-index : 10 ;
115
+
116
+ select {
117
+ position : absolute ;
118
+ top : 0 ;
119
+ left : 0 ;
120
+ right : 0 ;
121
+ height : 100% ;
122
+ width : 100% ;
123
+ border : none ;
124
+ z-index : 1 ;
125
+ box-sizing : border-box ;
126
+ opacity : 0 ;
127
+ }
105
128
}
106
129
}
107
130
@@ -133,7 +156,7 @@ $inner-height: $height - ($border-width * 2);
133
156
position : absolute ;
134
157
top : 100% ;
135
158
left : 0 ;
136
- background : #F8F8F8 ;
159
+ background : $bg-color ;
137
160
border : 1px solid darken ($main-color , 10% );
138
161
z-index : -1 ;
139
162
box-shadow : 0 0 10px -6px ;
@@ -159,20 +182,23 @@ $inner-height: $height - ($border-width * 2);
159
182
160
183
li {
161
184
display : block ;
162
- padding : 8px ;
163
- border-top : 1px solid #FFF ;
164
- border-bottom : 1px solid #EEE ;
165
- color : #666 ;
185
+ padding : 10px ;
186
+ color : #FFF ;
166
187
cursor : pointer ;
167
188
168
189
& .selected {
169
- background : #EFEFEF ;
170
- color : #444 ;
190
+ background : mix ($bg-color , #FFF , 80% );
191
+ color : #FFF ;
192
+ }
193
+
194
+ & .highlighted {
195
+ background : mix ($bg-color , #FFF , 90% );
196
+ color : #FFF ;
171
197
}
172
198
173
199
& :hover {
174
- background : #F0F0F0 ;
175
- color : #444 ;
200
+ background : mix ( $bg-color , #FFF , 70 % ) ;
201
+ color : #FFF ;
176
202
}
177
203
}
178
204
@@ -181,7 +207,7 @@ $inner-height: $height - ($border-width * 2);
181
207
opacity : 0.5 ;
182
208
cursor : default !important ;
183
209
background : none !important ;
184
- color : #666 !important ;
210
+ color : #FFF !important ;
185
211
user-select : none ;
186
212
}
187
213
@@ -192,7 +218,7 @@ $inner-height: $height - ($border-width * 2);
192
218
cursor : default ;
193
219
user-select : none ;
194
220
background : none ;
195
- color : #444 ;
221
+ color : #FFF ;
196
222
}
197
223
198
224
& .disabled li {
@@ -204,4 +230,4 @@ $inner-height: $height - ($border-width * 2);
204
230
padding-left : 25px ;
205
231
}
206
232
}
207
- }
233
+ }
0 commit comments