naive-ui/styles/Modal.scss
songwanli2025@163.com 4185c0c692 modify modal
2019-11-11 15:59:23 +08:00

40 lines
974 B
SCSS
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@import './mixins/mixins.scss';
.n-modal-content-inner--measure {
transform: scale(1)!important;
}
@include themes-mixin {
@include b(modal-content) {
& > .n-scrollbar {
& > .n-scrollbar-container > .n-scrollbar-content {
min-height: 100%;
display: flex;
}
}
&:not(.n-modal-content--active) {
visibility: hidden;
}
.n-modal-content-slot {
background: $--modal-background-color;
color: $--modal-text-color;
}
}
}
.n-modal-content--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);
}
.n-modal-content--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);
}
.n-modal-content--transition-enter, .n-modal-content--transition-leave-to {
opacity: 0;
transform: scale(.5);
}