mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
cxd兼容优化
This commit is contained in:
parent
6aa56602db
commit
3d3bea8476
@ -60,6 +60,16 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cxd的ButtonGroup的is-active和:active样式不一样,这里做个兼容
|
||||||
|
.#{$ns}Button--primary:not(:disabled):not(.is-disabled).is-active{
|
||||||
|
@if variable-exists("ButtonGroup--primary-isActive-color") {
|
||||||
|
color: $ButtonGroup--primary-isActive-color;
|
||||||
|
}
|
||||||
|
@if variable-exists("ButtonGroup--primary-isActive-bg") {
|
||||||
|
background-color: $ButtonGroup--primary-isActive-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@if $Button-borderWidth>0 {
|
@if $Button-borderWidth>0 {
|
||||||
> .#{$ns}Button:not(:last-child),
|
> .#{$ns}Button:not(:last-child),
|
||||||
> .#{$ns}ButtonGroup:not(:last-child) > .#{$ns}Button {
|
> .#{$ns}ButtonGroup:not(:last-child) > .#{$ns}Button {
|
||||||
|
@ -202,9 +202,9 @@ $Button--primary-border: $primary;
|
|||||||
$Button--primary-onHover-bg: #209bfd;
|
$Button--primary-onHover-bg: #209bfd;
|
||||||
$Button--primary-onHover-border: $primary;
|
$Button--primary-onHover-border: $primary;
|
||||||
$Button--primary-onHover-color: $white;
|
$Button--primary-onHover-color: $white;
|
||||||
$Button--primary-onActive-bg: $white;
|
$Button--primary-onActive-bg: #047bdb;
|
||||||
$Button--primary-onActive-border: $primary;
|
$Button--primary-onActive-border: $primary;
|
||||||
$Button--primary-onActive-color: $primary;
|
$Button--primary-onActive-color: $white;
|
||||||
|
|
||||||
$Button--danger-bg: #ea2e2e;
|
$Button--danger-bg: #ea2e2e;
|
||||||
$Button--danger-onHover-bg: #f64545;
|
$Button--danger-onHover-bg: #f64545;
|
||||||
@ -212,6 +212,8 @@ $Button--danger-onActive-bg: #d72b2b;
|
|||||||
|
|
||||||
$ButtonGroup-divider-width: px2rem(1px);
|
$ButtonGroup-divider-width: px2rem(1px);
|
||||||
$ButtonGroup-divider-color: #fff;
|
$ButtonGroup-divider-color: #fff;
|
||||||
|
$ButtonGroup--primary-isActive-color: $primary;
|
||||||
|
$ButtonGroup--primary-isActive-bg: $white;
|
||||||
|
|
||||||
$Button--link-color: $primary;
|
$Button--link-color: $primary;
|
||||||
$Button--link-onHover-color: #209bfd;
|
$Button--link-onHover-color: #209bfd;
|
||||||
|
Loading…
Reference in New Issue
Block a user