e05d7289
梁灏
update Menu
|
1
2
3
4
5
6
7
8
9
10
11
12
|
@menu-prefix-cls: ~"@{css-prefix}menu";
@menu-dropdown-item-prefix-cls: ~"@{menu-prefix-cls}-horizontal .@{menu-prefix-cls}-submenu .@{select-dropdown-prefix-cls} .@{menu-prefix-cls}-item";
.@{menu-prefix-cls} {
display: block;
margin: 0;
padding: 0;
outline: none;
list-style: none;
color: @text-color;
font-size: @font-size-base;
position: relative;
|
75873f90
梁灏
fixed #823
|
13
|
z-index: @zindex-select;
|
e05d7289
梁灏
update Menu
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
&-horizontal{
height: 60px;
line-height: 60px;
&.@{menu-prefix-cls}-light{
&:after{
content: '';
display: block;
width: 100%;
height: 1px;
background: @border-color-base;
position: absolute;
bottom: 0;
left: 0;
}
}
}
&-vertical{
|
e05d7289
梁灏
update Menu
|
33
34
35
36
37
38
39
40
41
42
43
|
&.@{menu-prefix-cls}-light{
&:after{
content: '';
display: block;
width: 1px;
height: 100%;
background: @border-color-base;
position: absolute;
top: 0;
bottom: 0;
right: 0;
|
0acdae19
梁灏
update Menu
|
44
|
z-index: 1;
|
e05d7289
梁灏
update Menu
|
45
46
47
48
49
50
51
52
|
}
}
}
&-light{
background: #fff;
}
&-dark{
|
c0478e27
Aresn
update Menu style
|
53
|
background: @menu-dark-title;
|
e05d7289
梁灏
update Menu
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
}
&-primary{
background: @primary-color;
}
&-item{
display: block;
outline: none;
list-style: none;
font-size: @font-size-base;
position: relative;
z-index: 1;
cursor: pointer;
transition: all @transition-time @ease-in-out;
|
e05d7289
梁灏
update Menu
|
68
|
}
|
7d0b7384
梁灏
fixed #3484
|
69
70
71
72
73
74
|
a&-item{
color: inherit;
&:hover, &:active{
color: inherit;
}
}
|
0acdae19
梁灏
update Menu
|
75
76
77
78
79
80
81
|
&-item > i{
margin-right: 6px;
}
&-submenu-title > i, &-submenu-title span > i{
margin-right: 8px;
}
|
e05d7289
梁灏
update Menu
|
82
83
84
85
86
87
88
|
&-horizontal &-item,
&-horizontal &-submenu
{
float: left;
padding: 0 20px;
position: relative;
cursor: pointer;
|
0acdae19
梁灏
update Menu
|
89
|
z-index: 3;
|
e05d7289
梁灏
update Menu
|
90
91
92
93
94
95
96
|
transition: all @transition-time @ease-in-out;
}
&-light&-horizontal &-item, &-light&-horizontal &-submenu{
height: inherit;
line-height: inherit;
border-bottom: 2px solid transparent;
|
0acdae19
梁灏
update Menu
|
97
|
color: @text-color;
|
e05d7289
梁灏
update Menu
|
98
99
100
101
102
103
|
&-active, &:hover{
color: @primary-color;
border-bottom: 2px solid @primary-color;
}
}
|
0acdae19
梁灏
update Menu
|
104
|
&-dark&-horizontal &-item, &-dark&-horizontal &-submenu{
|
c0478e27
Aresn
update Menu style
|
105
|
color: @menu-dark-subsidiary-color;
|
e05d7289
梁灏
update Menu
|
106
107
108
109
110
|
&-active, &:hover{
color: #fff;
}
}
|
0acdae19
梁灏
update Menu
|
111
112
|
&-primary&-horizontal &-item, &-primary&-horizontal &-submenu{
color: #fff;
|
e05d7289
梁灏
update Menu
|
113
114
115
116
117
118
|
&-active, &:hover{
background: @link-active-color;
}
}
&-horizontal &-submenu .@{select-dropdown-prefix-cls} {
|
cbd3591c
梁灏
fixed #131
|
119
120
|
min-width: 100%;
width: auto;
|
d31b0d47
梁灏
remove submenu ma...
|
121
|
max-height: none;
|
e05d7289
梁灏
update Menu
|
122
123
124
125
126
127
128
129
130
131
132
|
.@{menu-prefix-cls}-item{
height: auto;
line-height: normal;
border-bottom: 0;
float: none;
}
}
&-item-group{
line-height: normal;
&-title {
|
f9d87766
梁灏
update Menu
|
133
134
|
height: 30px;
line-height: 30px;
|
e05d7289
梁灏
update Menu
|
135
|
padding-left: 8px;
|
0acdae19
梁灏
update Menu
|
136
|
font-size: @font-size-small;
|
e05d7289
梁灏
update Menu
|
137
|
color: @legend-color;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
138
139
140
141
142
|
}
& > ul{
padding: 0 !important;
list-style: none !important;
|
e05d7289
梁灏
update Menu
|
143
144
|
}
}
|
0acdae19
梁灏
update Menu
|
145
146
147
148
149
150
151
152
153
154
155
156
|
// vertical
&-vertical &-item,
&-vertical &-submenu-title
{
padding: 14px 24px;
position: relative;
cursor: pointer;
z-index: 1;
transition: all @transition-time @ease-in-out;
&:hover{
|
cbaf4e23
梁灏
update Menu style
|
157
158
|
//background: @background-color-select-hover;
color: @primary-color;
|
0acdae19
梁灏
update Menu
|
159
160
161
162
163
164
165
166
167
168
169
|
}
}
&-vertical &-submenu-title-icon{
float: right;
position: relative;
top: 4px;
}
&-submenu-title-icon {
transition: transform @transition-time @ease-in-out;
}
|
4bce7645
zhigang.li
make menu support...
|
170
|
&-opened > * > &-submenu-title-icon{
|
0acdae19
梁灏
update Menu
|
171
172
173
|
transform: rotate(180deg);
}
|
4bce7645
zhigang.li
make menu support...
|
174
175
176
177
178
179
180
181
|
&-vertical &-submenu{
&-nested{
padding-left: 20px;
}
.@{menu-prefix-cls}-item{
padding-left: 43px;
}
}
|
0acdae19
梁灏
update Menu
|
182
183
|
&-vertical &-item-group{
&-title{
|
f9d87766
梁灏
update Menu
|
184
185
|
height: 48px;
line-height: 48px;
|
0acdae19
梁灏
update Menu
|
186
187
188
189
|
font-size: @font-size-base;
padding-left: 28px;
}
}
|
21cc957a
梁灏
update Menu
|
190
191
|
&-dark&-vertical &-item-group{
&-title{
|
c0478e27
Aresn
update Menu style
|
192
|
color: @menu-dark-group-title-color;
|
21cc957a
梁灏
update Menu
|
193
194
|
}
}
|
0acdae19
梁灏
update Menu
|
195
196
|
&-light&-vertical &-item{
|
cbaf4e23
梁灏
update Menu style
|
197
|
//border-right: 2px solid transparent;
|
0acdae19
梁灏
update Menu
|
198
199
|
&-active:not(.@{menu-prefix-cls}-submenu){
color: @primary-color;
|
cbaf4e23
梁灏
update Menu style
|
200
201
|
background: ~`colorPalette("@{primary-color}", 1)`;
//border-right: 2px solid @primary-color;
|
0acdae19
梁灏
update Menu
|
202
|
z-index: 2;
|
cbaf4e23
梁灏
update Menu style
|
203
204
205
206
207
208
209
210
211
212
|
&:after{
content: '';
display: block;
width: 2px;
position: absolute;
top: 0;
bottom: 0;
right: 0;
background: @primary-color;
}
|
0acdae19
梁灏
update Menu
|
213
214
|
}
}
|
21cc957a
梁灏
update Menu
|
215
216
|
&-dark&-vertical &-item, &-dark&-vertical &-submenu-title{
|
c0478e27
Aresn
update Menu style
|
217
|
color: @menu-dark-subsidiary-color;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
218
219
220
|
&-active:not(.@{menu-prefix-cls}-submenu),
&-active:not(.@{menu-prefix-cls}-submenu):hover
{
|
21cc957a
梁灏
update Menu
|
221
222
|
background: @menu-dark-active-bg;
}
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
223
224
|
&:hover{
color: #fff;
|
c0478e27
Aresn
update Menu style
|
225
|
background: @menu-dark-title;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
226
|
}
|
21cc957a
梁灏
update Menu
|
227
228
|
&-active:not(.@{menu-prefix-cls}-submenu){
color: @primary-color;
|
cbaf4e23
梁灏
update Menu style
|
229
|
//border-right: 2px solid @primary-color;
|
21cc957a
梁灏
update Menu
|
230
231
232
233
|
}
}
&-dark&-vertical &-submenu &-item{
&:hover{
|
fd5cd823
梁灏
publish 0.9.10-rc-1
|
234
|
color: #fff;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
235
|
background: transparent !important;
|
21cc957a
梁灏
update Menu
|
236
|
}
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
237
|
&-active,&-active:hover{
|
21cc957a
梁灏
update Menu
|
238
239
|
border-right: none;
color: #fff;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
240
|
background: @primary-color !important;
|
21cc957a
梁灏
update Menu
|
241
242
|
}
}
|
4bce7645
zhigang.li
make menu support...
|
243
244
245
246
|
// &-dark&-vertical &-item-active &-submenu-title{
// color: #fff;
// }
&-dark&-vertical &-child-item-active > &-submenu-title{
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
247
248
|
color: #fff;
}
|
21cc957a
梁灏
update Menu
|
249
250
251
|
&-dark&-vertical &-opened{
background: @menu-dark-active-bg;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
252
|
.@{menu-prefix-cls}-submenu-title{
|
c0478e27
Aresn
update Menu style
|
253
|
background: @menu-dark-title;
|
fc3ffbe0
梁灏
publish 0.9.10-rc-2
|
254
|
}
|
4bce7645
zhigang.li
make menu support...
|
255
256
257
258
259
260
|
.@{menu-prefix-cls}-submenu-has-parent-submenu{
.@{menu-prefix-cls}-submenu-title{
background: transparent;
}
}
|
21cc957a
梁灏
update Menu
|
261
|
}
|
e05d7289
梁灏
update Menu
|
262
|
}
|
f9d87766
梁灏
update Menu
|
263
264
265
266
267
268
|
.select-item(@menu-prefix-cls, @menu-dropdown-item-prefix-cls);
.@{menu-dropdown-item-prefix-cls} {
padding: 7px 16px 8px;
font-size: @font-size-base !important;
}
|