123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- @import (reference) './variable.less';
- @popupPrefix: ant-popup;
- .@{popupPrefix} {
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 998;
- touch-action: none;
- &-mask {
- width: 100%;
- height: 100%;
- background-color: @popup-mask-product;
- animation-fill-mode: forwards;
- &-closing {
- animation-name: ant-popup-mask-close;
- }
- }
- &-content {
- position: fixed;
- background: @popup-background;
- animation-fill-mode: forwards;
- animation-timing-function: ease-out;
- color: @COLOR_TEXT_PRIMARY;
- }
- &-transform {
- &-top {
- top: 0;
- left: 0;
- right: 0;
- animation-name: ant-popup-transform-top;
- border-radius: 0 0 @popup-radius @popup-radius;
- &-close {
- animation-name: ant-popup-transform-top-close;
- }
- }
- &-right {
- top: 0;
- right: 0;
- bottom: 0;
- animation-name: ant-popup-transform-right;
- &-close {
- animation-name: ant-popup-transform-right-close;
- }
- }
- &-bottom {
- left: 0;
- right: 0;
- bottom: 0;
- animation-name: ant-popup-transform-bottom;
- border-radius: @popup-radius @popup-radius 0 0;
- &-close {
- animation-name: ant-popup-transform-bottom-close;
- }
- }
- &-left {
- top: 0;
- left: 0;
- bottom: 0;
- animation-name: ant-popup-transform-left;
- &-close {
- animation-name: ant-popup-transform-left-close;
- }
- }
- &-center {
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0);
- animation-name: ant-popup-transform-center;
- border-radius: @popup-radius;
- background: none;
- &-close {
- animation-name: ant-popup-transform-center-close;
- }
- }
- }
- &-position {
- &-top {
- top: 0;
- left: 0;
- right: 0;
- animation-name: ant-popup-position-top;
- border-radius: 0 0 @popup-radius @popup-radius;
- &-close {
- animation-name: ant-popup-position-top-close;
- }
- }
- &-right {
- top: 0;
- right: 0;
- bottom: 0;
- animation-name: ant-popup-position-right;
- &-close {
- animation-name: ant-popup-position-right-close;
- }
- }
- &-bottom {
- left: 0;
- right: 0;
- bottom: 0;
- animation-name: ant-popup-position-bottom;
- border-radius: @popup-radius @popup-radius 0 0;
- &-close {
- animation-name: ant-popup-position-bottom-close;
- }
- }
- &-left {
- top: 0;
- left: 0;
- bottom: 0;
- animation-name: ant-popup-position-left;
- &-close {
- animation-name: ant-popup-position-left-close;
- }
- }
- &-center {
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0);
- animation-name: ant-popup-position-center;
- border-radius: @popup-radius;
- background: none;
- &-close {
- animation-name: ant-popup-position-center-close;
- }
- }
- }
- }
- @keyframes ant-popup-transform-top {
- 0% {
- transform: translateY(-100%);
- }
- 100% {
- transform: translateY(0);
- }
- }
- @keyframes ant-popup-transform-bottom {
- 0% {
- transform: translateY(100%);
- }
- 100% {
- transform: translateY(0);
- }
- }
- @keyframes ant-popup-transform-left {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(0);
- }
- }
- @keyframes ant-popup-transform-right {
- 0% {
- transform: translateX(100%);
- }
- 100% {
- transform: translateX(0);
- }
- }
- @keyframes ant-popup-transform-center {
- 0% {
- transform: translate3d(-50%, -50%, 0) scale(0.1);
- opacity: 0;
- }
- 100% {
- transform: translate3d(-50%, -50%, 0) scale(1);
- opacity: 1;
- }
- }
- @keyframes ant-popup-transform-top-close {
- 0% {
- transform: translateY(0);
- }
- 100% {
- transform: translateY(-100%);
- }
- }
- @keyframes ant-popup-transform-bottom-close {
- 0% {
- transform: translateY(0);
- }
- 100% {
- transform: translateY(100%);
- }
- }
- @keyframes ant-popup-transform-left-close {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-100%);
- }
- }
- @keyframes ant-popup-transform-right-close {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- @keyframes ant-popup-transform-center-close {
- 0% {
- opacity: 1;
- transform: translate3d(-50%, -50%, 0) scale(1);
- }
- 20% {
- opacity: 0.8;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- }
- 100% {
- opacity: 0;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- }
- }
- @keyframes ant-popup-position-top {
- 0% {
- top: -100%;
- }
- 100% {
- top: 0;
- }
- }
- @keyframes ant-popup-position-bottom {
- 0% {
- bottom: -100%;
- }
- 100% {
- bottom: 0;
- }
- }
- @keyframes ant-popup-position-left {
- 0% {
- left: -100%;
- }
- 100% {
- left: 0;
- }
- }
- @keyframes ant-popup-position-right {
- 0% {
- right: -100%;
- }
- 100% {
- right: 0;
- }
- }
- @keyframes ant-popup-position-center {
- 0% {
- transform: translate3d(-50%, -50%, 0) scale(0.1);
- opacity: 0;
- }
- 100% {
- transform: translate3d(-50%, -50%, 0) scale(1);
- opacity: 1;
- }
- }
- @keyframes ant-popup-position-top-close {
- 0% {
- top: 0;
- }
- 100% {
- top: -100%;
- }
- }
- @keyframes ant-popup-position-bottom-close {
- 0% {
- bottom: 0;
- }
- 100% {
- bottom: -100%;
- }
- }
- @keyframes ant-popup-position-left-close {
- 0% {
- left: 0;
- }
- 100% {
- left: -100%;
- }
- }
- @keyframes ant-popup-position-right-close {
- 0% {
- right: 0;
- }
- 100% {
- right: -100%;
- }
- }
- @keyframes ant-popup-position-center-close {
- 0% {
- opacity: 1;
- transform: translate3d(-50%, -50%, 0) scale(1);
- }
- 20% {
- opacity: 0.8;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- }
- 100% {
- opacity: 0;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- }
- }
- @keyframes ant-popup-mask-close {
- 0% {
- background-color: @popup-mask-product;
- }
- 100% {
- background-color: fade(@COLOR_BLACK, 0);
- }
- }
|