.nut-popup-slide-center-enter-active, .nut-popup-slide-center-leave-active { transition-property: opacity; transition-timing-function: ease; } .nut-popup-slide-center-enter-from, .nut-popup-slide-center-leave-to { opacity: 0; } .nut-popup-slide-top-enter-from, .nut-popup-slide-top-leave-active { transform: translate(0, -100%); } .nut-popup-slide-right-enter-from, .nut-popup-slide-right-leave-active { transform: translate(100%, 0); } .nut-popup-slide-bottom-enter-from, .nut-popup-slide-bottom-leave-active { transform: translate(0, 100%); } .nut-popup-slide-left-enter-from, .nut-popup-slide-left-leave-active { transform: translate(-100%, 0); } .nut-popup--center { top: 50%; left: 50%; transform: translate(-50%, -50%); } .nut-popup--center.round { border-radius: 20px; } .nut-popup--bottom { bottom: 0; left: 0; width: 100%; } .nut-popup--bottom.round { border-radius: 20px 20px 0 0; } .nut-popup--bottom--safebottom { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); } .nut-popup--right { top: 0; right: 0; } .nut-popup--right.round { border-radius: 20px 0 0 20px; } .nut-popup--left { top: 0; left: 0; } .nut-popup--left.round { border-radius: 0 20px 20px 0; } .nut-popup--top { top: 0; left: 0; width: 100%; } .nut-popup--top.round { border-radius: 0 0 20px 20px; } .nut-popup { position: fixed; max-height: 100%; overflow-y: auto; background-color: #fff; -webkit-overflow-scrolling: touch; } .nut-popup__close-icon { position: absolute !important; z-index: 1; color: #969799; font-size: 18px; cursor: pointer; width: 30px; height: 30px; line-height: 30px; text-align: center; } .nut-popup__close-icon:active { opacity: 0.7; } .nut-popup__close-icon--top-left { top: 16px; left: 16px; } .nut-popup__close-icon--top-right { top: 16px; right: 16px; } .nut-popup__close-icon--bottom-left { bottom: 16px; left: 16px; } .nut-popup__close-icon--bottom-right { right: 16px; bottom: 16px; }