mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Add two less variables
This commit is contained in:
parent
7233b9a908
commit
4a756405d4
@ -68,11 +68,11 @@
|
|||||||
|
|
||||||
// size
|
// size
|
||||||
&-lg > .@{btnClassName} {
|
&-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} {
|
&-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} {
|
> .@{iconfont-css-prefix} {
|
||||||
font-size: @font-size-base;
|
font-size: @font-size-base;
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@
|
|||||||
// outline: none;
|
// outline: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
line-height: @line-height-base;
|
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;
|
user-select: none;
|
||||||
transition: all .3s @ease-in-out;
|
transition: all .3s @ease-in-out;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
|
@ -71,6 +71,8 @@
|
|||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
@btn-font-weight : 500;
|
@btn-font-weight : 500;
|
||||||
|
@btn-border-radius-base : @border-radius-base;
|
||||||
|
@btn-border-radius-sm : @border-radius-sm;
|
||||||
|
|
||||||
@btn-primary-color : #fff;
|
@btn-primary-color : #fff;
|
||||||
@btn-primary-bg : @primary-color;
|
@btn-primary-bg : @primary-color;
|
||||||
|
Loading…
Reference in New Issue
Block a user