Permalink
Browse files

add list-body-border-* variables

  • Loading branch information...
pingan1927 committed Sep 1, 2016
1 parent a67dafc commit 76760060cb5dfa5c9474b2174ee03db3c30b5197
Showing with 8 additions and 6 deletions.
  1. +2 −2 components/list/style/index.less
  2. +4 −4 components/style/mixins.less
  3. +2 −0 components/style/themes/default.less
@@ -20,8 +20,8 @@
& &-body {
position: relative;
background-color: @fill-base;
.hairline-top(@border-color-base);
.hairline-bottom(@border-color-base);
.hairline-top(@list-body-border-color, @list-body-border-width);
.hairline-bottom(@list-body-border-color, 0, @list-body-border-width);
}
}
.@{listPrefixCls}-item {
@@ -7,10 +7,10 @@
transform-origin: @to;
}

.hairline-top(@color:@border-color-base) {
border-top: @border-width-sm solid @color;
.hairline-top(@color:@border-color-base, @width: @border-width-sm) {
border-top: @width solid @color;
}
.hairline-bottom(@color:@border-color-base, @left:0) {
.hairline-bottom(@color:@border-color-base, @left:0, @width: @border-width-sm) {
&:after {
display: block;
position: absolute;
@@ -20,7 +20,7 @@
right: auto;
top: auto;
width: 100%;
border-bottom: @border-width-sm solid @color;
border-bottom: @width solid @color;
}
}
.hairline-right(@color:@border-color-base) {
@@ -124,6 +124,8 @@
@list-title-height: 60px;
@list-item-height-sm: 70px;
@list-item-height: 90px;
@list-body-border-width: 1PX;
@list-body-border-color: @border-color-base;

// input
@input-label-width: 34px; // InputItem、TextareaItem 文字长度基础值

0 comments on commit 7676006

Please sign in to comment.