blueimp-gallery-rails 2.3.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.
@@ -0,0 +1,282 @@
1
+ @charset 'UTF-8';
2
+ /*
3
+ * blueimp Gallery CSS 2.3.0
4
+ * https://github.com/blueimp/Gallery
5
+ *
6
+ * Copyright 2013, Sebastian Tschan
7
+ * https://blueimp.net
8
+ *
9
+ * Licensed under the MIT license:
10
+ * http://www.opensource.org/licenses/MIT
11
+ */
12
+
13
+ .blueimp-gallery,
14
+ .blueimp-gallery > .slides > .slide > .slide-content,
15
+ .blueimp-gallery > .slides > .slide > .video-content > video,
16
+ .blueimp-gallery > .slides > .slide > .video-content > img {
17
+ position: absolute;
18
+ top: 0;
19
+ right: 0;
20
+ bottom: 0;
21
+ left: 0;
22
+ /* Prevent artifacts in Mozilla Firefox: */
23
+ -moz-backface-visibility: hidden;
24
+ }
25
+ .blueimp-gallery > .slides > .slide > .slide-content,
26
+ .blueimp-gallery > .slides > .slide > .video-content > video,
27
+ .blueimp-gallery > .slides > .slide > .video-content > img {
28
+ margin: auto;
29
+ max-width: 100%;
30
+ max-height: 100%;
31
+ opacity: 1;
32
+ }
33
+ .blueimp-gallery {
34
+ position: fixed;
35
+ z-index: 9999;
36
+ overflow: hidden;
37
+ background: #000;
38
+ background: rgba(0, 0, 0, 0.9);
39
+ opacity: 0;
40
+ visibility: hidden;
41
+ display: none;
42
+ }
43
+ .blueimp-gallery-carousel {
44
+ position: relative;
45
+ z-index: auto;
46
+ height: 432px;
47
+ max-width: 768px;
48
+ margin: 1em auto;
49
+ box-shadow: 0 0 10px #000;
50
+ }
51
+ .blueimp-gallery-display {
52
+ display: block;
53
+ visibility: visible;
54
+ opacity: 1;
55
+ }
56
+ .blueimp-gallery > .slides {
57
+ position: relative;
58
+ height: 100%;
59
+ overflow: hidden;
60
+ }
61
+ .blueimp-gallery > .slides > .slide {
62
+ position: relative;
63
+ float: left;
64
+ height: 100%;
65
+ text-align: center;
66
+ -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
67
+ -moz-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
68
+ -ms-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
69
+ -o-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
70
+ transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
71
+ }
72
+ .blueimp-gallery,
73
+ .blueimp-gallery > .slides > .slide > .slide-content {
74
+ -webkit-transition: opacity 0.5s linear;
75
+ -moz-transition: opacity 0.5s linear;
76
+ -ms-transition: opacity 0.5s linear;
77
+ -o-transition: opacity 0.5s linear;
78
+ transition: opacity 0.5s linear;
79
+ }
80
+ .blueimp-gallery > .slides > .slide > .video-content > a {
81
+ position: absolute;
82
+ top: 50%;
83
+ right: 0;
84
+ left: 0;
85
+ margin: -64px auto 0;
86
+ width: 128px;
87
+ height: 128px;
88
+ background: image-url("video-play.png") center no-repeat;
89
+ cursor: pointer;
90
+ }
91
+ .blueimp-gallery > .slides > .slide > .video-playing > a,
92
+ .blueimp-gallery > .slides > .slide > .video-playing > img {
93
+ display: none;
94
+ }
95
+ .blueimp-gallery > .slides > .slide > .video-content > video {
96
+ display: none;
97
+ }
98
+ .blueimp-gallery > .slides > .slide > .video-playing > video {
99
+ display: block;
100
+ }
101
+ .blueimp-gallery > .slides > .slide-loading,
102
+ .blueimp-gallery > .slides > .slide > .video-loading > a {
103
+ background: image-url("loading.gif") center no-repeat;
104
+ background-size: 64px 64px;
105
+ }
106
+ .blueimp-gallery > .slides > .slide-loading > .slide-content {
107
+ opacity: 0;
108
+ }
109
+ .blueimp-gallery > .slides > .slide-error {
110
+ background: image-url("error.png") center no-repeat;
111
+ }
112
+ .blueimp-gallery > .slides > .slide-error > .slide-content {
113
+ display: none;
114
+ }
115
+ .blueimp-gallery > .prev,
116
+ .blueimp-gallery > .next {
117
+ position: absolute;
118
+ top: 50%;
119
+ left: 15px;
120
+ width: 40px;
121
+ height: 40px;
122
+ margin-top: -23px;
123
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
124
+ font-size: 60px;
125
+ font-weight: 100;
126
+ line-height: 30px;
127
+ color: #fff;
128
+ text-decoration: none;
129
+ text-shadow: 0 0 2px #000;
130
+ text-align: center;
131
+ background: #222;
132
+ background: rgba(0, 0, 0, 0.5);
133
+ border: 3px solid #fff;
134
+ -webkit-border-radius: 23px;
135
+ -moz-border-radius: 23px;
136
+ border-radius: 23px;
137
+ opacity: 0.5;
138
+ cursor: pointer;
139
+ display: none;
140
+ -webkit-user-select: none;
141
+ -khtml-user-select: none;
142
+ -moz-user-select: none;
143
+ -ms-user-select: none;
144
+ user-select: none;
145
+ }
146
+ .blueimp-gallery > .next {
147
+ left: auto;
148
+ right: 15px;
149
+ }
150
+ .blueimp-gallery > .close,
151
+ .blueimp-gallery > .title {
152
+ position: absolute;
153
+ top: 15px;
154
+ left: 15px;
155
+ margin: 0 40px 0 0;
156
+ font-size: 20px;
157
+ line-height: 30px;
158
+ color: #fff;
159
+ text-shadow: 0 0 2px #000;
160
+ display: none;
161
+ }
162
+ .blueimp-gallery > .close {
163
+ padding: 15px;
164
+ right: 15px;
165
+ left: auto;
166
+ margin: -15px;
167
+ font-size: 30px;
168
+ text-decoration: none;
169
+ opacity: 0.8;
170
+ cursor: pointer;
171
+ }
172
+ .blueimp-gallery > .play-pause {
173
+ position: absolute;
174
+ right: 15px;
175
+ bottom: 15px;
176
+ width: 15px;
177
+ height: 15px;
178
+ background: image-url("play-pause.png") 0 0 no-repeat;
179
+ cursor: pointer;
180
+ opacity: 0.8;
181
+ display: none;
182
+ }
183
+ .blueimp-gallery-playing > .play-pause {
184
+ background-position: -15px 0;
185
+ }
186
+ .blueimp-gallery > .indicator {
187
+ position: absolute;
188
+ top: auto;
189
+ right: 15px;
190
+ bottom: 15px;
191
+ left: 15px;
192
+ margin: 0 40px;
193
+ padding: 0;
194
+ list-style: none;
195
+ text-align: center;
196
+ line-height: 10px;
197
+ display: none;
198
+ }
199
+ .blueimp-gallery > .indicator > li {
200
+ display: inline-block;
201
+ width: 10px;
202
+ height: 10px;
203
+ margin: 6px 3px 0 3px;
204
+ background: #ccc;
205
+ background: rgba(255, 255, 255, 0.25);
206
+ border-radius: 5px;
207
+ box-shadow: 0 0 2px #000;
208
+ cursor: pointer;
209
+ }
210
+ .blueimp-gallery > .indicator > li > img {
211
+ display: block;
212
+ width: 10px;
213
+ height: 10px;
214
+ border-radius: 5px;
215
+ opacity: 0.5;
216
+ }
217
+ .blueimp-gallery > .indicator > .active {
218
+ background: #fff;
219
+ }
220
+ .blueimp-gallery > .indicator > .active > img {
221
+ margin: -1px;
222
+ border: 1px solid #fff;
223
+ opacity: 1;
224
+ }
225
+ .blueimp-gallery-controls > .prev,
226
+ .blueimp-gallery-controls > .next,
227
+ .blueimp-gallery-controls > .close,
228
+ .blueimp-gallery-controls > .title,
229
+ .blueimp-gallery-controls > .play-pause,
230
+ .blueimp-gallery-controls > .indicator {
231
+ display: block;
232
+ /* Fix z-index issues (controls behind slide element) on Android: */
233
+ -webkit-transform: translateZ(0);
234
+ -moz-transform: translateZ(0);
235
+ -ms-transform: translateZ(0);
236
+ -o-transform: translateZ(0);
237
+ transform: translateZ(0);
238
+ }
239
+ .blueimp-gallery-single > .prev,
240
+ .blueimp-gallery-left > .prev,
241
+ .blueimp-gallery-single > .next,
242
+ .blueimp-gallery-right > .next,
243
+ .blueimp-gallery-single > .play-pause,
244
+ .blueimp-gallery-single > .indicator {
245
+ display: none;
246
+ }
247
+
248
+ /* Replace PNGs with SVGs for capable browsers (excluding IE<9) */
249
+ body:last-child .blueimp-gallery > .slides > .slide > .video-content > a {
250
+ background-image: image-url("video-play.svg");
251
+ }
252
+ body:last-child .blueimp-gallery > .slides > .slide-error {
253
+ background-image: image-url("error.svg");
254
+ }
255
+ body:last-child .blueimp-gallery > .play-pause {
256
+ background-image: image-url("play-pause.svg");
257
+ }
258
+
259
+ @media (max-width: 767px) {
260
+ .blueimp-gallery-carousel {
261
+ height: 270px;
262
+ max-width: 480px;
263
+ }
264
+ }
265
+
266
+ /* IE7 fixes */
267
+ *+html .blueimp-gallery > .slides > .slide {
268
+ min-height: 300px;
269
+ }
270
+ *+html .blueimp-gallery > .slides > .slide > .slide-content {
271
+ position: relative;
272
+ }
273
+ *+html .blueimp-gallery > .slides > .slide > .video-content {
274
+ height: 100%;
275
+ }
276
+ *+html .blueimp-gallery > .slides > .slide > .video-content > a {
277
+ left: 50%;
278
+ margin-left: -64px;
279
+ }
280
+ *+html .blueimp-gallery > .indicator > li {
281
+ display: inline;
282
+ }
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blueimp-gallery-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian Tschan
8
+ - Mike Virata-Stone
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '3.0'
21
+ - - <
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '3.0'
31
+ - - <
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: sass-rails
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - - <
42
+ - !ruby/object:Gem::Version
43
+ version: '5.0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '3.0'
51
+ - - <
52
+ - !ruby/object:Gem::Version
53
+ version: '5.0'
54
+ description: This gem wraps the blueimp Gallery Bootstrap plugin as a Rails asset
55
+ gem. The plugin is by Sebastian Tschan, and the gem is packaged by Mike Virata-Stone
56
+ email:
57
+ - mail@blueimp.net
58
+ - mike@virata-stone.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - lib/blueimp-gallery-rails.rb
64
+ - lib/blueimp-gallery-rails/version.rb
65
+ - vendor/assets/images/error.png
66
+ - vendor/assets/images/error.svg
67
+ - vendor/assets/images/loading.gif
68
+ - vendor/assets/images/play-pause.png
69
+ - vendor/assets/images/play-pause.svg
70
+ - vendor/assets/images/video-play.png
71
+ - vendor/assets/images/video-play.svg
72
+ - vendor/assets/javascripts/blueimp-gallery.js
73
+ - vendor/assets/stylesheets/blueimp-gallery.css.scss
74
+ homepage: http://blueimp.github.io/Gallery/
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.0.3
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Rails asset gem for blueimp Gallery.
98
+ test_files: []