2019-11-11 15:59:23 +08:00
|
|
|
@import './mixins/mixins.scss';
|
|
|
|
|
|
|
|
@include themes-mixin {
|
|
|
|
@include b(modal-content) {
|
2019-11-15 17:44:43 +08:00
|
|
|
@include b(card) {
|
|
|
|
background-color: $--n-dialog-color;
|
|
|
|
}
|
2019-12-16 13:47:39 +08:00
|
|
|
@include once {
|
|
|
|
@include b(confirm) {
|
|
|
|
width: 80vw;
|
2019-11-11 15:59:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-12 18:36:30 +08:00
|
|
|
@include b(modal-container) {
|
2019-11-14 17:53:23 +08:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2019-12-12 18:36:30 +08:00
|
|
|
@include b(modal-overlay) {
|
2019-11-14 17:53:23 +08:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background-color: rgba(0, 0, 0, .4);
|
2019-12-15 22:34:35 +08:00
|
|
|
&#{&}-transition-enter-active {
|
|
|
|
transition: background-color .3s cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&#{&}-transition-leave-active {
|
|
|
|
transition: background-color .3s cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&#{&}-transition-enter, &#{&}-transition-leave-to {
|
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
}
|
2019-11-14 17:53:23 +08:00
|
|
|
}
|
|
|
|
|
2019-12-12 18:36:30 +08:00
|
|
|
@include b(modal-content) {
|
2019-11-14 17:53:23 +08:00
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
overflow: visible;
|
2019-12-16 13:47:39 +08:00
|
|
|
& > {
|
|
|
|
@include b(scrollbar) {
|
|
|
|
& > {
|
|
|
|
@include b(scrollbar-container) {
|
|
|
|
& > {
|
|
|
|
@include b(scrollbar-content) {
|
|
|
|
min-height: 100%;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include not-m(active) {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(modal-content-slot) {
|
2019-12-15 22:34:35 +08:00
|
|
|
&#{&}-transition-enter-active {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
&#{&}-transition-leave-active {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(0.4, 0.0, 1, 1);
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
&#{&}-transition-enter, &#{&}-transition-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.5);
|
|
|
|
}
|
2019-11-11 15:59:23 +08:00
|
|
|
}
|