-
Notifications
You must be signed in to change notification settings - Fork 10
/
base.less
135 lines (135 loc) · 2.57 KB
/
base.less
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
.wt-stop-scroll {
height:100vh;
overflow:hidden;
}
/* result */
#wt-result {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
top: 0;
left: 0;
width:100%;
height:100%;
background: #fff;
position: fixed;
.title {
white-space: nowrap;
font-size: 1rem;
padding: 1rem;
box-sizing: border-box;
width:100%;
text-overflow:ellipsis;
overflow:hidden;
}
.content {
font-size: 0.8rem;
color:#999;
padding: 10px;
padding-top: 0px;
word-break: break-all;
}
}
/* snack */
#wt-snack{
position: fixed;
z-index: 1000;
background: rgba(0,0,0,1);
padding: 5px;
color: #fff;
bottom: 0;
left: 0;
height: 40px;
width:100%;
display: flex;
justify-content: center;
align-items: center;
line-height: 40px;
font-size: 0.7rem;
white-space:nowrap;
overflow:hidden;
&.animate {
transition-property: transform;
transition-duration: 300ms;
}
&.top {
top:0;
transform: translate3d(0px, -50px, 0px);
}
&.bottom {
bottom:0;
transform: translate3d(0px, 50px, 0px);
}
i.error {
color: #fa5252;
font-size: 20px;
margin-right: 10px;
}
}
/* alert*/
.wt-alert-mask {
position: fixed;
background: rgba(0,0,0,0.3);
width: 100%;
height: 100%;
top: 0;
left: 0;
}
#wt-Alert {
width: 80%;
background: #fff;
z-index: 103;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.815);
box-shadow: 0 0 20px 0px #9b9b9b;
box-sizing: border-box;
padding: 20px;
border-radius:3px;
overflow: hidden;
&.modal-out {
opacity: 0;
transition-duration: 200ms;
transform: translate3d(-50%, -50%, 0px) scale(0.815);
}
&.modal-in {
opacity: 1;
transition-duration: 200ms;
transform: translate3d(-50%, -50%, 0px) scale(1);
}
.title {
height: 2rem;
font-size: 0.8rem;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-weight: bold;
word-break:break-all;
}
.content {
font-size: 0.7rem;
color: #666;
max-height:60vh;
overflow-x: hidden;
overflow-y: auto;
word-break:break-all;
-webkit-overflow-scrolling: touch;
}
.wt-Alert-btns {
display: flex;
color: #1BB5F1;
font-size: 0.8rem;
justify-content: flex-end;
margin-top: 1rem;
.wt-Alert-btn{
padding: 5px 10px;
&:active {
background: #eee;
}
}
}
}