Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
29f07d09
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
29f07d09
编写于
11月 12, 2015
作者:
Y
yuntao.qyt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
border && theme dark
上级
faf900a3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
37 addition
and
53 deletion
+37
-53
components/menu/demo/sider-current.md
components/menu/demo/sider-current.md
+1
-1
style/components/menu.less
style/components/menu.less
+36
-52
未找到文件。
components/menu/demo/sider-current.md
浏览文件 @
29f07d09
...
...
@@ -30,7 +30,7 @@ var Sider = React.createClass({
});
},
render
()
{
return
<
Menu
theme
=
"dark"
onClick
=
{
this
.
handleClick
}
return
<
Menu
onClick
=
{
this
.
handleClick
}
style
=
{
{
width
:
240
}
}
openKeys
=
{
this
.
state
.
openKeys
}
onOpen
=
{
this
.
onToggle
}
...
...
style/components/menu.less
浏览文件 @
29f07d09
...
...
@@ -8,7 +8,6 @@
list-style: none;
z-index: 999;
box-shadow: @overlay-shadow;
border-radius: @border-radius-base;
color: @text-color;
background: #fff;
...
...
@@ -46,11 +45,6 @@
background-color: tint(@primary-color, 90%);
}
&-item-selected {
background-color: tint(@primary-color, 90%);
color: @primary-color;
}
& > li&-submenu {
cursor: pointer;
transition: all 0.3s ease;
...
...
@@ -72,6 +66,12 @@
.@{menu-prefix-cls}-item-active {
border-right: 2px solid @primary-color;
}
.@{menu-prefix-cls}-item-selected {
background-color: tint(@primary-color, 90%);
color: @primary-color;
border-right: 2px solid #2db7f5;
}
}
&-submenu-horizontal > .@{menu-prefix-cls} {
...
...
@@ -169,7 +169,6 @@
border: none;
border-bottom: 1px solid #d9d9d9;
box-shadow: none;
border-radius: 0;
padding-left: 24px;
z-index: 0;
...
...
@@ -234,23 +233,6 @@
}
}
&-vertical, &-horizontal {
.@{menu-prefix-cls}-submenu {
.@{menu-prefix-cls}-item:first-child {
border-radius: @border-radius-base @border-radius-base 0 0;
}
.@{menu-prefix-cls}-item:last-child {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
&:first-child {
border-radius: @border-radius-base @border-radius-base 0 0;
}
&:last-child {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
}
}
&-vertical&-sub {
padding: 0;
transform-origin: 0 0;
...
...
@@ -261,14 +243,12 @@
&-root&-vertical,
&-root&-inline {
border-radius: 0;
box-shadow: none;
}
&-sub&-inline {
padding: 0;
border: none;
border-radius: 0;
box-shadow: none;
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
line-height: 34px;
...
...
@@ -316,6 +296,13 @@
}
}
.@{menu-prefix-cls}-submenu-vertical:hover {
color: #FFF;
.anticon {
color: #FFF;
}
}
&-item, &-submenu-title {
margin: 0;
position: relative;
...
...
@@ -395,7 +382,6 @@
border: none;
border-bottom: 1px solid #d9d9d9;
box-shadow: none;
border-radius: 0;
padding-left: 24px;
z-index: 0;
...
...
@@ -456,65 +442,63 @@
.@{menu-prefix-cls}-submenu {
background: #404040;
}
.@{menu-prefix-cls}-submenu.@{menu-prefix-cls}-submenu-active {
background: #2DB7F5;
color: #FFF;
}
}
.@{menu-prefix-cls}-vertical,
.@{menu-prefix-cls}-inline {
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
background-color: #333333;
color: rgba(255, 255, 255, 0.45);
}
.@{menu-prefix-cls}-item {
background-color: #333333;
}
}
.@{menu-prefix-cls}-vertical,
.@{menu-prefix-cls}-inline {
border-right:
1
px solid #3F3F3F;
border-right:
0
px solid #3F3F3F;
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-selected,
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
border-right:
2
px solid #2DB7F5;
border-right:
0
px solid #2DB7F5;
background-color: #2DB7F5;
color: #FFF;
}
}
&-vertical, &-horizontal {
.@{menu-prefix-cls}-submenu {
.@{menu-prefix-cls}-item:first-child {
border-radius: @border-radius-base @border-radius-base 0 0;
}
.@{menu-prefix-cls}-item:last-child {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
&:first-child {
border-radius: @border-radius-base @border-radius-base 0 0;
}
&:last-child {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
// ddd
.@{menu-prefix-cls}-vertical,
.@{menu-prefix-cls}-inline {
border-right: 0px;
.@{menu-prefix-cls}-item {
border-right: 0px solid transparent;
margin-left: 0px;
left: 0px;
}
}
&-vertical&-sub {
padding: 0;
transform-origin: 0 0;
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu {
transform-origin: 0 0;
.@{menu-prefix-cls}-selected,
.@{menu-prefix-cls}-item-active {
border-right: 0px solid @primary-color;
}
}
&-root&-vertical,
&-root&-inline {
border-radius: 0;
box-shadow: none;
}
&-sub&-inline {
padding: 0;
border: none;
border-radius: 0;
box-shadow: none;
& > .@{menu-prefix-cls}-item, & > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
line-height: 34px;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录