/
menu.less
132 lines (119 loc) · 2.37 KB
/
menu.less
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
/*!
* jQuery UI Bootstrap v1.0 Alpha
*
* jQuery UI Menu 1.10.3
* http://docs.jquery.com/UI/Menu#theming
*
* Portions copyright Addy Osmani, jQuery UI & Twitter, Inc.
* Created the LESS version by @dharapvj
* Released under MIT
*/
.ui-menu {
list-style: none;
padding: 2px;
margin: 0;
display: block;
outline: none;
.ui-menu{
margin-top: -3px;
position: absolute;
list-style:none;
}
}
/*
* Bug inline with IE sub menu
*/
/* IE9, IE10 */
@media screen and (min-width:~"0\0") {
.ui-menu li {
list-style-type: none;
display: inline;
line-height: 0;
}
li.ui-menu-item {
/* This fixes the IE10 issue (jQuery UI Issue #8844)*/
list-style-type: none;
}
}
.ui-menu{
.ui-menu-item {
margin: 0;
padding: 0;
width: 100%;
list-style:none;
/* support: IE10, see #8844 */
list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
}
.ui-menu-divider {
margin: 5px -2px 5px -2px;
height: 0;
font-size: 0;
line-height: 0;
border-width: 1px 0 0 0;
}
.ui-menu-item a {
text-decoration: none;
display: block;
padding: 2px .4em;
line-height: 1.5;
min-height: 0; /* support: IE7 */
font-weight: normal;
background-color: @ui-menu-item-a-bg;
border-color: @ui-menu-item-a-border;
color: @ui-menu-item-a-color;
&.ui-corner-all{
border-radius: 0px;
}
&.ui-state-focus, &.ui-state-active, &.ui-widget-content{
font-weight: bold;
margin: 0;
display: block;
white-space: nowrap;
}
&.ui-state-active, &.ui-widget-content {
background-color: @ui-menu-item-a-active-bg;
border-color: @ui-menu-item-a-active-border;
color: @ui-menu-item-a-active-color;
}
&.ui-state-focus {
background-color: @ui-menu-item-a-focus-bg;
border-color: @ui-menu-item-a-focus-border;
color: @ui-menu-item-a-focus-color;
}
/* Fix problem with border in ui-state-active */
.ui-state-active {
padding: 1px .4em;
}
}
}
.ui-menu .ui-state-disabled {
font-weight: normal;
margin: .4em 0 .2em;
line-height: 1.5;
a {
cursor: default;
}
}
/* icon support */
.ui-menu-icons {
position: relative;
.ui-menu-item a {
position: relative;
padding-left: 2em;
}
}
.ui-menu{
width: 200px;
margin-bottom: 2em;
/* left-aligned */
.ui-icon {
position: absolute;
top: .2em;
left: .2em;
}
/* right-aligned */
.ui-menu-icon {
position: static;
float: right;
}
}