2
* # Semantic - Dropdown
3
* http://github.com/jlukic/semantic-ui/
6
* Copyright 2014 Contributors
7
* Released under the MIT license
8
* http://opensource.org/licenses/MIT
11
/*******************************
13
*******************************/
17
display: inline-block;
19
-webkit-transition: border-radius 0.1s ease, width 0.2s ease;
20
-moz-transition: border-radius 0.1s ease, width 0.2s ease;
21
transition: border-radius 0.1s ease, width 0.2s ease;
22
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
23
-moz-tap-highlight-color: rgba(0, 0, 0, 0);
24
tap-highlight-color: rgba(0, 0, 0, 0);
26
/*******************************
28
*******************************/
38
background-color: #FFFFFF;
43
-webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
44
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
45
border-radius: 0px 0px 0.325em 0.325em;
46
-webkit-transition: opacity 0.2s ease;
47
-moz-transition: opacity 0.2s ease;
48
transition: opacity 0.2s ease;
54
.ui.dropdown > .dropdown.icon {
56
margin: 0em 0em 0em 1em;
58
.ui.dropdown > .dropdown.icon:before {
61
.ui.dropdown .menu .item .dropdown.icon {
64
margin: 0em 0em 0em 0.5em;
66
.ui.dropdown .menu .item .dropdown.icon:before {
67
content: "\f0da" /*rtl:"\f0d9"*/;
72
.ui.dropdown > .text {
73
display: inline-block;
74
-webkit-transition: color 0.2s ease;
75
-moz-transition: color 0.2s ease;
76
transition: color 0.2s ease;
78
/* Flyout Direction */
85
.ui.dropdown .menu .menu {
87
left: 100% !important;
88
margin: 0em !important;
89
border-radius: 0 0.325em 0.325em 0em !important;
91
.ui.dropdown .menu .menu:after {
94
.ui.dropdown .menu .item {
97
border-top: 1px solid rgba(0, 0, 0, 0.05);
101
color: rgba(0, 0, 0, 0.75);
102
padding: 0.85em 1em !important;
104
text-transform: none;
107
-webkit-touch-callout: none;
109
.ui.dropdown .menu .item:before {
112
.ui.dropdown .menu .item .icon {
113
margin-right: 0.75em;
115
.ui.dropdown .menu .item:first-child {
118
/*******************************
120
*******************************/
121
/* Opposite on last menu on right */
122
.ui.menu .right.menu .dropdown:last-child .menu,
123
.ui.buttons > .ui.dropdown:last-child .menu {
127
.ui.vertical.menu .dropdown.item > .dropdown.icon:before {
128
content: "\f0da" /*rtl:"\f0d9"*/;
130
.ui.dropdown.icon.button > .dropdown.icon {
133
/*******************************
135
*******************************/
136
/* Dropdown Visible */
137
.ui.visible.dropdown > .menu {
140
/*--------------------
142
----------------------*/
143
/* Menu Item Hover */
144
.ui.dropdown .menu .item:hover {
145
background-color: rgba(0, 0, 0, 0.02);
148
/*--------------------
150
----------------------*/
151
/* Menu Item Selected */
152
.ui.dropdown .menu .item.selected {
153
background-color: rgba(0, 0, 0, 0.02);
156
/*--------------------
158
----------------------*/
159
/* Menu Item Active */
160
.ui.dropdown .menu .active.item {
161
background-color: rgba(0, 0, 0, 0.06) !important;
163
border-color: transparent !important;
164
-webkit-box-shadow: none;
166
-webkit-box-shadow: none;
170
/*--------------------
172
----------------------*/
173
.ui.dropdown > .default.text,
174
.ui.default.dropdown > .text {
175
color: rgba(0, 0, 0, 0.5);
177
.ui.dropdown:hover > .default.text,
178
.ui.default.dropdown:hover > .text {
179
color: rgba(0, 0, 0, 0.8);
181
/*--------------------
183
----------------------*/
185
.ui.dropdown.error > .text,
186
.ui.dropdown.error > .default.text {
187
color: #D95C5C !important;
189
.ui.selection.dropdown.error {
190
background-color: #FFFAFA;
191
-webkit-box-shadow: 0px 0px 0px 1px #e7bebe !important;
192
box-shadow: 0px 0px 0px 1px #e7bebe !important;
194
.ui.selection.dropdown.error:hover {
195
-webkit-box-shadow: 0px 0px 0px 1px #e7bebe !important;
196
box-shadow: 0px 0px 0px 1px #e7bebe !important;
198
.ui.dropdown.error > .menu,
199
.ui.dropdown.error > .menu .menu {
200
-webkit-box-shadow: 0px 0px 1px 1px #E7BEBE !important;
201
box-shadow: 0px 0px 1px 1px #E7BEBE !important;
203
.ui.dropdown.error > .menu .item {
204
color: #D95C5C !important;
207
.ui.dropdown.error > .menu .item:hover {
208
background-color: #FFF2F2 !important;
211
.ui.dropdown.error > .menu .active.item {
212
background-color: #FDCFCF !important;
214
/*******************************
216
*******************************/
220
/* Displays without javascript */
221
.ui.simple.dropdown .menu:before,
222
.ui.simple.dropdown .menu:after {
225
.ui.simple.dropdown .menu {
228
top: -9999px !important;
233
-webkit-transition: opacity 0.2s ease-out;
234
-moz-transition: opacity 0.2s ease-out;
235
transition: opacity 0.2s ease-out;
237
.ui.simple.active.dropdown,
238
.ui.simple.dropdown:hover {
239
border-bottom-left-radius: 0em !important;
240
border-bottom-right-radius: 0em !important;
242
.ui.simple.active.dropdown > .menu,
243
.ui.simple.dropdown:hover > .menu {
247
top: 100% !important;
250
.ui.simple.dropdown > .menu .item:active > .menu,
251
.ui.simple.dropdown:hover > .menu .item:hover > .menu {
256
left: 100% !important;
259
.ui.simple.disabled.dropdown:hover .menu {
268
/* Displays like a select box */
269
.ui.selection.dropdown {
271
display: inline-block;
272
word-wrap: break-word;
274
background-color: #FFFFFF;
277
color: rgba(0, 0, 0, 0.8);
278
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
279
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
280
border-radius: 0.3125em !important;
282
.ui.selection.dropdown select {
285
.ui.selection.dropdown > .dropdown.icon {
287
margin: 0.2em 0em 0.2em 1.25em;
288
-webkit-transition: opacity 0.2s ease-out;
289
-moz-transition: opacity 0.2s ease-out;
290
transition: opacity 0.2s ease-out;
292
.ui.selection.dropdown,
293
.ui.selection.dropdown .menu {
294
-webkit-transition: -webkit-box-shadow 0.2s ease-out;
295
-moz-transition: box-shadow 0.2s ease-out;
296
transition: box-shadow 0.2s ease-out;
298
.ui.selection.dropdown .menu {
303
-webkit-box-shadow: 0px 1px 0px 1px #E0E0E0;
304
box-shadow: 0px 1px 0px 1px #E0E0E0;
305
border-radius: 0px 0px 0.325em 0.325em;
307
.ui.selection.dropdown .menu:after,
308
.ui.selection.dropdown .menu:before {
311
.ui.selection.dropdown .menu img {
313
display: inline-block;
314
vertical-align: middle;
317
/*--------------------
319
----------------------*/
320
.ui.selection.dropdown.error,
321
.ui.selection.dropdown.error .item {
322
background-color: #FFFAFA;
325
.ui.selection.dropdown.error {
326
-webkit-box-shadow: 0px 0px 0px 1px #e7bebe !important;
327
box-shadow: 0px 0px 0px 1px #e7bebe !important;
329
.ui.selection.dropdown.error .menu {
330
-webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
331
box-shadow: 0px 1px 0px 1px #E7BEBE;
332
border-radius: 0px 0px 0.325em 0.325em;
334
/* Menu Item Active */
335
.ui.selection.dropdown.error .menu .active.item {
336
background-color: #FDCFCF !important;
339
.ui.selection.dropdown:hover {
340
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
341
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
343
.ui.selection.dropdown:hover .menu {
344
-webkit-box-shadow: 0px 1px 0px 1px #D3D3D3;
345
box-shadow: 0px 1px 0px 1px #D3D3D3;
347
.ui.selection.dropdown:hover > .dropdown.icon {
350
.ui.selection.dropdown.error:hover {
351
-webkit-box-shadow: 0px 0px 0px 1px #e7bebe !important;
352
box-shadow: 0px 0px 0px 1px #e7bebe !important;
354
.ui.selection.dropdown.error:hover .menu {
355
-webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
356
box-shadow: 0px 1px 0px 1px #E7BEBE;
358
.ui.selection.dropdown.error .menu .item:hover {
359
background-color: #FFF2F2;
362
.ui.selection.dropdown.error .menu .item.selected {
363
background-color: #FFF2F2;
366
.ui.visible.selection.dropdown {
367
border-bottom-left-radius: 0em !important;
368
border-bottom-right-radius: 0em !important;
371
.ui.active.selection.dropdown {
372
border-radius: 0.3125em 0.3125em 0em 0em !important;
374
.ui.active.selection.dropdown > .dropdown.icon {
383
.ui.fluid.dropdown > .dropdown.icon {
389
.ui.inline.dropdown {
391
display: inline-block;
394
.ui.inline.dropdown .dropdown.icon {
395
margin: 0em 0.5em 0em 0.25em;
397
.ui.inline.dropdown .text {
400
.ui.inline.dropdown .menu {
403
border-radius: 0.325em;
408
.ui.floating.dropdown .menu {
411
margin-top: 0.5em !important;
412
border-radius: 0.325em;
417
.ui.pointing.dropdown .menu {
420
border-radius: 0.325em;
422
.ui.pointing.dropdown .menu:after {
425
pointer-events: none;
430
-webkit-box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.05);
431
box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.05);
432
background-image: none;
433
background-color: #FFFFFF;
434
-webkit-transform: rotate(45deg);
435
-moz-transform: rotate(45deg);
436
-ms-transform: rotate(45deg);
437
transform: rotate(45deg);
440
.ui.pointing.dropdown .menu .active.item:first-child {
441
background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
442
background: transparent -moz-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
443
background: transparent -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.03)));
444
background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.03));
447
.ui.pointing.dropdown .menu:after {
450
margin: 0em 0em 0em -0.25em;
452
.ui.top.left.pointing.dropdown .menu {
457
margin: 0.75em 0em 0em;
459
.ui.top.left.pointing.dropdown .menu:after {
464
-webkit-transform: rotate(45deg);
465
-moz-transform: rotate(45deg);
466
-ms-transform: rotate(45deg);
467
transform: rotate(45deg);
469
.ui.top.right.pointing.dropdown .menu {
474
margin: 0.75em 0em 0em;
476
.ui.top.right.pointing.dropdown .menu:after {
481
-webkit-transform: rotate(45deg);
482
-moz-transform: rotate(45deg);
483
-ms-transform: rotate(45deg);
484
transform: rotate(45deg);
486
.ui.left.pointing.dropdown .menu {
490
margin: 0em 0em 0em 0.75em;
492
.ui.left.pointing.dropdown .menu:after {
495
margin: 0em 0em 0em 0em;
496
-webkit-transform: rotate(-45deg);
497
-moz-transform: rotate(-45deg);
498
-ms-transform: rotate(-45deg);
499
transform: rotate(-45deg);
501
.ui.right.pointing.dropdown .menu {
505
margin: 0em 0.75em 0em 0em;
507
.ui.right.pointing.dropdown .menu:after {
511
margin: 0em 0em 0em 0em;
512
-webkit-transform: rotate(135deg);
513
-moz-transform: rotate(135deg);
514
-ms-transform: rotate(135deg);
515
transform: rotate(135deg);