Button add ghost prop
This commit is contained in:
parent
bfeab68fc2
commit
b4fe39f7e1
5 changed files with 115 additions and 37 deletions
|
@ -60,9 +60,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
&-ghost {
|
||||
.btn-ghost;
|
||||
}
|
||||
//&-ghost {
|
||||
// .btn-ghost;
|
||||
//}
|
||||
|
||||
&-dashed{
|
||||
.btn-dashed;
|
||||
|
@ -125,4 +125,56 @@
|
|||
&-group-vertical {
|
||||
.btn-group-vertical(@btn-prefix-cls);
|
||||
}
|
||||
|
||||
// The new ghost in 3.0
|
||||
&-ghost{
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
&:hover{
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
&-ghost&-dashed, &-ghost&-default{
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
&:hover{
|
||||
color: tint(@primary-color, 20%);
|
||||
border-color: tint(@primary-color, 20%);
|
||||
}
|
||||
}
|
||||
&-ghost&-primary{
|
||||
color: @primary-color;
|
||||
&:hover{
|
||||
color: tint(@primary-color, 20%);
|
||||
background: fade(tint(@primary-color, 95%), 50%);
|
||||
}
|
||||
}
|
||||
&-ghost&-info{
|
||||
color: @info-color;
|
||||
&:hover{
|
||||
color: tint(@info-color, 20%);
|
||||
background: fade(tint(@info-color, 95%), 50%);
|
||||
}
|
||||
}
|
||||
&-ghost&-success{
|
||||
color: @success-color;
|
||||
&:hover{
|
||||
color: tint(@success-color, 20%);
|
||||
background: fade(tint(@success-color, 95%), 50%);
|
||||
}
|
||||
}
|
||||
&-ghost&-warning{
|
||||
color: @warning-color;
|
||||
&:hover{
|
||||
color: tint(@warning-color, 20%);
|
||||
background: fade(tint(@warning-color, 95%), 50%);
|
||||
}
|
||||
}
|
||||
&-ghost&-error{
|
||||
color: @error-color;
|
||||
&:hover{
|
||||
color: tint(@error-color, 20%);
|
||||
background: fade(tint(@error-color, 95%), 50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,14 +81,14 @@
|
|||
@btn-disable-border : @border-color-base;
|
||||
|
||||
@btn-default-color : @text-color;
|
||||
@btn-default-bg : @background-color-base;
|
||||
@btn-default-bg : #fff;
|
||||
@btn-default-border : @border-color-base;
|
||||
|
||||
@btn-primary-color : #fff;
|
||||
@btn-primary-bg : @primary-color;
|
||||
|
||||
@btn-ghost-color : @text-color;
|
||||
@btn-ghost-bg : transparent;
|
||||
@btn-ghost-bg : #fff;
|
||||
@btn-ghost-border : @border-color-base;
|
||||
|
||||
@btn-circle-size : 32px;
|
||||
|
|
|
@ -246,7 +246,7 @@
|
|||
|
||||
// Text
|
||||
.btn-text() {
|
||||
.button-variant(@btn-ghost-color, @btn-ghost-bg, transparent);
|
||||
.button-variant(@btn-ghost-color, transparent, transparent);
|
||||
|
||||
// for disabled
|
||||
&.disabled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue