navbar-dropdown.less
3.31 KB
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
.enable_navbar_dropdowns() when(@enable-navbar-dropdowns = true) {
//top user info dropdowns
.dropdown-navbar {
padding:0;
width: @navbar-dropdown-width;
.box-shadow(@navbar-dropdown-shadow);
> li {
padding: 0 8px;
background-color: #FFF;
&.dropdown-header {
text-shadow: none;
padding-top: 0;
padding-bottom: 0;
line-height: 34px;
font-size: @font-size-navbar-dropdown-header;
font-weight: bold;
text-transform: none;
border-bottom: 1px solid;
}
> .@{icon} , > a > .@{icon} {
margin-right: 5px !important;
color: #555;
font-size: @font-size-navbar-dropdown-icon;
}
> a {
padding: 10px 2px;
margin: 0;
border-top: 1px solid;
font-size: @font-size-navbar-dropdown-item;
line-height: 16px;
color: #555;
&:active, &:hover, &:focus {
background-color: transparent !important;
color: #555;
}
.progress {
margin-bottom: 0;
margin-top: 4px;
}
.badge {
line-height: 16px;
padding-right: 4px;
padding-left: 4px;
font-size: @font-size-navbar-dropdown-item;
}
}
&:first-child > a , &.dropdown-header + li > a{
border-top-width: 0;
}
&.dropdown-footer > a {
color: #4F99C6;
text-align:center;
font-size: @font-size-navbar-dropdown-footer;
&:hover {
background-color:#FFF;
color:#4F99C6;
text-decoration:underline;
> .@{icon} {
text-decoration:none;
}
}
}
}//end of li
//navbar colors
.navbar-colors(@border-color; @hover-color; @header-bg; @header-txt; @header-icon; @item-bottom) {
border-color:@border-color;
> li {
&:hover {
background-color:@hover-color !important;
}
&.dropdown-header {
background-color:@header-bg !important;
color:@header-txt;
border-bottom-color:@border-color;
> .@{icon} {
color:@header-icon;
}
}
> a {
border-top-color: @item-bottom;
}
}
}
.navbar-colors(#BCD4E5 ; #F4F9FC ; #ECF2F7 ; #8090A0 ; #8090A0; #E4ECF3);
&.navbar-pink {
.navbar-colors(#E5BCD4 ; #FCF4F9 ; #F7ECF2 ; #B471A0 ; #C06090 ; #F3E4EC);
}
&.navbar-grey {
.navbar-colors(#E5E5E5 ; #F8F8F8 ; #F2F2F2 ; #3A87AD ; #3A87AD; #EEEEEE);
}
&.navbar-green {
.navbar-colors(#B4D5AC ; #F4F9EF ; #EBF7E4 ; #88AA66 ; #90C060; #ECF3E4);
}
[class*="btn"].@{icon} {
display: inline-block;
//border: none;
margin: 0 5px 0 0;
width: 24px;
text-align: center;
padding-left: 0;
padding-right: 0;
}
//user info on top navbar icons
.msg-photo {
margin-right: 6px;
max-width: 42px;
}
.msg-body {
display: inline-block;
line-height: 20px;
white-space: normal;
vertical-align: middle;
max-width: 175px;
}
.msg-title {
display: inline-block;
line-height: 14px;
}
.msg-time {
display: block;
font-size: @font-size-navbar-dropdown-msg-time;
color: #777;
> .@{icon} {
font-size: floor(@font-size-navbar-dropdown-msg-time * 1.3);
color: #555;
}
}
}
.dropdown-navbar > .dropdown-content {
padding: 0;
.dropdown-navbar {
list-style: none;
margin: 0;
padding: 0 !important;//to override padding-top: 2px when inside tabbed dropdown
.box-shadow(none);
width: auto;
display: block;
float: none;
border-width: 0;
position: static;
z-index: auto;
}
}
}
.enable_navbar_dropdowns();