Modal.scss
1.8 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
.modal {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 9800;
perspective: 99999999px;
.modal-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
animation: show-popup-bg .1s forwards .1s;
}
}
@keyframes show-popup-bg {
0% {
background-color: rgba(0, 0, 0, 0);
}
100% {
background-color: rgba(45, 45, 51, .6);
}
}
.modal-box {
width: 590rpx;
padding-bottom: 48rpx;
background: #FFFFFF;
border-radius: 20rpx;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
box-sizing: border-box;
animation: show-modal .1s forwards;
display: flex;
align-items: center;
flex-direction: column;
.modal-tip {
font-weight: 600;
font-size: 40rpx;
color: #282829;
padding-top: 116rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.color_price{
color: #FC5B32;
}
}
.modal-footer {
margin-top: 64rpx;
display: flex;
align-items: center;
.btn {
width: 240rpx;
height: 88rpx;
background: #FFFFFF;
border: 2rpx solid #FC5B32;
border-radius: 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #EE7A31;
display: flex;
align-items: center;
justify-content: center;
}
.right {
background: #FC5B32;
border: 1.6rpx solid #FC5B32;
box-shadow: 0 4rpx 12rpx 4rpx #f13c3d1a;
border-radius: 20rpx;
color: #FFFFFF;
margin-left: 16rpx;
}
}
}