Skip to content

Commit f728697

Browse files
committed
Fixed themes styles
1 parent 5718caf commit f728697

File tree

7 files changed

+420
-310
lines changed

7 files changed

+420
-310
lines changed

public/themes/flat-red/selectric.scss

Lines changed: 0 additions & 207 deletions
This file was deleted.

src/.csscomb.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

public/themes/flat-light-blue/selectric.scss renamed to src/themes/flat-dark-blue/selectric.scss

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*======================================
22
Selectric
33
======================================*/
4-
$main-color: #DDD;
4+
$main-color : #DDD;
55
$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);
1212

1313
.selectric-wrapper {
1414
position: relative;
@@ -29,7 +29,7 @@ $inner-height: $height - ($border-width * 2);
2929
white-space: nowrap;
3030
overflow: hidden;
3131
text-overflow: ellipsis;
32-
margin: 0 $inner-height 0$spacing;
32+
margin: 0 $inner-height 0 $spacing;
3333
font-size: 12px;
3434
line-height: $inner-height;
3535
color: $text-color;
@@ -65,6 +65,10 @@ $inner-height: $height - ($border-width * 2);
6565
}
6666
}
6767

68+
.selectric-focus .selectric {
69+
background: darken($bg-color, 10%);
70+
}
71+
6872
.selectric-hover .selectric {
6973
background: darken($bg-color, 5%);
7074

@@ -101,7 +105,26 @@ $inner-height: $height - ($border-width * 2);
101105
select {
102106
position: absolute;
103107
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+
}
105128
}
106129
}
107130

@@ -133,7 +156,7 @@ $inner-height: $height - ($border-width * 2);
133156
position: absolute;
134157
top: 100%;
135158
left: 0;
136-
background: #F8F8F8;
159+
background: $bg-color;
137160
border: 1px solid darken($main-color, 10%);
138161
z-index: -1;
139162
box-shadow: 0 0 10px -6px;
@@ -159,20 +182,23 @@ $inner-height: $height - ($border-width * 2);
159182

160183
li {
161184
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;
166187
cursor: pointer;
167188

168189
&.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;
171197
}
172198

173199
&:hover {
174-
background: #F0F0F0;
175-
color: #444;
200+
background: mix($bg-color, #FFF, 70%);
201+
color: #FFF;
176202
}
177203
}
178204

@@ -181,7 +207,7 @@ $inner-height: $height - ($border-width * 2);
181207
opacity: 0.5;
182208
cursor: default !important;
183209
background: none !important;
184-
color: #666 !important;
210+
color: #FFF !important;
185211
user-select: none;
186212
}
187213

@@ -192,7 +218,7 @@ $inner-height: $height - ($border-width * 2);
192218
cursor: default;
193219
user-select: none;
194220
background: none;
195-
color: #444;
221+
color: #FFF;
196222
}
197223

198224
&.disabled li {
@@ -204,4 +230,4 @@ $inner-height: $height - ($border-width * 2);
204230
padding-left: 25px;
205231
}
206232
}
207-
}
233+
}

0 commit comments

Comments
 (0)