-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathselect.css
74 lines (68 loc) · 1.47 KB
/
select.css
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* ==================================================================================== */
/* http://doodlenerd.com/html-control/css-dropdown-generator */
.select {
position: relative;
display: inline-block;
margin-bottom: 15px;
width: 100%;
}
.select select {
font-family: 'Arial';
display: inline-block;
width: 100%;
cursor: pointer;
padding: 10px 15px;
outline: 0;
border: 1px solid #000000;
border-radius: 0px;
background: #fcfcfc;
color: #7b7b7b;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
.select select::-ms-expand {
display: none;
}
.select select:hover,
.select select:focus {
color: #000000;
background: #f4f4f4;
}
.select select:disabled {
opacity: 0.5;
pointer-events: none;
}
.select_arrow {
position: absolute;
top: 10px;
right: 10px;
width: 14px;
height: 14px;
border: solid #7b7b7b;
border-width: 0 3px 3px 0;
display: inline-block;
padding: 3px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
.select select:hover ~ .select_arrow,
.select select:focus ~ .select_arrow {
border-color: #000000;
}
.select select:disabled ~ .select_arrow {
border-top-color: #cccccc;
}
.select option {
background-color: white;
color: gray;
width: 310px;
padding: 10px 15px;
height: 20px;
cursor: pointer;
}
.select option:hover {
padding-left: 25px;
width: 270px;
color: #EC6F66;
}