提交 6f1bbfb3 编写于 作者: A afc163

fix menu style, close #1347

上级 79f81746
......@@ -27,7 +27,6 @@ const App = React.createClass({
return (
<Menu onClick={this.handleClick}
selectedKeys={[this.state.current]}
theme={this.state.theme}
mode="horizontal">
<Menu.Item key="mail">
<Icon type="mail" />导航一
......
......@@ -66,4 +66,3 @@ const Sider = React.createClass({
});
ReactDOM.render(<Sider />, mountNode);
````
......@@ -121,6 +121,10 @@
&.@{menu-prefix-cls}-submenu-disabled {
color: #999 !important;
cursor: not-allowed;
> a {
color: #999 !important;
pointer-events: none;
}
}
}
......@@ -302,16 +306,18 @@
&-dark&-horizontal > &-item,
&-dark&-horizontal > &-submenu {
border-bottom: 0;
top: 0;
border-color: #404040;
}
&-dark&-horizontal > &-item-active,
&-dark&-horizontal > &-item-selected,
&-dark&-horizontal > &-submenu:hover,
&-dark&-horizontal > &-submenu &-submenu-title:hover {
color: #fff;
transform: translateZ(0);
&,
& > a {
color: #fff;
transform: translateZ(0);
}
}
&-dark &-item > a {
......@@ -341,6 +347,7 @@
}
&-dark &-item-active,
&-dark &-submenu-active,
&-dark &-submenu-title:hover {
background-color: transparent;
color: @primary-color;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册