forked from jseppi/angular-dropdowns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
angular-dropdowns.css
228 lines (194 loc) · 4.18 KB
/
angular-dropdowns.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/****** dropdown-select *******/
.wrap-dd-select {
/* Size and position */
position: relative;
width: 200px;
margin: 0 auto;
padding: 10px;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
/* Styles */
background: #fff;
border-radius: 7px;
border: 1px solid rgba(0,0,0,0.15);
box-shadow: 0 1px 1px rgba(50,50,50,0.1);
cursor: pointer;
outline: none;
/* Font settings */
font-weight: bold;
color: #8AA8BD;
}
.wrap-dd-select:after {
content: "";
width: 0;
height: 0;
position: absolute;
right: 15px;
top: 50%;
margin-top: -3px;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: #8aa8bd transparent;
}
.wrap-dd-select .dropdown {
/* Size & position */
position: absolute;
top: 100%;
left: 0;
right: 0;
/* Styles */
background: white;
padding: 0;
border-radius: inherit;
border: 1px solid rgba(0,0,0,0.17);
box-shadow: 0 0 5px rgba(0,0,0,0.1);
font-weight: normal;
list-style: none;
/* Hiding */
visibility: hidden;
}
.wrap-dd-select .dropdown li.divider {
padding: 2px 0;
background: #e6e8ea;
}
.wrap-dd-select .dropdown li.divider-label {
background: #e6e8ea;
cursor: default;
color: #000;
padding: 10px 0;
}
.wrap-dd-select .dropdown li a {
display: block;
padding: 10px;
text-decoration: none;
color: #8aa8bd;
border-bottom: 1px solid #e6e8ea;
box-shadow: inset 0 1px 0 rgba(255,255,255,1);
cursor: pointer;
}
.wrap-dd-select .dropdown li i {
float: right;
color: inherit;
}
.wrap-dd-select .dropdown li:first-of-type a {
border-radius: 7px 7px 0 0;
}
.wrap-dd-select .dropdown li:last-of-type a {
border-radius: 0 0 7px 7px;
border: none;
}
/* Hover state */
.wrap-dd-select .dropdown li:hover a {
background: #f3f8f8;
}
.wrap-dd-select .dropdown:after {
content: "";
width: 0;
height: 0;
position: absolute;
bottom: 100%;
right: 15px;
border-width: 0 6px 6px 6px;
border-style: solid;
border-color: #fff transparent;
}
.wrap-dd-select .dropdown:before {
content: "";
width: 0;
height: 0;
position: absolute;
bottom: 100%;
right: 13px;
border-width: 0 8px 8px 8px;
border-style: solid;
border-color: rgba(0,0,0,0.1) transparent;
}
.wrap-dd-select.active .dropdown {
visibility: visible;
}
/****** dropdown-menu *******/
.wrap-dd-menu {
/* Size and position */
position: relative;
width: 200px;
margin: 0 auto;
padding: 10px;
}
.wrap-dd-menu .dropdown {
/* Size & position */
position: absolute;
z-index: 1;
top: 70%;
left: 0;
right: 0;
/* Styles */
background: white;
padding: 0;
border-radius: 7px;
border: 1px solid rgba(0,0,0,0.17);
box-shadow: 0 0 5px rgba(0,0,0,0.1);
font-weight: normal;
list-style: none;
/* Hiding */
visibility: hidden;
}
.wrap-dd-menu .dropdown li.divider {
padding: 2px 0;
background: #e6e8ea;
}
.wrap-dd-menu .dropdown li.divider-label {
background: #e6e8ea;
cursor: default;
color: #000;
padding: 10px 0;
}
.wrap-dd-menu .dropdown li a {
display: block;
padding: 10px;
text-decoration: none;
color: #8aa8bd;
border-bottom: 1px solid #e6e8ea;
box-shadow: inset 0 1px 0 rgba(255,255,255,1);
cursor: pointer;
}
.wrap-dd-menu .dropdown li i {
float: right;
color: inherit;
}
.wrap-dd-menu .dropdown li:first-of-type a {
border-radius: 7px 7px 0 0;
}
.wrap-dd-menu .dropdown li:last-of-type a {
border-radius: 0 0 7px 7px;
border: none;
}
/* Hover state */
.wrap-dd-menu .dropdown li:hover a {
background: #f3f8f8;
}
.wrap-dd-menu .dropdown:after {
content: "";
width: 0;
height: 0;
position: absolute;
bottom: 100%;
right: 102px;
border-width: 0 6px 6px 6px;
border-style: solid;
border-color: #fff transparent;
}
.wrap-dd-menu .dropdown:before {
content: "";
width: 0;
height: 0;
position: absolute;
bottom: 100%;
right: 100px;
border-width: 0 8px 8px 8px;
border-style: solid;
border-color: rgba(0,0,0,0.1) transparent;
}
.wrap-dd-menu .dropdown.active {
visibility: visible;
}