|
| 1 | +.v-modal { |
| 2 | + position: fixed; |
| 3 | + width: 100%; |
| 4 | + height: 100%; |
| 5 | + top: 0; |
| 6 | + left: 0; |
| 7 | + background-color: rgba(0, 0, 0, 0.701961); |
| 8 | +} |
| 9 | + |
| 10 | +@component-namespace o2 { |
| 11 | + @component popup { |
| 12 | + position: fixed; |
| 13 | + background-color: #fff; |
| 14 | + top: 50%; |
| 15 | + left: 50%; |
| 16 | + transform: translate3d(-50%, -50%, 0); |
| 17 | + backface-visibility: hidden; |
| 18 | + transition: .2s ease-out; |
| 19 | + |
| 20 | + @modifier top { |
| 21 | + top: 0; |
| 22 | + right: auto; |
| 23 | + bottom: auto; |
| 24 | + left: 50%; |
| 25 | + transform: translate3d(-50%, 0, 0); |
| 26 | + } |
| 27 | + |
| 28 | + @modifier right { |
| 29 | + top: 50%; |
| 30 | + right: 0; |
| 31 | + bottom: auto; |
| 32 | + left: auto; |
| 33 | + transform: translate3d(0, -50%, 0); |
| 34 | + } |
| 35 | + |
| 36 | + @modifier bottom { |
| 37 | + top: auto; |
| 38 | + bottom: 0; |
| 39 | + right: auto; |
| 40 | + left: 50%; |
| 41 | + transform: translate3d(-50%, 0, 0); |
| 42 | + } |
| 43 | + |
| 44 | + @modifier left { |
| 45 | + top: 50%; |
| 46 | + right: auto; |
| 47 | + bottom: auto; |
| 48 | + left: 0; |
| 49 | + transform: translate3d(0, -50%, 0); |
| 50 | + } |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +.popup-slide-top-enter, |
| 55 | +.popup-slide-top-leave-active { |
| 56 | + transform: translate3d(-50%, -100%, 0); |
| 57 | +} |
| 58 | + |
| 59 | +.popup-slide-right-enter, |
| 60 | +.popup-slide-right-leave-active { |
| 61 | + transform: translate3d(100%, -50%, 0); |
| 62 | +} |
| 63 | + |
| 64 | +.popup-slide-bottom-enter, |
| 65 | +.popup-slide-bottom-leave-active { |
| 66 | + transform: translate3d(-50%, 100%, 0); |
| 67 | +} |
| 68 | + |
| 69 | +.popup-slide-left-enter, .popup-slide-left-leave-active { |
| 70 | + transform: translate3d(-100%, -50%, 0); |
| 71 | +} |
| 72 | + |
| 73 | +.popup-fade-enter, .popup-fade-leave-active { |
| 74 | + opacity: 0; |
| 75 | +} |
0 commit comments