forked from mnmly/select-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect-switch.css
More file actions
44 lines (40 loc) · 996 Bytes
/
select-switch.css
File metadata and controls
44 lines (40 loc) · 996 Bytes
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
.select-switch {
border: 2px solid #000;
width: 100px;
height: 21px;
position: relative;
cursor: pointer;
overflow: hidden;
font-family: "Consolas", monospace;
font-size: 12px;
text-transform: uppercase;
}
.select-switch:active .list-wrap {
-webkit-transform: scale(0.9);
-moz-transform: scale(0.9);
transform: scale(0.9);
}
.select-switch .list-wrap {
width: 100%;
height: 100%;
-webkit-transition: -webkit-transform 0.1s;
-moz-transition: -moz-transform 0.1s;
transition: transform 0.1s;
}
.select-switch ul {
pointer-events: none;
margin: 0;
padding: 0;
list-style: none;
position: absolute;
text-align: center;
width: 100%;
top: 1px;
left: 0;
-webkit-transition: -webkit-transform 0.15s cubic-bezier(0.86, 0, 0.07, 1);
-moz-transition: -moz-transform 0.15s cubic-bezier(0.86, 0, 0.07, 1);
transition: transform 0.15s cubic-bezier(0.86, 0, 0.07, 1);
}
.select-switch ul li {
line-height: 21px;
}