dialog.scss
1.46 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
.dialog-wrapper {
background: hsla(0, 0%, 0%, 0.5);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
z-index: 20;
.dialog-box {
width: 540px;
border-radius: 20px;
background: hsla(100, 100%, 100%, 0.84);
position: absolute;
left: 50%;
margin-left: -270px;
font-size: 30px;
text-align: center;
color: #000;
}
.dialog-content {
padding: 60px 30px;
font-size: 32px;
}
.dialog-header {
padding: 50px 0 40px;
font-size: 34px;
text-align: center;
font-weight: bold;
}
.dialog-footer {
height: 88px;
line-height: 88px;
> span {
display: block;
width: 50%;
height: 100%;
float: left;
box-sizing: border-box;
&:nth-last-of-type(1) {
border-left: 1px solid #ccc;
color: #d0021b;
}
}
> span:active {
background-color: #ccc;
}
> span.dialog-center-btn {
width: 100%;
border: none;
text-align: center;
}
}
.dialog-footer:before {
content: "";
position: absolute;
left: 0;
width: 200%;
height: 0;
border-top: 1px solid #ccc;
transform-origin: left top;
transform: scale3d(0.5, 0.5, 0.5);
}
}