-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdeal.sass
More file actions
215 lines (175 loc) · 4.16 KB
/
deal.sass
File metadata and controls
215 lines (175 loc) · 4.16 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
.deal
width: 100vw
height: 100vh
position: relative
overflow: hidden
.deal-content
width: 100vw
height: calc(100vh - 112rpx)
.deal-carousel
width: 100vw
height: 100vw / 3 * 2
swiper
width: 100vw
height: 100vw / 3 * 2
.deal-carousel-media
width: 100vw
height: 100vw / 3 * 2
.deal-carousel-item
position: absolu
top: 0
.deal-body
padding: .6 * $gutter $gutter
.deal-price
.price
font-size: $headline
position: relative
margin-left: $supplement - 10rpx
color: $teal-800
display: inline
&:before
content: '¥'
width: $supplement
position: absolute
top: 0
left: -$supplement
font-size: $supplement
text-align: right
&:after
content: attr(data-price)
width: $content2
position: absolute
font-size: $content2
bottom: 0
right: -$content2
text-align: left
.deal-title
+title
.deal-intro
margin-top: .8 * $gutter
+subheading(1.6)
.pay-content
width: 100vw
background-color: $grey-100
position: absolute
bottom: 0
left: 0
border-top: 2rpx solid$grey-300
display: flex
flex-direction: column
justify-content: center
align-items: center
z-index: 3
transform: translate(0, 100%)
transition: all 200ms $fastOutSlowIn
.pay-header
width: 100vw
height: 2.6 * $body1
display: flex
justify-content: space-between
align-items: center
border-bottom: 1px solid$grey-300
font-size: $body1
color: $grey-700
.close
font-weight: 300
color: $blue
margin-right: $gutter
.pay-body
width: calc(100vw - 4 * #{$gutter})
padding: 0 2 * $gutter
.pay-item
display: flex
border-bottom: 1px solid$grey-300
padding: 20rpx 0
image
width: 100rpx
height: 100rpx
border-radius: 8rpx
margin-right: $gutter
.pay-item-body
flex: 1
.pay-item-name
color: $grey-800
font-size: $supplement
.pay-item-price
color: $grey-400
font-size: $supplement
margin-top: 10rpx
.input-group
padding: 20rpx 0
border-bottom: 1px solid$grey-300
display: flex
align-items: center
.label
width: 100rpx
text-align: right
color: $grey-400
font-size: $supplement
height: $supplement
margin: .4 * $supplement 20rpx .4 * $supplement 0
input
flex: 1
color: $grey-900
font-size: $supplement
height: $supplement
margin: .4 * $supplement 0
.pay-action
font-size: $title
color: $teal
height: 3 * $title
display: flex
justify-content: center
align-items: center
.buy
width: 100vw
height: 112rpx
position: absolute
bottom: 0
left: 0
border-top: 2rpx solid$grey-300
display: flex
justify-content: center
align-items: center
z-index: 2
.btn
width: 320rpx
height: 72rpx
background-color: $teal
border-radius: $radius-2db
color: $white
font-size: $button
display: flex
justify-content: center
align-items: center
.deal-table
width: calc(100vw - 2 * #{$gutter} - 96rpx)
margin-top: $gutter
padding: 26rpx 48rpx
background-color: $teal-100
border-radius: $radius-2db
.table-line
width: 100%
height: $content2 + 56rpx
color: $grey-700
display: flex
font-size: $content2
align-items: center
justify-content: center
border-top: 2rpx solid$grey-100
&:first-child
border-top: none
.key
flex: 1
.val
flex: 1
.deal-ps
font-size: $headline
color: $grey-800
margin-top: $gutter
.ps-line
color: $grey-700
font-size: $content2
height: 1.6 * $content2
&:first-child
margin-top: .6 * $content2