mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Button): support CSS vars gradient background color (#9454)
This commit is contained in:
parent
96a077e388
commit
f15f9008cf
@ -58,7 +58,7 @@
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--van-black);
|
||||
background: var(--van-black);
|
||||
border: inherit;
|
||||
border-color: var(--van-black);
|
||||
border-radius: inherit; /* inherit parent's border radius */
|
||||
@ -80,41 +80,41 @@
|
||||
|
||||
&--default {
|
||||
color: var(--van-button-default-color);
|
||||
background-color: var(--van-button-default-background-color);
|
||||
background: var(--van-button-default-background-color);
|
||||
border: var(--van-button-border-width) solid
|
||||
var(--van-button-default-border-color);
|
||||
}
|
||||
|
||||
&--primary {
|
||||
color: var(--van-button-primary-color);
|
||||
background-color: var(--van-button-primary-background-color);
|
||||
background: var(--van-button-primary-background-color);
|
||||
border: var(--van-button-border-width) solid
|
||||
var(--van-button-primary-border-color);
|
||||
}
|
||||
|
||||
&--success {
|
||||
color: var(--van-button-success-color);
|
||||
background-color: var(--van-button-success-background-color);
|
||||
background: var(--van-button-success-background-color);
|
||||
border: var(--van-button-border-width) solid
|
||||
var(--van-button-success-border-color);
|
||||
}
|
||||
|
||||
&--danger {
|
||||
color: var(--van-button-danger-color);
|
||||
background-color: var(--van-button-danger-background-color);
|
||||
background: var(--van-button-danger-background-color);
|
||||
border: var(--van-button-border-width) solid
|
||||
var(--van-button-danger-border-color);
|
||||
}
|
||||
|
||||
&--warning {
|
||||
color: var(--van-button-warning-color);
|
||||
background-color: var(--van-button-warning-background-color);
|
||||
background: var(--van-button-warning-background-color);
|
||||
border: var(--van-button-border-width) solid
|
||||
var(--van-button-warning-border-color);
|
||||
}
|
||||
|
||||
&--plain {
|
||||
background-color: var(--van-button-plain-background-color);
|
||||
background: var(--van-button-plain-background-color);
|
||||
|
||||
&.van-button--primary {
|
||||
color: var(--van-button-primary-background-color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user