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
.dropup.open,
10
.dropdown.open {
11
    > .dropdown-toggle {
12
        border-color: #ddd;
13
    }
14
}
15
 
16
/***
17
Dropdown Menu
18
***/
19
 
20
.dropdown-menu {
21
    min-width: 175px;
22
    position: absolute;
23
    top: 100%;
24
    left: 0;
25
    z-index: 1000;
26
    display: none;
27
    float: left;
28
    list-style: none;
29
    text-shadow: none;
30
    padding: 0px;
31
    margin: 10px  0px 0px 0px;
32
    background-color: #ffffff;
33
    box-shadow: 5px 5px rgba(#666, 0.1);
34
    border: 1px solid #eee;
35
    font-family: $font-family-default;
36
 
37
    @include border-radius($general-border-radius);
38
 
39
    li.divider {
40
        background: #f1f3f6;
41
    }
42
 
43
    li.dropdown-header {
44
        padding: 8px 14px 2px 14px;
45
    }
46
 
47
    li > a {
48
        padding: 8px 14px;
49
        color: #555;
50
        text-decoration: none;
51
        display: block;
52
        clear: both;
53
        font-weight: 300;
54
        line-height: 18px;
55
        white-space: nowrap;
56
 
57
        > [class^="fa-"],
58
        > [class*=" fa-"] {
59
            color: #888;
60
        }
61
 
62
        > [class^="icon-"],
63
        > [class*=" icon-"] {
64
            color: #666;
65
        }
66
 
67
        > [class^="glyphicon-"],
68
        > [class*=" glyphicon-"] {
69
            color: #888;
70
        }
71
    }
72
 
73
    li > a:hover,
74
    .active > a,
75
    .active > a:hover {
76
      text-decoration: none;
77
      background-image: none;
78
      background-color: lighten(#eee, 3%);
79
      color: #555;
80
      filter:none;
81
    }
82
 
83
    &.bottom-up {
84
        top: auto;
85
        bottom: 100%;
86
        margin-bottom: 2px;
87
    }
88
}
89
 
90
.dropdown,
91
.dropdown-toggle,
92
.btn-group {
93
    > .dropdown-menu {
94
        margin-top: 10px;
95
 
96
        &:before {
97
            position: absolute;
98
            top: -8px;
99
            left: 9px;
100
            right: auto;
101
            display: inline-block !important;
102
            border-right: 8px solid transparent;
103
            border-bottom: 8px solid #e0e0e0;
104
            border-left: 8px solid transparent;
105
            content: '';
106
        }
107
 
108
        &:after {
109
            position: absolute;
110
            top: -7px;
111
            left: 10px;
112
            right: auto;
113
            display: inline-block !important;
114
            border-right: 7px solid transparent;
115
            border-bottom: 7px solid #fff;
116
            border-left: 7px solid transparent;
117
            content: '';
118
        }
119
 
120
        &.pull-left {
121
            &:before {
122
                left: auto;
123
                right: 9px;
124
            }
125
 
126
            &:after {
127
                left: auto;
128
                right: 10px;
129
            }
130
        }
131
 
132
        &.pull-right {
133
            &:before {
134
                left: auto;
135
                right: 9px;
136
            }
137
 
138
            &:after {
139
                left: auto;
140
                right: 10px;
141
            }
142
        }
143
    }
144
 
145
    &.dropup {
146
        > .dropdown-menu {
147
            margin-top: 0px;
148
            margin-bottom: 10px;
149
 
150
            &:after,
151
            &:before {
152
                display: none !important;
153
            }
154
        }
155
    }
156
}
157
 
158
 
159
/* Dropdown submenu support for Bootsrap 3 */
160
.dropdown-submenu {
161
    position: relative;
162
 
163
    > .dropdown-menu {
164
        top: 5px;
165
        left: 100%;
166
        margin-top: -6px;
167
        margin-left: -1px;
168
    }
169
 
170
    > a:after {
171
      position: absolute;
172
      display: inline-block;
173
      font-size: 14px;
174
      right: 7px;
175
      top: 7px;
176
      font-family: FontAwesome;
177
      height: auto;
178
      content: "\f105";
179
      font-weight: 300;
180
    }
181
 
182
    &:hover > .dropdown-menu {
183
        display: block;
184
    }
185
 
186
    &:hover > a:after {
187
        border-left-color: #ffffff;
188
    }
189
 
190
    &.pull-left {
191
        float: none;
192
 
193
        > .dropdown-menu{
194
            left: -100%;
195
            margin-left: 10px;
196
        }
197
    }
198
 
199
    // dropdown menu in dropup mode
200
    .dropup & > .dropdown-menu {
201
        top: auto;
202
        bottom: 0;
203
        margin-top: 0;
204
        margin-bottom: -2px;
205
    }
206
}
207
 
208
 
209
.nav.pull-right > li > .dropdown-menu,
210
.nav > li > .dropdown-menu.pull-right {
211
    right: 0;
212
    left: auto;
213
 
214
    &:before {
215
        right: 12px;
216
        left: auto;
217
    }
218
 
219
    &:after {
220
        right: 13px;
221
        left: auto;
222
    }
223
 
224
    .dropdown-menu {
225
        right: 100%;
226
        left: auto;
227
        margin-right: -1px;
228
        margin-left: 0;
229
    }
230
 
231
}
232
 
233
@media (max-width: $screen-xs-max) { /* 767px */
234
 
235
    .navbar-nav {
236
        .open {
237
            .dropdown-menu {
238
                position: absolute;
239
                float: left;
240
                width: auto;
241
                margin-top: 0;
242
                background-color: #ffffff;
243
                border: 1px solid #efefef;
244
                box-shadow: 5px 5px rgba(#666, 0.1);
245
 
246
                > li {
247
                    > a {
248
                        padding: 6px 0 6px 13px;
249
                        color: #333;
250
                    }
251
 
252
                    > a:hover,
253
                    > a:active {
254
                        ackground-color: #eee;
255
                    }
256
                }
257
            }
258
        }
259
    }
260
}
261
 
262
/***
263
Dropdown Checkboxes
264
***/
265
 
266
.dropdown-content {
267
    padding:5px;
268
 
269
    form {
270
        margin:0;
271
    }
272
}
273
 
274
.dropdown.inline .dropdown-menu {
275
    display: inline-block;
276
    position: relative;
277
}
278
 
279
.dropdown-radiobuttons,
280
.dropdown-checkboxes {
281
    padding: 5px;
282
 
283
    label {
284
        display: block;
285
        font-weight: 300;
286
        color: #333;
287
        margin-bottom: 4px;
288
        margin-top: 4px;
289
 
290
        .radio {
291
            margin-right: 3px;
292
        }
293
    }
294
}