mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Button: add warning type (#1558)
This commit is contained in:
@@ -54,6 +54,12 @@
|
||||
border: 1px solid $button-danger-border-color;
|
||||
}
|
||||
|
||||
&--warning {
|
||||
color: $button-warning-color;
|
||||
background-color: $button-warning-background-color;
|
||||
border: 1px solid $button-warning-border-color;
|
||||
}
|
||||
|
||||
&--plain {
|
||||
background-color: $white;
|
||||
|
||||
@@ -64,6 +70,10 @@
|
||||
&.van-button--danger {
|
||||
color: $button-danger-background-color;
|
||||
}
|
||||
|
||||
&.van-button--warning {
|
||||
color: $button-warning-background-color;
|
||||
}
|
||||
}
|
||||
|
||||
&--large {
|
||||
|
@@ -3,7 +3,7 @@ $black: #000;
|
||||
$white: #fff;
|
||||
$red: #f44;
|
||||
$blue: #38f;
|
||||
$orange: #f60;
|
||||
$orange: #f85;
|
||||
$green: #06bf04;
|
||||
$gray: #c9c9c9;
|
||||
$gray-light: #e5e5e5;
|
||||
@@ -26,6 +26,9 @@ $button-primary-border-color: #4b0;
|
||||
$button-danger-color: $white;
|
||||
$button-danger-background-color: $red;
|
||||
$button-danger-border-color: $red;
|
||||
$button-warning-color: $white;
|
||||
$button-warning-background-color: $orange;
|
||||
$button-warning-border-color: $orange;
|
||||
$button-disabled-color: $gray-dark;
|
||||
$button-disabled-background-color: $active-color;
|
||||
$button-disabled-border-color: $border-color;
|
||||
|
Reference in New Issue
Block a user