Skip to content

Commit bae763f

Browse files
committed
Menu: simplify and improve item styling (add margin, tighter multi-line)
1 parent ffab89e commit bae763f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

themes/base/jquery.ui.menu.css

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
position: absolute;
2121
}
2222
.ui-menu .ui-menu-item {
23-
margin: 0;
23+
border: 1px solid transparent;
24+
margin: .5em 0;
2425
display: block;
25-
padding: 2px .4em;
26-
line-height: 1.5;
26+
padding: .3em 1em;
27+
line-height: 1.3;
2728
min-height: 0; /* support: IE7 */
2829
font-weight: normal;
2930
/* support: IE10, see #8844 */
@@ -36,17 +37,6 @@
3637
line-height: 0;
3738
border-width: 1px 0 0 0;
3839
}
39-
.ui-menu .ui-state-focus,
40-
.ui-menu .ui-state-active {
41-
font-weight: normal;
42-
margin: -1px;
43-
}
44-
45-
.ui-menu .ui-state-disabled {
46-
font-weight: normal;
47-
margin: .4em 0 .2em;
48-
line-height: 1.5;
49-
}
5040
.ui-menu .ui-state-disabled a {
5141
cursor: default;
5242
}

0 commit comments

Comments
 (0)