Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/***
2
Customized Bootstrap Dropdowns
3
***/
4
 
5
/***
6
Dropdowns
7
***/
8
 
9
$color-blue:                        #009dc7 !default;
10
 
11
.dropup.open,
12
.dropdown.open {
13
    > .dropdown-toggle {
14
        border-color: #ddd;
15
    }
16
}
17
 
18
/***
19
Dropdown Menu
20
***/
21
 
22
@if $theme-type == "default" {
23
/*rtl:ignore*/
24
.dropdown-menu {
25
    box-shadow: $dropdown-shadow;
26
}
27
}
28
 
29
.dropdown-menu {
30
    left: 0#{'/*rtl:auto*/'};
31
    min-width: 175px;
32
    position: absolute;
33
    z-index: 1000;
34
    display: none;
35
    float: left;
36
    list-style: none;
37
    text-shadow: none;
38
    padding: 0px;
39
    background-color: #ffffff;
40
    margin: 10px  0px 0px 0px;
41
    border: 1px solid #eee;
42
    font-family: $font-family-default;
43
 
44
    @include border-radius($general-border-radius);
45
 
46
    li.divider {
47
        background: #f1f3f6;
48
    }
49
 
50
    li.header {
51
        padding: 8px 14px 2px 14px;
52
    }
53
 
54
    > li {
55
        > a {
56
            padding: 8px 16px;
57
            color: lighten(#555, 10%);
58
            text-decoration: none;
59
            display: block;
60
            clear: both;
61
            font-weight: 300;
62
            line-height: 18px;
63
            white-space: nowrap;
64
 
65
            > [class^="fa-"],
66
            > [class*=" fa-"] {
67
                color: #888;
68
            }
69
 
70
            > [class^="icon-"],
71
            > [class*=" icon-"] {
72
                color: #666;
73
            }
74
 
75
            > [class^="glyphicon-"],
76
            > [class*=" glyphicon-"] {
77
                color: #888;
78
            }
79
        }
80
 
81
        &:hover,
82
        &.active,
83
        &.active:hover {
84
            > a {
85
                text-decoration: none;
86
                background-image: none;
87
                background-color: lighten(#eee, 3%);
88
                color: #555;
89
                filter:none;
90
            }
91
        }
92
    }
93
 
94
    &.bottom-up {
95
        top: auto;
96
        bottom: 100%;
97
        margin-bottom: 2px;
98
 
99
        &:before,
100
        &:after {
101
            display: none;
102
        }
103
    }
104
 
105
    > li:first-child:hover > a {
106
        border-radius: $general-border-radius $general-border-radius 0px 0px;
107
    }
108
 
109
    > li:last-child:hover > a {
110
        border-radius: 0px 0px $general-border-radius $general-border-radius;
111
    }
112
}
113
 
114
// hoverable dropdown menu
115
.dropdown-hover:hover {
116
    > .dropdown-menu {
117
        display: block;
118
    }
119
}
120
 
121
.dropdown,
122
.dropdown-toggle,
123
.btn-group {
124
    > .dropdown-menu {
125
 
126
        @if $theme-type == "default" {
127
            margin-top: 10px;
128
 
129
            &:before {
130
                position: absolute;
131
                top: -8px;
132
                left: 9px;
133
                right: auto;
134
                display: inline-block !important;
135
                border-right: 8px solid transparent;
136
                border-bottom: 8px solid #e0e0e0;
137
                border-left: 8px solid transparent;
138
                content: '';
139
            }
140
 
141
            &:after {
142
                position: absolute;
143
                top: -7px;
144
                left: 10px;
145
                right: auto;
146
                display: inline-block !important;
147
                border-right: 7px solid transparent;
148
                border-bottom: 7px solid #fff;
149
                border-left: 7px solid transparent;
150
                content: '';
151
            }
152
        }
153
 
154
        &.pull-left {
155
            &:before {
156
                left: auto;
157
                right: 9px;
158
            }
159
 
160
            &:after {
161
                left: auto;
162
                right: 10px;
163
            }
164
        }
165
 
166
        &.pull-right {
167
            &:before {
168
                left: auto;
169
                right: 9px;
170
            }
171
 
172
            &:after {
173
                left: auto;
174
                right: 10px;
175
            }
176
        }
177
    }
178
 
179
    &.dropup {
180
        > .dropdown-menu {
181
            margin-top: 0px;
182
            margin-bottom: 10px;
183
 
184
            &:after,
185
            &:before {
186
                display: none !important;
187
            }
188
        }
189
    }
190
}
191
 
192
.dropdown-toggle {
193
    &:after {
194
        display: none;
195
    }
196
}
197
 
198
/* Dropdown submenu support for Bootsrap 3 */
199
.dropdown-submenu {
200
    position: relative;
201
 
202
    > .dropdown-menu {
203
        top: 5px;
204
        left: 100%;
205
        margin-top: -6px;
206
        margin-left: -1px;
207
    }
208
 
209
    > a:after {
210
      position: absolute;
211
      display: inline-block;
212
      font-size: 14px;
213
      right: 7px;
214
      top: 7px;
215
      font-family: FontAwesome;
216
      height: auto;
217
      content: "\f105";
218
      font-weight: 300;
219
    }
220
 
221
    &:hover > .dropdown-menu {
222
        display: block;
223
    }
224
 
225
    &:hover > a:after {
226
        border-left-color: #ffffff;
227
    }
228
 
229
    &.pull-left {
230
        float: none;
231
 
232
        > .dropdown-menu{
233
            left: -100%;
234
            margin-left: 10px;
235
        }
236
    }
237
 
238
    // dropdown menu in dropup mode
239
    .dropup & > .dropdown-menu {
240
        top: auto;
241
        bottom: 0;
242
        margin-top: 0;
243
        margin-bottom: -2px;
244
    }
245
}
246
 
247
 
248
.nav.pull-right > li > .dropdown-menu,
249
.nav > li > .dropdown-menu.pull-right {
250
    right: 0;
251
    left: auto;
252
 
253
    &:before {
254
        right: 12px;
255
        left: auto;
256
    }
257
 
258
    &:after {
259
        right: 13px;
260
        left: auto;
261
    }
262
 
263
    .dropdown-menu {
264
        right: 100%;
265
        left: auto;
266
        margin-right: -1px;
267
        margin-left: 0;
268
    }
269
 
270
}
271
 
272
@media (max-width: $screen-xs-max) { /* 767px */
273
 
274
    .navbar-nav {
275
        .open {
276
            .dropdown-menu {
277
                position: absolute;
278
                float: left;
279
                width: auto;
280
                margin-top: 0;
281
                background-color: #ffffff;
282
                border: 1px solid #efefef;
283
                box-shadow: 5px 5px rgba(#666, 0.1);
284
 
285
                > li {
286
                    > a {
287
                        padding: 6px 0 6px 13px;
288
                        color: #333;
289
                    }
290
 
291
                    > a:hover,
292
                    > a:active {
293
                        background-color: #eee;
294
                    }
295
                }
296
            }
297
        }
298
    }
299
}
300
 
301
/***
302
Dropdown Checkboxes
303
***/
304
 
305
.dropdown-content {
306
    padding: 10px;
307
 
308
    form {
309
        margin:0;
310
    }
311
}
312
 
313
.dropdown.inline .dropdown-menu {
314
    display: inline-block;
315
    position: relative;
316
}
317
 
318
.dropdown-radiobuttons,
319
.dropdown-checkboxes {
320
    padding: 5px;
321
 
322
    label {
323
        display: block;
324
        font-weight: 300;
325
        color: #333;
326
        margin-bottom: 4px;
327
        margin-top: 4px;
328
 
329
        .radio {
330
            margin-right: 3px;
331
        }
332
    }
333
}
334
 
335
@if $theme-type == "material-design" {
336
    /*rtl:ignore*/
337
    .dropdown-menu {
338
        @extend .md-shadow-z-2-i;
339
    }
340
}
341
 
342
@if $theme-type == "material-design" {
343
    .dropdown-menu {
344
        border: 0 !important;
345
        border-radius: $general-border-radius !important;
346
        margin: 0;
347
 
348
        &:before,
349
        &:after {
350
            display: none !important;
351
        }
352
    }
353
 
354
    .btn-group {
355
        > .dropdown-menu {
356
            @extend .md-shadow-z-2-i;
357
            @include opacity(0);
358
            margin-top: 0px;
359
        }
360
 
361
        &.dropup {
362
            > .dropdown-menu {
363
                margin-top: 0px;
364
                margin-bottom: 0px;
365
            }
366
        }
367
    }
368
 
369
    .btn-group.open {
370
        > .dropdown-menu {
371
            @include ease-out(1500ms, opacity, 0.1ms);
372
            @include opacity(1);
373
        }
374
    }
375
}
376
 
377
/*--------------------------------------------------
378
    [Dropdown Menu v2]
379
----------------------------------------------------*/
380
 
381
.dropdown-menu-v2 {
382
    top: 100%;
383
    right: 0;
384
    z-index: 1001;
385
    display: none;
386
    float: left;
387
    min-width: 225px;
388
    padding: 20px 0;
389
    margin: 25px 0 0;
390
    font-size: 13px;
391
    text-align: left;
392
    list-style: none;
393
    position: absolute;
394
    background: #242b31;
395
    @include border-radius(2px);
396
    -webkit-background-clip: padding-box;
397
        background-clip: padding-box;
398
    @include cubic-transition($delay: 0, $duration:300ms, $property: (all));
399
 
400
    &:before {
401
        top: -10px;
402
        right: 0;
403
        width: 0;
404
        height: 0;
405
        content: ' ';
406
        position: absolute;
407
        border-style: solid;
408
        display: inline-block;
409
        border-width: 0 0 15px 15px;
410
        border-color: transparent transparent #242b31 transparent;
411
    }
412
 
413
    > li {
414
        > a {
415
            clear: both;
416
            color: #606e7a;
417
            display: block;
418
            font-weight: 600;
419
            padding: 8px 20px;
420
            position: relative;
421
            white-space: nowrap;
422
            line-height: 1.42857143;
423
            text-transform: uppercase;
424
 
425
            &:hover,
426
            &:focus {
427
                background: #21282e;
428
                text-decoration: none;
429
                color: $color-blue;
430
            }
431
        }
432
    }
433
 
434
    .active,
435
    .active,
436
    .active {
437
        > a,
438
        > a:hover,
439
        > a:focus {
440
            outline: 0;
441
            text-decoration: none;
442
            background-color: #21282e;
443
            color: $color-blue;
444
        }
445
    }
446
 
447
    .disabled,
448
    .disabled,
449
    .disabled {
450
        > a,
451
        > a:hover,
452
        > a:focus {
453
            color: $color-blue;
454
        }
455
    }
456
 
457
    .disabled,
458
    .disabled {
459
        > a:hover,
460
        > a:focus {
461
            text-decoration: none;
462
            cursor: not-allowed;
463
            background-color: transparent;
464
            background-image: none;
465
        }
466
    }
467
 
468
    .divider {
469
        height: 1px;
470
        margin: 9px 0;
471
        overflow: hidden;
472
        background: #2e353c;
473
    }
474
 
475
    .badge {
476
        top: 8px;
477
        right: 10px;
478
        position: absolute;
479
    }
480
}
481
 
482
.dropdown-menu-v2.pull-right {
483
    right: 0;
484
    left: auto;
485
}
486
 
487
.open {
488
    > .dropdown-menu-v2 {
489
        display: block;
490
    }
491
}
492
 
493
.pull-right {
494
    > .dropdown-menu-v2 {
495
        right: 0;
496
        left: auto;
497
    }
498
}