ralber 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/ralber.rb +46 -0
- data/lib/ralber/album.rb +215 -0
- data/lib/ralber/commands/create_command.rb +39 -0
- data/lib/ralber/commands/publish_command.rb +72 -0
- data/lib/ralber/commands/update_command.rb +31 -0
- data/lib/ralber/image.rb +155 -0
- data/lib/ralber/observable.rb +17 -0
- data/lib/ralber/publisher.rb +167 -0
- data/lib/ralber/template.rb +56 -0
- data/templates/default/css/pure/pure-min.css +11 -0
- data/templates/default/css/styles.css +165 -0
- data/templates/default/detail.html.erb +41 -0
- data/templates/default/fonts/FiraSans-Light.eot +0 -0
- data/templates/default/fonts/FiraSans-Light.otf +0 -0
- data/templates/default/fonts/FiraSans-Light.ttf +0 -0
- data/templates/default/fonts/FiraSans-Light.woff +0 -0
- data/templates/default/fonts/FiraSans-LightItalic.eot +0 -0
- data/templates/default/fonts/FiraSans-LightItalic.otf +0 -0
- data/templates/default/fonts/FiraSans-LightItalic.ttf +0 -0
- data/templates/default/fonts/FiraSans-LightItalic.woff +0 -0
- data/templates/default/fonts/font-awesome-4.2.0/css/font-awesome.min.css +4 -0
- data/templates/default/fonts/font-awesome-4.2.0/fonts/FontAwesome.otf +0 -0
- data/templates/default/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.eot +0 -0
- data/templates/default/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.svg +520 -0
- data/templates/default/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.ttf +0 -0
- data/templates/default/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.woff +0 -0
- data/templates/default/index.html.erb +61 -0
- data/templates/default/template.json +25 -0
- data/templates/fancybox-dark/css/pure/pure-min.css +11 -0
- data/templates/fancybox-dark/css/styles.css +165 -0
- data/templates/fancybox-dark/detail.html.erb +41 -0
- data/templates/fancybox-dark/fancybox/CHANGELOG.md +125 -0
- data/templates/fancybox-dark/fancybox/README.md +217 -0
- data/templates/fancybox-dark/fancybox/lib/jquery-1.10.1.min.js +6 -0
- data/templates/fancybox-dark/fancybox/lib/jquery-1.9.0.min.js +4 -0
- data/templates/fancybox-dark/fancybox/lib/jquery.mousewheel-3.0.6.pack.js +13 -0
- data/templates/fancybox-dark/fancybox/source/blank.gif +0 -0
- data/templates/fancybox-dark/fancybox/source/fancybox_loading.gif +0 -0
- data/templates/fancybox-dark/fancybox/source/fancybox_loading@2x.gif +0 -0
- data/templates/fancybox-dark/fancybox/source/fancybox_overlay.png +0 -0
- data/templates/fancybox-dark/fancybox/source/fancybox_sprite.png +0 -0
- data/templates/fancybox-dark/fancybox/source/fancybox_sprite@2x.png +0 -0
- data/templates/fancybox-dark/fancybox/source/helpers/fancybox_buttons.png +0 -0
- data/templates/fancybox-dark/fancybox/source/helpers/jquery.fancybox-buttons.css +97 -0
- data/templates/fancybox-dark/fancybox/source/helpers/jquery.fancybox-buttons.js +122 -0
- data/templates/fancybox-dark/fancybox/source/helpers/jquery.fancybox-media.js +199 -0
- data/templates/fancybox-dark/fancybox/source/helpers/jquery.fancybox-thumbs.css +55 -0
- data/templates/fancybox-dark/fancybox/source/helpers/jquery.fancybox-thumbs.js +162 -0
- data/templates/fancybox-dark/fancybox/source/jquery.fancybox.css +274 -0
- data/templates/fancybox-dark/fancybox/source/jquery.fancybox.js +2020 -0
- data/templates/fancybox-dark/fancybox/source/jquery.fancybox.pack.js +46 -0
- data/templates/fancybox-dark/fonts/FiraSans-Light.eot +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-Light.otf +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-Light.ttf +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-Light.woff +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-LightItalic.eot +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-LightItalic.otf +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-LightItalic.ttf +0 -0
- data/templates/fancybox-dark/fonts/FiraSans-LightItalic.woff +0 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/css/font-awesome.min.css +4 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/fonts/FontAwesome.otf +0 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.eot +0 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.svg +520 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.ttf +0 -0
- data/templates/fancybox-dark/fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.woff +0 -0
- data/templates/fancybox-dark/index.html.erb +79 -0
- data/templates/fancybox-dark/template.json +20 -0
- metadata +167 -0
@@ -0,0 +1,199 @@
|
|
1
|
+
/*!
|
2
|
+
* Media helper for fancyBox
|
3
|
+
* version: 1.0.6 (Fri, 14 Jun 2013)
|
4
|
+
* @requires fancyBox v2.0 or later
|
5
|
+
*
|
6
|
+
* Usage:
|
7
|
+
* $(".fancybox").fancybox({
|
8
|
+
* helpers : {
|
9
|
+
* media: true
|
10
|
+
* }
|
11
|
+
* });
|
12
|
+
*
|
13
|
+
* Set custom URL parameters:
|
14
|
+
* $(".fancybox").fancybox({
|
15
|
+
* helpers : {
|
16
|
+
* media: {
|
17
|
+
* youtube : {
|
18
|
+
* params : {
|
19
|
+
* autoplay : 0
|
20
|
+
* }
|
21
|
+
* }
|
22
|
+
* }
|
23
|
+
* }
|
24
|
+
* });
|
25
|
+
*
|
26
|
+
* Or:
|
27
|
+
* $(".fancybox").fancybox({,
|
28
|
+
* helpers : {
|
29
|
+
* media: true
|
30
|
+
* },
|
31
|
+
* youtube : {
|
32
|
+
* autoplay: 0
|
33
|
+
* }
|
34
|
+
* });
|
35
|
+
*
|
36
|
+
* Supports:
|
37
|
+
*
|
38
|
+
* Youtube
|
39
|
+
* http://www.youtube.com/watch?v=opj24KnzrWo
|
40
|
+
* http://www.youtube.com/embed/opj24KnzrWo
|
41
|
+
* http://youtu.be/opj24KnzrWo
|
42
|
+
* http://www.youtube-nocookie.com/embed/opj24KnzrWo
|
43
|
+
* Vimeo
|
44
|
+
* http://vimeo.com/40648169
|
45
|
+
* http://vimeo.com/channels/staffpicks/38843628
|
46
|
+
* http://vimeo.com/groups/surrealism/videos/36516384
|
47
|
+
* http://player.vimeo.com/video/45074303
|
48
|
+
* Metacafe
|
49
|
+
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
|
50
|
+
* http://www.metacafe.com/watch/7635964/
|
51
|
+
* Dailymotion
|
52
|
+
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
|
53
|
+
* Twitvid
|
54
|
+
* http://twitvid.com/QY7MD
|
55
|
+
* Twitpic
|
56
|
+
* http://twitpic.com/7p93st
|
57
|
+
* Instagram
|
58
|
+
* http://instagr.am/p/IejkuUGxQn/
|
59
|
+
* http://instagram.com/p/IejkuUGxQn/
|
60
|
+
* Google maps
|
61
|
+
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
|
62
|
+
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
|
63
|
+
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
|
64
|
+
*/
|
65
|
+
(function ($) {
|
66
|
+
"use strict";
|
67
|
+
|
68
|
+
//Shortcut for fancyBox object
|
69
|
+
var F = $.fancybox,
|
70
|
+
format = function( url, rez, params ) {
|
71
|
+
params = params || '';
|
72
|
+
|
73
|
+
if ( $.type( params ) === "object" ) {
|
74
|
+
params = $.param(params, true);
|
75
|
+
}
|
76
|
+
|
77
|
+
$.each(rez, function(key, value) {
|
78
|
+
url = url.replace( '$' + key, value || '' );
|
79
|
+
});
|
80
|
+
|
81
|
+
if (params.length) {
|
82
|
+
url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
|
83
|
+
}
|
84
|
+
|
85
|
+
return url;
|
86
|
+
};
|
87
|
+
|
88
|
+
//Add helper object
|
89
|
+
F.helpers.media = {
|
90
|
+
defaults : {
|
91
|
+
youtube : {
|
92
|
+
matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
|
93
|
+
params : {
|
94
|
+
autoplay : 1,
|
95
|
+
autohide : 1,
|
96
|
+
fs : 1,
|
97
|
+
rel : 0,
|
98
|
+
hd : 1,
|
99
|
+
wmode : 'opaque',
|
100
|
+
enablejsapi : 1
|
101
|
+
},
|
102
|
+
type : 'iframe',
|
103
|
+
url : '//www.youtube.com/embed/$3'
|
104
|
+
},
|
105
|
+
vimeo : {
|
106
|
+
matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
|
107
|
+
params : {
|
108
|
+
autoplay : 1,
|
109
|
+
hd : 1,
|
110
|
+
show_title : 1,
|
111
|
+
show_byline : 1,
|
112
|
+
show_portrait : 0,
|
113
|
+
fullscreen : 1
|
114
|
+
},
|
115
|
+
type : 'iframe',
|
116
|
+
url : '//player.vimeo.com/video/$1'
|
117
|
+
},
|
118
|
+
metacafe : {
|
119
|
+
matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
|
120
|
+
params : {
|
121
|
+
autoPlay : 'yes'
|
122
|
+
},
|
123
|
+
type : 'swf',
|
124
|
+
url : function( rez, params, obj ) {
|
125
|
+
obj.swf.flashVars = 'playerVars=' + $.param( params, true );
|
126
|
+
|
127
|
+
return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
|
128
|
+
}
|
129
|
+
},
|
130
|
+
dailymotion : {
|
131
|
+
matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
|
132
|
+
params : {
|
133
|
+
additionalInfos : 0,
|
134
|
+
autoStart : 1
|
135
|
+
},
|
136
|
+
type : 'swf',
|
137
|
+
url : '//www.dailymotion.com/swf/video/$1'
|
138
|
+
},
|
139
|
+
twitvid : {
|
140
|
+
matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
|
141
|
+
params : {
|
142
|
+
autoplay : 0
|
143
|
+
},
|
144
|
+
type : 'iframe',
|
145
|
+
url : '//www.twitvid.com/embed.php?guid=$1'
|
146
|
+
},
|
147
|
+
twitpic : {
|
148
|
+
matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
|
149
|
+
type : 'image',
|
150
|
+
url : '//twitpic.com/show/full/$1/'
|
151
|
+
},
|
152
|
+
instagram : {
|
153
|
+
matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
|
154
|
+
type : 'image',
|
155
|
+
url : '//$1/p/$2/media/?size=l'
|
156
|
+
},
|
157
|
+
google_maps : {
|
158
|
+
matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
|
159
|
+
type : 'iframe',
|
160
|
+
url : function( rez ) {
|
161
|
+
return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
|
162
|
+
}
|
163
|
+
}
|
164
|
+
},
|
165
|
+
|
166
|
+
beforeLoad : function(opts, obj) {
|
167
|
+
var url = obj.href || '',
|
168
|
+
type = false,
|
169
|
+
what,
|
170
|
+
item,
|
171
|
+
rez,
|
172
|
+
params;
|
173
|
+
|
174
|
+
for (what in opts) {
|
175
|
+
if (opts.hasOwnProperty(what)) {
|
176
|
+
item = opts[ what ];
|
177
|
+
rez = url.match( item.matcher );
|
178
|
+
|
179
|
+
if (rez) {
|
180
|
+
type = item.type;
|
181
|
+
params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
|
182
|
+
|
183
|
+
url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
|
184
|
+
|
185
|
+
break;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
if (type) {
|
191
|
+
obj.href = url;
|
192
|
+
obj.type = type;
|
193
|
+
|
194
|
+
obj.autoHeight = false;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
};
|
198
|
+
|
199
|
+
}(jQuery));
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#fancybox-thumbs {
|
2
|
+
position: fixed;
|
3
|
+
left: 0;
|
4
|
+
width: 100%;
|
5
|
+
overflow: hidden;
|
6
|
+
z-index: 8050;
|
7
|
+
}
|
8
|
+
|
9
|
+
#fancybox-thumbs.bottom {
|
10
|
+
bottom: 2px;
|
11
|
+
}
|
12
|
+
|
13
|
+
#fancybox-thumbs.top {
|
14
|
+
top: 2px;
|
15
|
+
}
|
16
|
+
|
17
|
+
#fancybox-thumbs ul {
|
18
|
+
position: relative;
|
19
|
+
list-style: none;
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
#fancybox-thumbs ul li {
|
25
|
+
float: left;
|
26
|
+
padding: 1px;
|
27
|
+
opacity: 0.5;
|
28
|
+
}
|
29
|
+
|
30
|
+
#fancybox-thumbs ul li.active {
|
31
|
+
opacity: 0.75;
|
32
|
+
padding: 0;
|
33
|
+
border: 1px solid #fff;
|
34
|
+
}
|
35
|
+
|
36
|
+
#fancybox-thumbs ul li:hover {
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
#fancybox-thumbs ul li a {
|
41
|
+
display: block;
|
42
|
+
position: relative;
|
43
|
+
overflow: hidden;
|
44
|
+
border: 1px solid #222;
|
45
|
+
background: #111;
|
46
|
+
outline: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
#fancybox-thumbs ul li img {
|
50
|
+
display: block;
|
51
|
+
position: relative;
|
52
|
+
border: 0;
|
53
|
+
padding: 0;
|
54
|
+
max-width: none;
|
55
|
+
}
|
@@ -0,0 +1,162 @@
|
|
1
|
+
/*!
|
2
|
+
* Thumbnail helper for fancyBox
|
3
|
+
* version: 1.0.7 (Mon, 01 Oct 2012)
|
4
|
+
* @requires fancyBox v2.0 or later
|
5
|
+
*
|
6
|
+
* Usage:
|
7
|
+
* $(".fancybox").fancybox({
|
8
|
+
* helpers : {
|
9
|
+
* thumbs: {
|
10
|
+
* width : 50,
|
11
|
+
* height : 50
|
12
|
+
* }
|
13
|
+
* }
|
14
|
+
* });
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
(function ($) {
|
18
|
+
//Shortcut for fancyBox object
|
19
|
+
var F = $.fancybox;
|
20
|
+
|
21
|
+
//Add helper object
|
22
|
+
F.helpers.thumbs = {
|
23
|
+
defaults : {
|
24
|
+
width : 50, // thumbnail width
|
25
|
+
height : 50, // thumbnail height
|
26
|
+
position : 'bottom', // 'top' or 'bottom'
|
27
|
+
source : function ( item ) { // function to obtain the URL of the thumbnail image
|
28
|
+
var href;
|
29
|
+
|
30
|
+
if (item.element) {
|
31
|
+
href = $(item.element).find('img').attr('src');
|
32
|
+
}
|
33
|
+
|
34
|
+
if (!href && item.type === 'image' && item.href) {
|
35
|
+
href = item.href;
|
36
|
+
}
|
37
|
+
|
38
|
+
return href;
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
wrap : null,
|
43
|
+
list : null,
|
44
|
+
width : 0,
|
45
|
+
|
46
|
+
init: function (opts, obj) {
|
47
|
+
var that = this,
|
48
|
+
list,
|
49
|
+
thumbWidth = opts.width,
|
50
|
+
thumbHeight = opts.height,
|
51
|
+
thumbSource = opts.source;
|
52
|
+
|
53
|
+
//Build list structure
|
54
|
+
list = '';
|
55
|
+
|
56
|
+
for (var n = 0; n < obj.group.length; n++) {
|
57
|
+
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
58
|
+
}
|
59
|
+
|
60
|
+
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
|
61
|
+
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
62
|
+
|
63
|
+
//Load each thumbnail
|
64
|
+
$.each(obj.group, function (i) {
|
65
|
+
var href = thumbSource( obj.group[ i ] );
|
66
|
+
|
67
|
+
if (!href) {
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
|
71
|
+
$("<img />").load(function () {
|
72
|
+
var width = this.width,
|
73
|
+
height = this.height,
|
74
|
+
widthRatio, heightRatio, parent;
|
75
|
+
|
76
|
+
if (!that.list || !width || !height) {
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
|
80
|
+
//Calculate thumbnail width/height and center it
|
81
|
+
widthRatio = width / thumbWidth;
|
82
|
+
heightRatio = height / thumbHeight;
|
83
|
+
|
84
|
+
parent = that.list.children().eq(i).find('a');
|
85
|
+
|
86
|
+
if (widthRatio >= 1 && heightRatio >= 1) {
|
87
|
+
if (widthRatio > heightRatio) {
|
88
|
+
width = Math.floor(width / heightRatio);
|
89
|
+
height = thumbHeight;
|
90
|
+
|
91
|
+
} else {
|
92
|
+
width = thumbWidth;
|
93
|
+
height = Math.floor(height / widthRatio);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
$(this).css({
|
98
|
+
width : width,
|
99
|
+
height : height,
|
100
|
+
top : Math.floor(thumbHeight / 2 - height / 2),
|
101
|
+
left : Math.floor(thumbWidth / 2 - width / 2)
|
102
|
+
});
|
103
|
+
|
104
|
+
parent.width(thumbWidth).height(thumbHeight);
|
105
|
+
|
106
|
+
$(this).hide().appendTo(parent).fadeIn(300);
|
107
|
+
|
108
|
+
}).attr('src', href);
|
109
|
+
});
|
110
|
+
|
111
|
+
//Set initial width
|
112
|
+
this.width = this.list.children().eq(0).outerWidth(true);
|
113
|
+
|
114
|
+
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
|
115
|
+
},
|
116
|
+
|
117
|
+
beforeLoad: function (opts, obj) {
|
118
|
+
//Remove self if gallery do not have at least two items
|
119
|
+
if (obj.group.length < 2) {
|
120
|
+
obj.helpers.thumbs = false;
|
121
|
+
|
122
|
+
return;
|
123
|
+
}
|
124
|
+
|
125
|
+
//Increase bottom margin to give space for thumbs
|
126
|
+
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
|
127
|
+
},
|
128
|
+
|
129
|
+
afterShow: function (opts, obj) {
|
130
|
+
//Check if exists and create or update list
|
131
|
+
if (this.list) {
|
132
|
+
this.onUpdate(opts, obj);
|
133
|
+
|
134
|
+
} else {
|
135
|
+
this.init(opts, obj);
|
136
|
+
}
|
137
|
+
|
138
|
+
//Set active element
|
139
|
+
this.list.children().removeClass('active').eq(obj.index).addClass('active');
|
140
|
+
},
|
141
|
+
|
142
|
+
//Center list
|
143
|
+
onUpdate: function (opts, obj) {
|
144
|
+
if (this.list) {
|
145
|
+
this.list.stop(true).animate({
|
146
|
+
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
|
147
|
+
}, 150);
|
148
|
+
}
|
149
|
+
},
|
150
|
+
|
151
|
+
beforeClose: function () {
|
152
|
+
if (this.wrap) {
|
153
|
+
this.wrap.remove();
|
154
|
+
}
|
155
|
+
|
156
|
+
this.wrap = null;
|
157
|
+
this.list = null;
|
158
|
+
this.width = 0;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
}(jQuery));
|
@@ -0,0 +1,274 @@
|
|
1
|
+
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
|
2
|
+
.fancybox-wrap,
|
3
|
+
.fancybox-skin,
|
4
|
+
.fancybox-outer,
|
5
|
+
.fancybox-inner,
|
6
|
+
.fancybox-image,
|
7
|
+
.fancybox-wrap iframe,
|
8
|
+
.fancybox-wrap object,
|
9
|
+
.fancybox-nav,
|
10
|
+
.fancybox-nav span,
|
11
|
+
.fancybox-tmp
|
12
|
+
{
|
13
|
+
padding: 0;
|
14
|
+
margin: 0;
|
15
|
+
border: 0;
|
16
|
+
outline: none;
|
17
|
+
vertical-align: top;
|
18
|
+
}
|
19
|
+
|
20
|
+
.fancybox-wrap {
|
21
|
+
position: absolute;
|
22
|
+
top: 0;
|
23
|
+
left: 0;
|
24
|
+
z-index: 8020;
|
25
|
+
}
|
26
|
+
|
27
|
+
.fancybox-skin {
|
28
|
+
position: relative;
|
29
|
+
background: #f9f9f9;
|
30
|
+
color: #444;
|
31
|
+
text-shadow: none;
|
32
|
+
-webkit-border-radius: 4px;
|
33
|
+
-moz-border-radius: 4px;
|
34
|
+
border-radius: 4px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.fancybox-opened {
|
38
|
+
z-index: 8030;
|
39
|
+
}
|
40
|
+
|
41
|
+
.fancybox-opened .fancybox-skin {
|
42
|
+
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
43
|
+
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
44
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
45
|
+
}
|
46
|
+
|
47
|
+
.fancybox-outer, .fancybox-inner {
|
48
|
+
position: relative;
|
49
|
+
}
|
50
|
+
|
51
|
+
.fancybox-inner {
|
52
|
+
overflow: hidden;
|
53
|
+
}
|
54
|
+
|
55
|
+
.fancybox-type-iframe .fancybox-inner {
|
56
|
+
-webkit-overflow-scrolling: touch;
|
57
|
+
}
|
58
|
+
|
59
|
+
.fancybox-error {
|
60
|
+
color: #444;
|
61
|
+
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
62
|
+
margin: 0;
|
63
|
+
padding: 15px;
|
64
|
+
white-space: nowrap;
|
65
|
+
}
|
66
|
+
|
67
|
+
.fancybox-image, .fancybox-iframe {
|
68
|
+
display: block;
|
69
|
+
width: 100%;
|
70
|
+
height: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.fancybox-image {
|
74
|
+
max-width: 100%;
|
75
|
+
max-height: 100%;
|
76
|
+
}
|
77
|
+
|
78
|
+
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
79
|
+
background-image: url('fancybox_sprite.png');
|
80
|
+
}
|
81
|
+
|
82
|
+
#fancybox-loading {
|
83
|
+
position: fixed;
|
84
|
+
top: 50%;
|
85
|
+
left: 50%;
|
86
|
+
margin-top: -22px;
|
87
|
+
margin-left: -22px;
|
88
|
+
background-position: 0 -108px;
|
89
|
+
opacity: 0.8;
|
90
|
+
cursor: pointer;
|
91
|
+
z-index: 8060;
|
92
|
+
}
|
93
|
+
|
94
|
+
#fancybox-loading div {
|
95
|
+
width: 44px;
|
96
|
+
height: 44px;
|
97
|
+
background: url('fancybox_loading.gif') center center no-repeat;
|
98
|
+
}
|
99
|
+
|
100
|
+
.fancybox-close {
|
101
|
+
position: absolute;
|
102
|
+
top: -18px;
|
103
|
+
right: -18px;
|
104
|
+
width: 36px;
|
105
|
+
height: 36px;
|
106
|
+
cursor: pointer;
|
107
|
+
z-index: 8040;
|
108
|
+
}
|
109
|
+
|
110
|
+
.fancybox-nav {
|
111
|
+
position: absolute;
|
112
|
+
top: 0;
|
113
|
+
width: 40%;
|
114
|
+
height: 100%;
|
115
|
+
cursor: pointer;
|
116
|
+
text-decoration: none;
|
117
|
+
background: transparent url('blank.gif'); /* helps IE */
|
118
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
119
|
+
z-index: 8040;
|
120
|
+
}
|
121
|
+
|
122
|
+
.fancybox-prev {
|
123
|
+
left: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
.fancybox-next {
|
127
|
+
right: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
.fancybox-nav span {
|
131
|
+
position: absolute;
|
132
|
+
top: 50%;
|
133
|
+
width: 36px;
|
134
|
+
height: 34px;
|
135
|
+
margin-top: -18px;
|
136
|
+
cursor: pointer;
|
137
|
+
z-index: 8040;
|
138
|
+
visibility: hidden;
|
139
|
+
}
|
140
|
+
|
141
|
+
.fancybox-prev span {
|
142
|
+
left: 10px;
|
143
|
+
background-position: 0 -36px;
|
144
|
+
}
|
145
|
+
|
146
|
+
.fancybox-next span {
|
147
|
+
right: 10px;
|
148
|
+
background-position: 0 -72px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.fancybox-nav:hover span {
|
152
|
+
visibility: visible;
|
153
|
+
}
|
154
|
+
|
155
|
+
.fancybox-tmp {
|
156
|
+
position: absolute;
|
157
|
+
top: -99999px;
|
158
|
+
left: -99999px;
|
159
|
+
visibility: hidden;
|
160
|
+
max-width: 99999px;
|
161
|
+
max-height: 99999px;
|
162
|
+
overflow: visible !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
/* Overlay helper */
|
166
|
+
|
167
|
+
.fancybox-lock {
|
168
|
+
overflow: hidden !important;
|
169
|
+
width: auto;
|
170
|
+
}
|
171
|
+
|
172
|
+
.fancybox-lock body {
|
173
|
+
overflow: hidden !important;
|
174
|
+
}
|
175
|
+
|
176
|
+
.fancybox-lock-test {
|
177
|
+
overflow-y: hidden !important;
|
178
|
+
}
|
179
|
+
|
180
|
+
.fancybox-overlay {
|
181
|
+
position: absolute;
|
182
|
+
top: 0;
|
183
|
+
left: 0;
|
184
|
+
overflow: hidden;
|
185
|
+
display: none;
|
186
|
+
z-index: 8010;
|
187
|
+
background: url('fancybox_overlay.png');
|
188
|
+
}
|
189
|
+
|
190
|
+
.fancybox-overlay-fixed {
|
191
|
+
position: fixed;
|
192
|
+
bottom: 0;
|
193
|
+
right: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
.fancybox-lock .fancybox-overlay {
|
197
|
+
overflow: auto;
|
198
|
+
overflow-y: scroll;
|
199
|
+
}
|
200
|
+
|
201
|
+
/* Title helper */
|
202
|
+
|
203
|
+
.fancybox-title {
|
204
|
+
visibility: hidden;
|
205
|
+
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
206
|
+
position: relative;
|
207
|
+
text-shadow: none;
|
208
|
+
z-index: 8050;
|
209
|
+
}
|
210
|
+
|
211
|
+
.fancybox-opened .fancybox-title {
|
212
|
+
visibility: visible;
|
213
|
+
}
|
214
|
+
|
215
|
+
.fancybox-title-float-wrap {
|
216
|
+
position: absolute;
|
217
|
+
bottom: 0;
|
218
|
+
right: 50%;
|
219
|
+
margin-bottom: -35px;
|
220
|
+
z-index: 8050;
|
221
|
+
text-align: center;
|
222
|
+
}
|
223
|
+
|
224
|
+
.fancybox-title-float-wrap .child {
|
225
|
+
display: inline-block;
|
226
|
+
margin-right: -100%;
|
227
|
+
padding: 2px 20px;
|
228
|
+
background: transparent; /* Fallback for web browsers that doesn't support RGBa */
|
229
|
+
background: rgba(0, 0, 0, 0.8);
|
230
|
+
-webkit-border-radius: 15px;
|
231
|
+
-moz-border-radius: 15px;
|
232
|
+
border-radius: 15px;
|
233
|
+
text-shadow: 0 1px 2px #222;
|
234
|
+
color: #FFF;
|
235
|
+
font-weight: bold;
|
236
|
+
line-height: 24px;
|
237
|
+
white-space: nowrap;
|
238
|
+
}
|
239
|
+
|
240
|
+
.fancybox-title-outside-wrap {
|
241
|
+
position: relative;
|
242
|
+
margin-top: 10px;
|
243
|
+
color: #fff;
|
244
|
+
}
|
245
|
+
|
246
|
+
.fancybox-title-inside-wrap {
|
247
|
+
padding-top: 10px;
|
248
|
+
}
|
249
|
+
|
250
|
+
.fancybox-title-over-wrap {
|
251
|
+
position: absolute;
|
252
|
+
bottom: 0;
|
253
|
+
left: 0;
|
254
|
+
color: #fff;
|
255
|
+
padding: 10px;
|
256
|
+
background: #000;
|
257
|
+
background: rgba(0, 0, 0, .8);
|
258
|
+
}
|
259
|
+
|
260
|
+
/*Retina graphics!*/
|
261
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
262
|
+
only screen and (min--moz-device-pixel-ratio: 1.5),
|
263
|
+
only screen and (min-device-pixel-ratio: 1.5){
|
264
|
+
|
265
|
+
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
266
|
+
background-image: url('fancybox_sprite@2x.png');
|
267
|
+
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
|
268
|
+
}
|
269
|
+
|
270
|
+
#fancybox-loading div {
|
271
|
+
background-image: url('fancybox_loading@2x.gif');
|
272
|
+
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
|
273
|
+
}
|
274
|
+
}
|