-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdropSelect.scss
78 lines (69 loc) · 1.47 KB
/
dropSelect.scss
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
75
76
77
78
/***
* dropSelect jQuery Plugin
* (c) Craig Holden
* http://tecktron.github.io/dropSelect/
* MIT License - Please keep this header.
***/
.dropSelect {
position: relative;
display: inline-block;
/* border: #000 solid thin;
background-color: #ccc;
color: #C00;*/
cursor: pointer;
font-size: 18px;
vertical-align: middle;
&:hover {
/*background-color: #07c;
color: #EE0*/
div.items {
display: block;
/*border-top: thin solid #000;*/
}
}
div {
.selected {
height: 100%;
line-height: 2rem;
padding: 1rem 3rem 1rem 1rem;
}
.icon-arrow-down {
display: block;
font-size: 0.7rem;
position: absolute;
background: transparent none repeat scroll 0 0;
right: 1.3rem;
top: 1.4rem;
&::after {
content: "▼";
}
}
.items {
display: none;
overflow-y: auto;
/* show 4 items. to show 3, change the multiplier to 3 */
height: calc(4rem * 4);
background: inherit;
width: inherit;
position: absolute;
border: inherit;
margin-left: -1px;
a {
display: block;
height: 2rem;
line-height: 2rem;
padding: 1rem;
white-space: nowrap;
.active {
/*background-color: #666;*/
cursor: default;
/*color: #ccc;*/
}
&:not(.active):hover {
/*background-color: #666;*/
/*color: #FFF;*/
}
}
}
}
}