啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import '../style/var';
 
.van {
  &-overflow-hidden {
    overflow: hidden !important;
  }
 
  &-popup {
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
    background-color: @popup-background-color;
    transition: @popup-transition;
    -webkit-overflow-scrolling: touch;
 
    &--center {
      top: 50%;
      left: 50%;
      transform: translate3d(-50%, -50%, 0);
 
      &.van-popup--round {
        border-radius: @popup-round-border-radius;
      }
    }
 
    &--top {
      top: 0;
      left: 0;
      width: 100%;
 
      &.van-popup--round {
        border-radius: 0 0 @popup-round-border-radius @popup-round-border-radius;
      }
    }
 
    &--right {
      top: 50%;
      right: 0;
      transform: translate3d(0, -50%, 0);
 
      &.van-popup--round {
        border-radius: @popup-round-border-radius 0 0 @popup-round-border-radius;
      }
    }
 
    &--bottom {
      bottom: 0;
      left: 0;
      width: 100%;
 
      &.van-popup--round {
        border-radius: @popup-round-border-radius @popup-round-border-radius 0 0;
      }
    }
 
    &--left {
      top: 50%;
      left: 0;
      transform: translate3d(0, -50%, 0);
 
      &.van-popup--round {
        border-radius: 0 @popup-round-border-radius @popup-round-border-radius 0;
      }
    }
 
    &--safe-area-inset-bottom {
      padding-bottom: constant(safe-area-inset-bottom);
      padding-bottom: env(safe-area-inset-bottom);
    }
 
    &-slide-top-enter-active,
    &-slide-left-enter-active,
    &-slide-right-enter-active,
    &-slide-bottom-enter-active {
      transition-timing-function: @animation-timing-function-enter;
    }
 
    &-slide-top-leave-active,
    &-slide-left-leave-active,
    &-slide-right-leave-active,
    &-slide-bottom-leave-active {
      transition-timing-function: @animation-timing-function-leave;
    }
 
    &-slide-top-enter,
    &-slide-top-leave-active {
      transform: translate3d(0, -100%, 0);
    }
 
    &-slide-right-enter,
    &-slide-right-leave-active {
      transform: translate3d(100%, -50%, 0);
    }
 
    &-slide-bottom-enter,
    &-slide-bottom-leave-active {
      transform: translate3d(0, 100%, 0);
    }
 
    &-slide-left-enter,
    &-slide-left-leave-active {
      transform: translate3d(-100%, -50%, 0);
    }
 
    &__close-icon {
      position: absolute;
      z-index: @popup-close-icon-z-index;
      color: @popup-close-icon-color;
      font-size: @popup-close-icon-size;
      cursor: pointer;
 
      &:active {
        color: @popup-close-icon-active-color;
      }
 
      &--top-left {
        top: @popup-close-icon-margin;
        left: @popup-close-icon-margin;
      }
 
      &--top-right {
        top: @popup-close-icon-margin;
        right: @popup-close-icon-margin;
      }
 
      &--bottom-left {
        bottom: @popup-close-icon-margin;
        left: @popup-close-icon-margin;
      }
 
      &--bottom-right {
        right: @popup-close-icon-margin;
        bottom: @popup-close-icon-margin;
      }
    }
  }
}