Skip to content

Commit

Permalink
Add two less variables
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 19, 2016
1 parent 7233b9a commit 4a75640
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/button/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@

// size
&-lg > .@{btnClassName} {
.button-size(@btn-padding-lg; @btn-font-size-lg; @border-radius-base);
.button-size(@btn-padding-lg; @btn-font-size-lg; @btn-border-radius-base);
}

&-sm > .@{btnClassName} {
.button-size(@btn-padding-sm; @font-size-base; @border-radius-sm);
.button-size(@btn-padding-sm; @font-size-base; @btn-border-radius-sm);
> .@{iconfont-css-prefix} {
font-size: @font-size-base;
}
Expand All @@ -94,7 +94,7 @@
// outline: none;
white-space: nowrap;
line-height: @line-height-base;
.button-size(@btn-padding-base; @font-size-base; @border-radius-base);
.button-size(@btn-padding-base; @font-size-base; @btn-border-radius-base);
user-select: none;
transition: all .3s @ease-in-out;
transform: translate3d(0, 0, 0);
Expand Down
2 changes: 2 additions & 0 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@

// Buttons
@btn-font-weight : 500;
@btn-border-radius-base : @border-radius-base;
@btn-border-radius-sm : @border-radius-sm;

@btn-primary-color : #fff;
@btn-primary-bg : @primary-color;
Expand Down

0 comments on commit 4a75640

Please sign in to comment.