-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.less
222 lines (183 loc) · 4.4 KB
/
index.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
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
213
214
215
216
217
218
219
220
221
222
@font-face {
font-family: 'vc-modal-iconfont';
src: url('http://at.alicdn.com/t/font_1418010561_5566137.eot'); /* IE9*/
src: url('http://at.alicdn.com/t/font_1418010561_5566137.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('http://at.alicdn.com/t/font_1418010561_5566137.woff') format('woff'), /* chrome、firefox */
url('http://at.alicdn.com/t/font_1418010561_5566137.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
url('http://at.alicdn.com/t/font_1418010561_5566137.svg#iconfont') format('svg'); /* iOS 4.1- */
}
.vc-modal-iconfont {
font-family:"vc-modal-iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.icon-close:before { content: "\e600"; }/*  */
.vc-modal{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
line-height: 1;
z-index: 1000;
display: none;
transition: background-color .5s linear;
user-select: none;
&.in{
background-color: rgba(0, 0, 0, 0.5);
.fadeInDown{
top: 100px!important;
opacity: 1!important;
}
.fadeInBlowUp,.fadeInShrink{
transform: scale(1,1)!important;
opacity: 1!important;
}
.modal-dialog.flipOverAtBottom{
transform: translateY(0);
}
}
}
.modal-dialog{
background-color: #FFF;
border: 1px solid #DDD\9;//ie78
*border: 1px solid #DDD;//ie67
width: 50%;
max-width: 560px;
min-width: 290px;
//主题1:这种出现效果可以在ie78中使用
&.fadeInDown{
position: relative;
margin: auto;
top: 0;
opacity: 0;
transition: opacity 0.15s ease-in, top 0.15s ease-in;
}
//主题2:fadein的同时, 有一个放大的效果; 这种主题下,一定要设置宽度和高度
&.fadeInBlowUp{
height: 280px;
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
transform: scale(0,0);
transition: opacity 0.15s ease-in,transform 0.3s cubic-bezier(0.6,0,0.4,1);
}
//主题3:fadein的同时, 有一个缩小的效果; 这种主题下,一定要设置宽度和高度
&.fadeInShrink{
height: 280px;
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
transform: scale(1.3,1.3);
transition: opacity 0.15s ease-in, transform 0.15s ease-in;
}
//主题4:应用手机上flipOverAtBottom
&.flipOverAtBottom{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
transform: translateY(100%);
transition: transform 0.15s ease-in;
.close{
display: none;
}
.modal-footer{
text-align: right;
}
.btn{
cursor: pointer;
padding:5px 25px;
background:#35b128;
border:1px solid #33842a;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0 0 4px rgba(0,0,0, .75);
-moz-box-shadow: 0 0 4px rgba(0,0,0, .75);
box-shadow: 0 0 4px rgba(0,0,0, .75);
color:#f3f3f3;
font-size:1.1em;
&:focus{
-webkit-box-shadow: 0 0 1px rgba(0,0,0, .75);
-moz-box-shadow: 0 0 1px rgba(0,0,0, .75);
box-shadow: 0 0 1px rgba(0,0,0, .75);
}
}
}
.modal-content{
width: 100%;
height: 100%;
position: relative;
}
}
.modal-header{
height: 50px;
border-bottom: 1px solid #DDD;
.close{
float: right;
margin: 12px;
cursor: pointer;
opacity: 0.5;
&:hover{
opacity: 1;
}
}
.modal-title{
font-weight: 700;
text-align: left;
line-height: 50px;
margin: 0 0 0 12px;
}
}
.modal-body{
position: relative;
height: 169px;
padding-bottom: 61px;
}
.modal-footer{
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
text-align: center;
border-top: 1px solid #DDD;
box-sizing: border-box;
.btn{
padding: 10px 15px;
font-size: 14px;
border: none;
display: inline-block;
margin: 13px 3px;
cursor: pointer;
&.btn-close{
background-color: #FFF;
color: #000;
border: 1px solid #DDD;
}
&.btn-confirm{
background-color: #EE0000;
color: #fff;
border: 1px solid #EE0000;
}
&:active{
box-shadow: 0 0 25px #DDD inset;
}
}
}
.modal-show{
overflow: hidden;
}