提交 5e6826e0 编写于 作者: C Catouse

* improve dropdown submenu UI.

上级 59c27a6b
...@@ -201,7 +201,10 @@ ...@@ -201,7 +201,10 @@
margin-left: -1px; margin-left: -1px;
border-radius: @border-radius-base; border-radius: @border-radius-base;
} }
.dropdown-submenu:hover > .dropdown-menu { display: block; } .dropdown-submenu.open,
.dropdown-submenu:hover {
> .dropdown-menu { display: block; }
}
// Dropups // Dropups
.dropup .dropdown-submenu > .dropdown-menu { .dropup .dropdown-submenu > .dropdown-menu {
...@@ -230,16 +233,11 @@ ...@@ -230,16 +233,11 @@
.dropdown-submenu:hover > a:after { border-left-color: @dropdown-link-hover-color; } .dropdown-submenu:hover > a:after { border-left-color: @dropdown-link-hover-color; }
// Left aligned submenus // Left aligned submenus
.dropdown-submenu.pull-left { .dropdown-submenu {
> a {min-width:160px;} // compatibly width the min-widht:160px of .dropdown-menu. > a {min-width:160px;} // compatibly width the min-widht:160px of .dropdown-menu.
// Undo the float
// Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
float: none;
// Positioning the submenu > .dropdown-menu.pull-left {
> .dropdown-menu {
left: -100%; left: -100%;
border-radius: @border-radius-base;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册