forked from goaway/zenbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzenbox.css
376 lines (361 loc) · 16.2 KB
/
zenbox.css
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/* =========================================================
* zenbox v0.2.0
* https://github.com/goaway/zenbox
* =========================================================
* Copyright 2012 Michael Schore
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================= */
/* Operational */
#zenbox-backdrop {
cursor: pointer;
opacity: 0;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
visibility: hidden;
}
#zenbox-frame {
opacity: 0;
padding: 0;
position: fixed;
top: 50%;
left: 50%;
visibility: hidden;
}
#zenbox-close {
cursor: pointer;
opacity: 0;
visibility: hidden;
}
#zenbox-marker {
display: none;
}
#zenbox-elements {
position: absolute;
z-index: 1080;
}
#zenbox-elements #zenbox-frame > * {
margin: 0;
opacity: 0;
position: absolute;
top: 0;
left: 0;
visibility: hidden;
}
#zenbox-elements #zenbox-frame > *:first-child {
opacity: 1;
visibility: visible;
}
#zenbox-elements #zenbox-frame > *:last-child {
opacity: 0;
visibility: hidden;
}
#zenbox-elements.visible #zenbox-backdrop {
opacity: 1;
visibility: visible;
}
#zenbox-elements.visible #zenbox-frame {
opacity: 1;
visibility: visible;
}
#zenbox-elements.visible #zenbox-close {
opacity: 1;
visibility: visible;
}
#zenbox-elements.visible.modal #zenbox-backdrop {
cursor: default;
}
#zenbox-elements.visible.modal #zenbox-close {
/* disabled as hack to deal with modal(false) transition styling for now */
/* opacity: 0 */
visibility: hidden;
}
/* Default Styling */
#zenbox-elements.fancy #zenbox-backdrop {
background-color: rgba(0, 0, 0, 0.4);
-webkit-transition: opacity 220ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 520ms;
-moz-transition: opacity 220ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 520ms;
-ms-transition: opacity 220ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 520ms;
-o-transition: opacity 220ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 520ms;
transition: opacity 220ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 520ms;
}
#zenbox-elements.fancy #zenbox-frame {
background: white;
-webkit-box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
-webkit-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 300ms;
-moz-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 300ms;
-ms-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 300ms;
-o-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 300ms;
transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 300ms;
}
#zenbox-elements.fancy #zenbox-frame > #zenbox-close {
position: absolute;
top: -12px;
right: -12px;
left: auto;
}
#zenbox-elements.fancy #zenbox-close {
color: white;
background-color: black;
border: 2px solid white;
line-height: 18px;
font-family: Arial;
font-size: 17px;
font-weight: bold;
text-align: center;
height: 18px;
width: 18px;
padding: 0;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
-ms-border-radius: 12px;
-o-border-radius: 12px;
border-radius: 12px;
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
/* fixes alignment in firefox */
}
#zenbox-elements.fancy #zenbox-close:not(:-moz-handler-blocked) {
letter-spacing: -1px;
}
#zenbox-elements.fancy.visible #zenbox-backdrop {
-webkit-transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-moz-transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-ms-transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-o-transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
transition: opacity 100ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
}
#zenbox-elements.fancy.visible #zenbox-frame {
-webkit-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 100ms, visibility 0ms linear 0ms;
-moz-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 100ms, visibility 0ms linear 0ms;
-ms-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 100ms, visibility 0ms linear 0ms;
-o-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 100ms, visibility 0ms linear 0ms;
transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 100ms, visibility 0ms linear 0ms;
}
#zenbox-elements.fancy.visible #zenbox-close {
-webkit-transition: opacity 0ms linear 400ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 400ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 400ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 400ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 400ms, visibility 0ms linear 0ms;
}
#zenbox-elements.fancy.visible.transitional #zenbox-frame {
-webkit-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-moz-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-ms-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-o-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-webkit-transition-duration: 300ms;
-moz-transition-duration: 300ms;
-ms-transition-duration: 300ms;
-o-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-delay: 200ms;
-moz-transition-delay: 200ms;
-ms-transition-delay: 200ms;
-o-transition-delay: 200ms;
transition-delay: 200ms;
-webkit-transition-property: height, width, margin-left, margin-top;
-moz-transition-property: height, width, margin-left, margin-top;
-ms-transition-property: height, width, margin-left, margin-top;
-o-transition-property: height, width, margin-left, margin-top;
transition-property: height, width, margin-left, margin-top;
}
#zenbox-elements.fancy.visible.transitional #zenbox-frame > * {
-webkit-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-moz-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-ms-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-o-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
}
#zenbox-elements.fancy.visible.transitional #zenbox-frame > *:first-child {
-webkit-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-moz-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-ms-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-o-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
}
#zenbox-elements.fancy.visible.transitional #zenbox-close {
-webkit-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
}
#zenbox-elements.fancy.visible.transitional.staging #zenbox-frame > *:first-child {
opacity: 0;
visibility: hidden;
-webkit-transition-duration: 0ms;
-moz-transition-duration: 0ms;
-ms-transition-duration: 0ms;
-o-transition-duration: 0ms;
transition-duration: 0ms;
}
#zenbox-elements.fancy.visible.transitional.staging #zenbox-close {
opacity: 0;
visibility: hidden;
-webkit-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
}
/* Bootsy Styling */
#zenbox-elements.bootsy #zenbox-backdrop {
background-color: rgba(0, 0, 0, 0.8);
-webkit-transition: opacity 270ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 570ms;
-moz-transition: opacity 270ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 570ms;
-ms-transition: opacity 270ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 570ms;
-o-transition: opacity 270ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 570ms;
transition: opacity 270ms cubic-bezier(0.215, 0.61, 0.355, 1) 300ms, visibility 0ms linear 570ms;
}
#zenbox-elements.bootsy #zenbox-frame {
background: white;
top: 0%;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-o-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
-webkit-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, top 300ms cubic-bezier(0.43, 0.1, 1, 0) 0ms, visibility 0ms linear 300ms;
-moz-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, top 300ms cubic-bezier(0.43, 0.1, 1, 0) 0ms, visibility 0ms linear 300ms;
-ms-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, top 300ms cubic-bezier(0.43, 0.1, 1, 0) 0ms, visibility 0ms linear 300ms;
-o-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, top 300ms cubic-bezier(0.43, 0.1, 1, 0) 0ms, visibility 0ms linear 300ms;
transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, top 300ms cubic-bezier(0.43, 0.1, 1, 0) 0ms, visibility 0ms linear 300ms;
}
#zenbox-elements.bootsy #zenbox-frame > #zenbox-close {
position: absolute;
top: 12px;
right: 12px;
left: auto;
}
#zenbox-elements.bootsy #zenbox-close {
color: rgba(0, 0, 0, 0.2);
line-height: 18px;
font-family: Arial;
font-size: 21px;
font-weight: normal;
text-align: center;
height: 18px;
width: 18px;
padding: 0;
text-shadow: 0 1px 0 white;
}
#zenbox-elements.bootsy #zenbox-close:hover {
color: rgba(0, 0, 0, 0.4);
}
#zenbox-elements.bootsy.visible #zenbox-backdrop {
-webkit-transition: opacity 150ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-moz-transition: opacity 150ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-ms-transition: opacity 150ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
-o-transition: opacity 150ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
transition: opacity 150ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms, visibility 0ms linear 0ms;
}
#zenbox-elements.bootsy.visible #zenbox-frame {
top: 50%;
opacity: 1;
-webkit-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 150ms, top 300ms cubic-bezier(0.1, 0.43, 0, 1) 150ms, visibility 0ms linear 0ms;
-moz-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 150ms, top 300ms cubic-bezier(0.1, 0.43, 0, 1) 150ms, visibility 0ms linear 0ms;
-ms-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 150ms, top 300ms cubic-bezier(0.1, 0.43, 0, 1) 150ms, visibility 0ms linear 0ms;
-o-transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 150ms, top 300ms cubic-bezier(0.1, 0.43, 0, 1) 150ms, visibility 0ms linear 0ms;
transition: opacity 300ms cubic-bezier(0.366, 0, 0.634, 1) 150ms, top 300ms cubic-bezier(0.1, 0.43, 0, 1) 150ms, visibility 0ms linear 0ms;
}
#zenbox-elements.bootsy.visible #zenbox-close {
-webkit-transition: opacity 0ms linear 450ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 450ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 450ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 450ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 450ms, visibility 0ms linear 0ms;
}
#zenbox-elements.bootsy.visible.staging #zenbox-frame {
top: 0%;
opacity: 0;
-webkit-transition-duration: 0ms;
-moz-transition-duration: 0ms;
-ms-transition-duration: 0ms;
-o-transition-duration: 0ms;
transition-duration: 0ms;
}
#zenbox-elements.bootsy.visible.transitional #zenbox-frame {
-webkit-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-moz-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-ms-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-o-transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
transition-timing-function: cubic-bezier(0.366, 0, 0.634, 1);
-webkit-transition-duration: 300ms;
-moz-transition-duration: 300ms;
-ms-transition-duration: 300ms;
-o-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-delay: 200ms;
-moz-transition-delay: 200ms;
-ms-transition-delay: 200ms;
-o-transition-delay: 200ms;
transition-delay: 200ms;
-webkit-transition-property: height, width, margin-left, margin-top;
-moz-transition-property: height, width, margin-left, margin-top;
-ms-transition-property: height, width, margin-left, margin-top;
-o-transition-property: height, width, margin-left, margin-top;
transition-property: height, width, margin-left, margin-top;
}
#zenbox-elements.bootsy.visible.transitional #zenbox-frame > * {
-webkit-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-moz-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-ms-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
-o-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 0ms, visibility 0ms linear 200ms;
}
#zenbox-elements.bootsy.visible.transitional #zenbox-frame > *:first-child {
-webkit-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-moz-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-ms-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
-o-transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
transition: opacity 200ms cubic-bezier(0.366, 0, 0.634, 1) 500ms, visibility 0ms linear 0ms;
}
#zenbox-elements.bootsy.visible.transitional #zenbox-close {
-webkit-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 700ms, visibility 0ms linear 0ms;
}
#zenbox-elements.bootsy.visible.transitional.staging #zenbox-frame {
top: 50%;
}
#zenbox-elements.bootsy.visible.transitional.staging #zenbox-frame > *:first-child {
opacity: 0;
visibility: hidden;
-webkit-transition-duration: 0ms;
-moz-transition-duration: 0ms;
-ms-transition-duration: 0ms;
-o-transition-duration: 0ms;
transition-duration: 0ms;
}
#zenbox-elements.bootsy.visible.transitional.staging #zenbox-close {
opacity: 0;
visibility: hidden;
-webkit-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-moz-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-ms-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
-o-transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
transition: opacity 0ms linear 0ms, visibility 0ms linear 0ms;
}