Browse Source

chore: collapse样式调整

pull/59/head
翰文 9 years ago
parent
commit
be3d529917
  1. 2
      components/collapse/demo/accordion.md
  2. 2
      components/collapse/demo/mix.md
  3. 2
      package.json
  4. 14
      style/components/collapse.less

2
components/collapse/demo/accordion.md

@ -2,7 +2,7 @@
- order: 1
手风琴,每次只打开一个tab。默认打开第一个
手风琴,每次只打开一个tab。默认打开第一个
---

2
components/collapse/demo/mix.md

@ -2,7 +2,7 @@
- order: 2
手风琴嵌套折叠面板
手风琴嵌套折叠面板
---

2
package.json

@ -37,7 +37,7 @@
"object-assign": "~3.0.0",
"rc-calendar": "~3.11.0",
"rc-checkbox": "~1.0.6",
"rc-collapse": "~1.2.2",
"rc-collapse": "~1.2.3",
"rc-dialog": "~4.4.0",
"rc-dropdown": "~1.1.1",
"rc-input-number": "~2.0.1",

14
style/components/collapse.less

@ -1,5 +1,5 @@
@prefixCls: ant-collapse;
@borderStyle: 1px solid #e9e9e9;
@borderStyle: 1px solid #d9d9d9;
#arrow {
.common(){
@ -24,17 +24,19 @@
.@{prefixCls} {
background-color: #f4f4f4;
border-radius: 3px;
border-top: @borderStyle;
border-left: @borderStyle;
border-right: @borderStyle;
border: @borderStyle;
& > &-item {
border-top: @borderStyle;
&:first-child {
border-top: none;
}
> .@{prefixCls}-header {
height: 38px;
line-height: 38px;
text-indent: 16px;
color: #666;
border-bottom: @borderStyle;
&:before {
display: inline-block;
content: '\20';
@ -68,12 +70,10 @@
}
&-content-active {
border-bottom: @borderStyle;
}
& > &-item-active {
> .@{prefixCls}-header {
border-bottom: none;
&:before {
#arrow > .bottom(3px, 4px, #666);

Loading…
Cancel
Save