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
|
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
@import (reference) "../mixins";
@import (reference) "../variables";
@import (reference) "../init/links";
@import (reference) "menu";
@import (reference) "ui";
.dropdown {
position: relative;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
.menu;
position: absolute;
top: 100%;
left: 0;
z-index: @dropdown-menu-z-index;
display: none; // none by default, but block on "open" of the menu
float: left;
border: 1px solid @barBorderColor;
background-clip: padding-box;
&.pull-right {
right: 0;
left: auto;
}
}
.open {
> .dropdown-menu {
display: block;
}
> a {
outline: 0;
}
}
.dropdown-menu-right {
left: auto;
right: 0;
}
.dropdown-menu-left {
left: 0;
right: auto;
}
.dropdown-menu-shadow {
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.dropdown-header {
display: block;
padding: 3px 8px 5px;
font-size: @smallFontSize;
color: @secondFontColor;
white-space: nowrap; // as with > li > a
}
.dropdown-item {
padding: 5px 16px;
}
.dropdown-menu .small-divider {
height: 1px;
margin: 4px 20px;
overflow: hidden;
background-color: @barBackgroundColor;
}
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: (1000 - 10);
}
.dropdown-bottom-hint {
line-height: 16px;
margin-top: 5px;
margin-bottom: -5px;
padding: 5px 10px;
border-top: 1px solid #e6e6e6;
background-color: #f3f3f3;
color: #777;
font-size: 11px;
}
|