c80_yax 0.1.0.24 → 0.1.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
1
+ /* overlay at start */
2
+ .mfp-fade.mfp-bg {
3
+ opacity: 0;
4
+
5
+ -webkit-transition: all 0.30s ease-out;
6
+ -moz-transition: all 0.30s ease-out;
7
+ transition: all 0.30s ease-out;
8
+ }
9
+ /* overlay animate in */
10
+ .mfp-fade.mfp-bg.mfp-ready {
11
+ /*cross-browser-opacity*/
12
+ opacity: 0.8;
13
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
14
+ -khtml-opacity: 0.8;
15
+ -moz-opacity: 0.8;
16
+ }
17
+ /* overlay animate out */
18
+ .mfp-fade.mfp-bg.mfp-removing {
19
+ opacity: 0;
20
+ }
21
+
22
+ /* content at start */
23
+ .mfp-fade.mfp-wrap .mfp-content {
24
+ opacity: 0;
25
+
26
+ -webkit-transition: all 0.30s ease-out;
27
+ -moz-transition: all 0.30s ease-out;
28
+ transition: all 0.30s ease-out;
29
+ }
30
+ /* content animate it */
31
+ .mfp-fade.mfp-wrap.mfp-ready .mfp-content {
32
+ opacity: 1;
33
+ }
34
+ /* content animate out */
35
+ .mfp-fade.mfp-wrap.mfp-removing .mfp-content {
36
+ opacity: 0;
37
+ }
38
+
39
+ .mfp-counter {
40
+ /*display: none;*/
41
+ }
@@ -0,0 +1,374 @@
1
+ /* Magnific Popup CSS */
2
+ .mfp-bg {
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ z-index: 1042;
8
+ overflow: hidden;
9
+ position: fixed;
10
+ background: #0b0b0b;
11
+ opacity: 0.8;
12
+ filter: alpha(opacity=80); }
13
+
14
+ .mfp-wrap {
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ z-index: 1043;
20
+ position: fixed;
21
+ outline: none !important;
22
+ -webkit-backface-visibility: hidden; }
23
+
24
+ .mfp-container {
25
+ text-align: center;
26
+ position: absolute;
27
+ width: 100%;
28
+ height: 100%;
29
+ left: 0;
30
+ top: 0;
31
+ padding: 0 8px;
32
+ -webkit-box-sizing: border-box;
33
+ -moz-box-sizing: border-box;
34
+ box-sizing: border-box; }
35
+
36
+ .mfp-container:before {
37
+ content: '';
38
+ display: inline-block;
39
+ height: 100%;
40
+ vertical-align: middle; }
41
+
42
+ .mfp-align-top .mfp-container:before {
43
+ display: none; }
44
+
45
+ .mfp-content {
46
+ position: relative;
47
+ display: inline-block;
48
+ vertical-align: middle;
49
+ margin: 0 auto;
50
+ text-align: left;
51
+ z-index: 1045; }
52
+
53
+ .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
54
+ width: 100%;
55
+ cursor: auto; }
56
+
57
+ .mfp-ajax-cur {
58
+ cursor: progress; }
59
+
60
+ .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
61
+ cursor: -moz-zoom-out;
62
+ cursor: -webkit-zoom-out;
63
+ cursor: zoom-out; }
64
+
65
+ .mfp-zoom {
66
+ cursor: pointer;
67
+ cursor: -webkit-zoom-in;
68
+ cursor: -moz-zoom-in;
69
+ cursor: zoom-in; }
70
+
71
+ .mfp-auto-cursor .mfp-content {
72
+ cursor: auto; }
73
+
74
+ .mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
75
+ -webkit-user-select: none;
76
+ -moz-user-select: none;
77
+ user-select: none; }
78
+
79
+ .mfp-loading.mfp-figure {
80
+ display: none; }
81
+
82
+ .mfp-hide {
83
+ display: none !important; }
84
+
85
+ .mfp-preloader {
86
+ color: #CCC;
87
+ position: absolute;
88
+ top: 50%;
89
+ width: auto;
90
+ text-align: center;
91
+ margin-top: -0.8em;
92
+ left: 8px;
93
+ right: 8px;
94
+ z-index: 1044; }
95
+ .mfp-preloader a {
96
+ color: #CCC; }
97
+ .mfp-preloader a:hover {
98
+ color: #FFF; }
99
+
100
+ .mfp-s-ready .mfp-preloader {
101
+ display: none; }
102
+
103
+ .mfp-s-error .mfp-content {
104
+ display: none; }
105
+
106
+ button.mfp-close, button.mfp-arrow {
107
+ overflow: visible;
108
+ cursor: pointer;
109
+ background: transparent;
110
+ border: 0;
111
+ -webkit-appearance: none;
112
+ display: block;
113
+ outline: none;
114
+ padding: 0;
115
+ z-index: 1046;
116
+ -webkit-box-shadow: none;
117
+ box-shadow: none; }
118
+ button::-moz-focus-inner {
119
+ padding: 0;
120
+ border: 0; }
121
+
122
+ .mfp-close {
123
+ width: 44px;
124
+ height: 44px;
125
+ line-height: 44px;
126
+ position: absolute;
127
+ right: 0;
128
+ top: 0;
129
+ text-decoration: none;
130
+ text-align: center;
131
+ opacity: 0.65;
132
+ filter: alpha(opacity=65);
133
+ padding: 0 0 18px 10px;
134
+ color: #FFF;
135
+ font-style: normal;
136
+ font-size: 28px;
137
+ font-family: Arial, Baskerville, monospace; }
138
+ .mfp-close:hover, .mfp-close:focus {
139
+ opacity: 1;
140
+ filter: alpha(opacity=100); }
141
+ .mfp-close:active {
142
+ top: 1px; }
143
+
144
+ .mfp-close-btn-in .mfp-close {
145
+ color: #333; }
146
+
147
+ .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
148
+ color: #FFF;
149
+ right: -6px;
150
+ text-align: right;
151
+ padding-right: 6px;
152
+ width: 100%; }
153
+
154
+ .mfp-counter {
155
+ position: absolute;
156
+ top: 0;
157
+ right: 0;
158
+ color: #CCC;
159
+ font-size: 12px;
160
+ line-height: 18px;
161
+ white-space: nowrap; }
162
+
163
+ .mfp-arrow {
164
+ position: absolute;
165
+ opacity: 0.65;
166
+ filter: alpha(opacity=65);
167
+ margin: 0;
168
+ top: 50%;
169
+ margin-top: -55px;
170
+ padding: 0;
171
+ width: 90px;
172
+ height: 110px;
173
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
174
+ .mfp-arrow:active {
175
+ margin-top: -54px; }
176
+ .mfp-arrow:hover, .mfp-arrow:focus {
177
+ opacity: 1;
178
+ filter: alpha(opacity=100); }
179
+ .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
180
+ content: '';
181
+ display: block;
182
+ width: 0;
183
+ height: 0;
184
+ position: absolute;
185
+ left: 0;
186
+ top: 0;
187
+ margin-top: 35px;
188
+ margin-left: 35px;
189
+ border: medium inset transparent; }
190
+ .mfp-arrow:after, .mfp-arrow .mfp-a {
191
+ border-top-width: 13px;
192
+ border-bottom-width: 13px;
193
+ top: 8px; }
194
+ .mfp-arrow:before, .mfp-arrow .mfp-b {
195
+ border-top-width: 21px;
196
+ border-bottom-width: 21px;
197
+ opacity: 0.7; }
198
+
199
+ .mfp-arrow-left {
200
+ left: 0; }
201
+ .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
202
+ border-right: 17px solid #FFF;
203
+ margin-left: 31px; }
204
+ .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
205
+ margin-left: 25px;
206
+ border-right: 27px solid #3F3F3F; }
207
+
208
+ .mfp-arrow-right {
209
+ right: 0; }
210
+ .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
211
+ border-left: 17px solid #FFF;
212
+ margin-left: 39px; }
213
+ .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
214
+ border-left: 27px solid #3F3F3F; }
215
+
216
+ .mfp-iframe-holder {
217
+ padding-top: 40px;
218
+ padding-bottom: 40px; }
219
+ .mfp-iframe-holder .mfp-content {
220
+ line-height: 0;
221
+ width: 100%;
222
+ max-width: 900px; }
223
+ .mfp-iframe-holder .mfp-close {
224
+ top: -40px; }
225
+
226
+ .mfp-iframe-scaler {
227
+ width: 100%;
228
+ height: 0;
229
+ overflow: hidden;
230
+ padding-top: 56.25%; }
231
+ .mfp-iframe-scaler iframe {
232
+ position: absolute;
233
+ display: block;
234
+ top: 0;
235
+ left: 0;
236
+ width: 100%;
237
+ height: 100%;
238
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
239
+ background: #000; }
240
+
241
+ /* Main image in popup */
242
+ img.mfp-img {
243
+ width: auto;
244
+ max-width: 100%;
245
+ height: auto;
246
+ display: block;
247
+ line-height: 0;
248
+ -webkit-box-sizing: border-box;
249
+ -moz-box-sizing: border-box;
250
+ box-sizing: border-box;
251
+ padding: 40px 0 40px;
252
+ margin: 0 auto; }
253
+
254
+ /* The shadow behind the image */
255
+ .mfp-figure {
256
+ line-height: 0; }
257
+ .mfp-figure:after {
258
+ content: '';
259
+ position: absolute;
260
+ left: 0;
261
+ top: 40px;
262
+ bottom: 40px;
263
+ display: block;
264
+ right: 0;
265
+ width: auto;
266
+ height: auto;
267
+ z-index: -1;
268
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
269
+ background: #444; }
270
+ .mfp-figure small {
271
+ color: #BDBDBD;
272
+ display: block;
273
+ font-size: 12px;
274
+ line-height: 14px; }
275
+ .mfp-figure figure {
276
+ margin: 0; }
277
+
278
+ .mfp-bottom-bar {
279
+ margin-top: -36px;
280
+ position: absolute;
281
+ top: 100%;
282
+ left: 0;
283
+ width: 100%;
284
+ cursor: auto; }
285
+
286
+ .mfp-title {
287
+ text-align: left;
288
+ line-height: 18px;
289
+ color: #F3F3F3;
290
+ word-wrap: break-word;
291
+ padding-right: 36px; }
292
+
293
+ .mfp-image-holder .mfp-content {
294
+ max-width: 100%; }
295
+
296
+ .mfp-gallery .mfp-image-holder .mfp-figure {
297
+ cursor: pointer; }
298
+
299
+ @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
300
+ /**
301
+ * Remove all paddings around the image on small screen
302
+ */
303
+ .mfp-img-mobile .mfp-image-holder {
304
+ padding-left: 0;
305
+ padding-right: 0; }
306
+ .mfp-img-mobile img.mfp-img {
307
+ padding: 0; }
308
+ .mfp-img-mobile .mfp-figure:after {
309
+ top: 0;
310
+ bottom: 0; }
311
+ .mfp-img-mobile .mfp-figure small {
312
+ display: inline;
313
+ margin-left: 5px; }
314
+ .mfp-img-mobile .mfp-bottom-bar {
315
+ background: rgba(0, 0, 0, 0.6);
316
+ bottom: 0;
317
+ margin: 0;
318
+ top: auto;
319
+ padding: 3px 5px;
320
+ position: fixed;
321
+ -webkit-box-sizing: border-box;
322
+ -moz-box-sizing: border-box;
323
+ box-sizing: border-box; }
324
+ .mfp-img-mobile .mfp-bottom-bar:empty {
325
+ padding: 0; }
326
+ .mfp-img-mobile .mfp-counter {
327
+ right: 5px;
328
+ top: 3px; }
329
+ .mfp-img-mobile .mfp-close {
330
+ top: 0;
331
+ right: 0;
332
+ width: 35px;
333
+ height: 35px;
334
+ line-height: 35px;
335
+ background: rgba(0, 0, 0, 0.6);
336
+ position: fixed;
337
+ text-align: center;
338
+ padding: 0; }
339
+ }
340
+
341
+ @media all and (max-width: 900px) {
342
+ .mfp-arrow {
343
+ -webkit-transform: scale(0.75);
344
+ transform: scale(0.75); }
345
+
346
+ .mfp-arrow-left {
347
+ -webkit-transform-origin: 0;
348
+ transform-origin: 0; }
349
+
350
+ .mfp-arrow-right {
351
+ -webkit-transform-origin: 100%;
352
+ transform-origin: 100%; }
353
+
354
+ .mfp-container {
355
+ padding-left: 6px;
356
+ padding-right: 6px; }
357
+ }
358
+
359
+ .mfp-ie7 .mfp-img {
360
+ padding: 0; }
361
+ .mfp-ie7 .mfp-bottom-bar {
362
+ width: 600px;
363
+ left: 50%;
364
+ margin-left: -300px;
365
+ margin-top: 5px;
366
+ padding-bottom: 5px; }
367
+ .mfp-ie7 .mfp-container {
368
+ padding: 0; }
369
+ .mfp-ie7 .mfp-content {
370
+ padding-top: 44px; }
371
+ .mfp-ie7 .mfp-close {
372
+ top: 0;
373
+ right: 0;
374
+ padding-top: 0; }
@@ -21,7 +21,28 @@ module C80Yax
21
21
  :image => self.fetch_first_photo(thumb_size),
22
22
  :a_href => a_href,
23
23
  :rel => rel,
24
- :a_class => 'item_main_image',
24
+ :a_class => 'item_main_image image-lnk',
25
+ :a_css_style => "width:#{ww}px;height:#{hh}px",
26
+ :image_width => ww,
27
+ :image_height => hh
28
+ })
29
+ end
30
+
31
+ def main_image_magnific(thumb_size = 'thumb_md', options = {})
32
+
33
+ rel = options.fetch(:rel, 'follow')
34
+ a_href = options.fetch(:a_href, self.fetch_first_photo('thumb_lg'))
35
+
36
+ ww = fetch_ww(thumb_size)
37
+ hh = fetch_hh(thumb_size)
38
+
39
+ h.render_image_link_lazy({
40
+ :alt_image => model.title,
41
+ # :image => main_image_tag(thumb_size),
42
+ :image => self.fetch_first_photo(thumb_size),
43
+ :a_href => a_href,
44
+ :rel => rel,
45
+ :a_class => 'item_main_image image-lnk',
25
46
  :a_css_style => "width:#{ww}px;height:#{hh}px",
26
47
  :image_width => ww,
27
48
  :image_height => hh
@@ -139,8 +160,8 @@ module C80Yax
139
160
  res = ''
140
161
  model.iphotos.each_with_index do |wp, index|
141
162
  next if index.zero?
142
- img = h.image_tag wp.image.send(thumb_size).url
143
- lnk = h.link_to img, wp.image.thumb_lg.url
163
+ img = h.image_tag wp.image.send(thumb_size).url, alt: model.title
164
+ lnk = h.link_to img, wp.image.thumb_lg.url, class: 'image-lnk', title: model.title
144
165
  res += "<li>#{lnk}</li>"
145
166
  end
146
167
  "<ul class='item_images_no_main'>#{res}</ul>".html_safe