naive-ui/styles/Confirm.scss

73 lines
2.0 KiB
SCSS
Raw Normal View History

2019-08-01 13:46:03 +08:00
@import './mixins/mixins.scss';
2020-02-11 14:44:29 +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%;
margin: auto;
border-radius: 9px;
padding: 28px;
padding-bottom: 20px;
padding-top: 16px;
@include e(content) {
font-size: 16px;
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 {
transition: color .3s $--n-ease-in-out-cubic-bezier;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
2019-12-23 16:48:49 +08:00
font-weight: 500;
@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) {
fill: map-get($--confirm-icon-color, 'warning');
stroke: map-get($--confirm-icon-color, 'warning');
}
@include m(success-type) {
fill: map-get($--confirm-icon-color, 'success');
stroke: map-get($--confirm-icon-color, 'success');
}
@include m(error-type) {
fill: map-get($--confirm-icon-color, 'error');
stroke: map-get($--confirm-icon-color, 'error');
2019-10-24 18:04:31 +08:00
}
@include m(info-type) {
fill: map-get($--confirm-icon-color, 'info');
stroke: map-get($--confirm-icon-color, 'info');
}
}
@include e(close) {
fill: $--confirm-close-color;
stroke: $--confirm-close-color;
}
color: $--confirm-title-text-color;
}
background: $--confirm-background-color;
color: $--confirm-text-color;
2019-08-01 13:46:03 +08:00
}
}