feat(Button): support CSS vars gradient background color (#9454)

This commit is contained in:
neverland 2021-09-12 09:45:48 +08:00 committed by GitHub
parent 96a077e388
commit f15f9008cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);