Commit d5ba8cf34407b9df2c5384313d00744c87dbceed
1 parent
29a2cb0c
update Collapse style
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
src/components/collapse/panel.vue
src/styles/components/collapse.less
| ... | ... | @@ -14,16 +14,22 @@ |
| 14 | 14 | > .@{collapse-prefix-cls}-header{ |
| 15 | 15 | height: 38px; |
| 16 | 16 | line-height: 38px; |
| 17 | - padding-left: 32px; | |
| 17 | + padding-left: 16px; | |
| 18 | 18 | color: #666; |
| 19 | 19 | cursor: pointer; |
| 20 | 20 | position: relative; |
| 21 | + border-bottom: 1px solid transparent; | |
| 22 | + transition: all @transition-time @ease-in-out; | |
| 21 | 23 | |
| 22 | 24 | > i{ |
| 23 | 25 | transition: transform @transition-time @ease-in-out; |
| 26 | + margin-right: 14px; | |
| 24 | 27 | } |
| 25 | 28 | } |
| 26 | 29 | } |
| 30 | + & > &-item&-item-active > &-header{ | |
| 31 | + border-bottom: 1px solid @border-color-base; | |
| 32 | + } | |
| 27 | 33 | & > &-item&-item-active > &-header > i{ |
| 28 | 34 | transform: rotate(90deg); |
| 29 | 35 | } | ... | ... |