Skip to content

Commit

Permalink
add list-body-border-* variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pingan1927 committed Sep 1, 2016
1 parent a67dafc commit 7676006
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/list/style/index.less
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions components/style/mixins.less
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions components/style/themes/default.less
Expand Up @@ -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 文字长度基础值
Expand Down

0 comments on commit 7676006

Please sign in to comment.