2019-08-01 13:46:03 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2020-02-11 14:44:29 +08:00
|
|
|
|
2019-09-28 18:50:56 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(confirm) {
|
|
|
|
@include once {
|
2020-02-21 16:48:45 +08:00
|
|
|
transition:
|
|
|
|
background-color .3s $--n-ease-in-out-cubic-bezier,
|
|
|
|
color .3s $--n-ease-in-out-cubic-bezier;
|
2019-12-06 17:44:58 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
2019-09-28 18:50:56 +08:00
|
|
|
margin: auto;
|
|
|
|
border-radius: 9px;
|
|
|
|
padding: 28px;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
padding-top: 16px;
|
|
|
|
@include e(content) {
|
2020-03-16 16:54:16 +08:00
|
|
|
font-size: 15px;
|
2019-09-28 18:50:56 +08:00
|
|
|
padding-right: 9px;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-bottom: 19px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
@include e(footer) {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include b(confirm-title) {
|
|
|
|
@include once {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier;
|
2019-09-28 18:50:56 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 18px;
|
2020-02-27 23:02:58 +08:00
|
|
|
font-weight: $--n-strong-weight;
|
2019-09-28 18:50:56 +08:00
|
|
|
@include b(confirm-title-icon) {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
@include b(confirm-title-content) {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include b(confirm-title-icon) {
|
2020-01-30 18:48:38 +08:00
|
|
|
@include m(warning-type) {
|
2020-02-19 15:36:53 +08:00
|
|
|
fill: map-get($--confirm-icon-color, 'warning');
|
|
|
|
stroke: map-get($--confirm-icon-color, 'warning');
|
2019-09-28 18:50:56 +08:00
|
|
|
}
|
|
|
|
@include m(success-type) {
|
2020-02-19 15:36:53 +08:00
|
|
|
fill: map-get($--confirm-icon-color, 'success');
|
|
|
|
stroke: map-get($--confirm-icon-color, 'success');
|
2019-09-28 18:50:56 +08:00
|
|
|
}
|
|
|
|
@include m(error-type) {
|
2020-02-19 15:36:53 +08:00
|
|
|
fill: map-get($--confirm-icon-color, 'error');
|
|
|
|
stroke: map-get($--confirm-icon-color, 'error');
|
2019-10-24 18:04:31 +08:00
|
|
|
}
|
2020-02-19 15:36:53 +08:00
|
|
|
@include m(info-type) {
|
|
|
|
fill: map-get($--confirm-icon-color, 'info');
|
|
|
|
stroke: map-get($--confirm-icon-color, 'info');
|
2019-09-28 18:50:56 +08:00
|
|
|
}
|
|
|
|
}
|
2020-02-19 15:36:53 +08:00
|
|
|
@include e(close) {
|
2020-03-05 22:31:20 +08:00
|
|
|
fill: map-get($--confirm-close-color, 'default');
|
|
|
|
stroke: map-get($--confirm-close-color, 'default');
|
|
|
|
&:hover {
|
|
|
|
fill: map-get($--confirm-close-color, 'hover');
|
|
|
|
stroke: map-get($--confirm-close-color, 'hover');
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
fill: map-get($--confirm-close-color, 'active');
|
|
|
|
stroke: map-get($--confirm-close-color, 'active');
|
|
|
|
}
|
2020-02-19 15:36:53 +08:00
|
|
|
}
|
|
|
|
color: $--confirm-title-text-color;
|
2019-09-28 18:50:56 +08:00
|
|
|
}
|
|
|
|
background: $--confirm-background-color;
|
2020-02-19 15:36:53 +08:00
|
|
|
color: $--confirm-text-color;
|
2019-08-01 13:46:03 +08:00
|
|
|
}
|
2019-09-28 18:50:56 +08:00
|
|
|
}
|