jquery-colorbox-rails 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +34 -3
- data/Rakefile +45 -3
- data/lib/jquery-colorbox-rails/version.rb +1 -1
- data/vendor/assets/images/colorbox/example1/border.png +0 -0
- data/vendor/assets/images/colorbox/example1/controls.png +0 -0
- data/vendor/assets/images/colorbox/example1/loading.gif +0 -0
- data/vendor/assets/images/colorbox/example1/loading_background.png +0 -0
- data/vendor/assets/images/colorbox/example1/overlay.png +0 -0
- data/vendor/assets/images/colorbox/example2/controls.png +0 -0
- data/vendor/assets/images/colorbox/example2/loading.gif +0 -0
- data/vendor/assets/images/colorbox/example3/controls.png +0 -0
- data/vendor/assets/images/colorbox/example3/loading.gif +0 -0
- data/vendor/assets/images/colorbox/example4/border1.png +0 -0
- data/vendor/assets/images/colorbox/example4/border2.png +0 -0
- data/vendor/assets/images/colorbox/example4/loading.gif +0 -0
- data/vendor/assets/images/colorbox/example5/border.png +0 -0
- data/vendor/assets/images/colorbox/example5/controls.png +0 -0
- data/vendor/assets/images/colorbox/example5/loading.gif +0 -0
- data/vendor/assets/images/colorbox/example5/loading_background.png +0 -0
- data/vendor/assets/stylesheets/jquery.colorbox-example1.css.scss +69 -0
- data/vendor/assets/stylesheets/jquery.colorbox-example2.css.scss +49 -0
- data/vendor/assets/stylesheets/jquery.colorbox-example3.css.scss +44 -0
- data/vendor/assets/stylesheets/jquery.colorbox-example4.css.scss +65 -0
- data/vendor/assets/stylesheets/jquery.colorbox-example5.css.scss +57 -0
- metadata +23 -3
- data/vendor/assets/javascripts/jquery.colorbox-bg.js +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac3d590e81fee2b16954e356662c83ff49fa3a3f
|
4
|
+
data.tar.gz: 9df9989ff2fc1c27c1fe29b03d141edbb8b22dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a926300cbbd774be4a4a279c17c12f2f8072c3cd1d452eb36b71e931439aaa86c94b181d1cb6e7edfd29f84c003b3d3955892425519500a734a7d1389bc095e
|
7
|
+
data.tar.gz: 44f2bec9025b55ce5e4d43c4e2174046732f7312aa12d47d04cb832eacbbeaf3264a417b05863dfaa35c29f467bd458d62f5692a0b05d34f965cd64ccf38b4b5
|
data/README.md
CHANGED
@@ -1,4 +1,35 @@
|
|
1
|
-
jquery-colorbox-rails
|
2
|
-
=====================
|
1
|
+
# jquery-colorbox-rails
|
3
2
|
|
4
|
-
|
3
|
+
jquery-colorbox-rails integrates [jquery.colorbox](https://github.com/jackmoore/colorbox) with rails 3.1+ asset pipeline.
|
4
|
+
|
5
|
+
### Installation
|
6
|
+
|
7
|
+
Add
|
8
|
+
|
9
|
+
``` ruby
|
10
|
+
gem 'jquery-colorbox-rails'`
|
11
|
+
```
|
12
|
+
|
13
|
+
to your `Gemfile`
|
14
|
+
|
15
|
+
and
|
16
|
+
|
17
|
+
```javascript
|
18
|
+
//= require jquery.colorbox
|
19
|
+
```
|
20
|
+
|
21
|
+
to your `app/assets/javascripts/application.js` or other js manifest file.
|
22
|
+
|
23
|
+
For i18n integration (e.g. pl language) also add:
|
24
|
+
|
25
|
+
```javascript
|
26
|
+
//= require jquery.colorbox-pl
|
27
|
+
```
|
28
|
+
|
29
|
+
To use one of attached [css examples](http://www.jacklmoore.com/colorbox/example1/) add:
|
30
|
+
|
31
|
+
```css
|
32
|
+
*= require jquery.colorbox-example1
|
33
|
+
```
|
34
|
+
|
35
|
+
to your css manifest file. There are 5 examples availables (example1, example2...and so on).
|
data/Rakefile
CHANGED
@@ -3,13 +3,55 @@ require 'bundler/setup'
|
|
3
3
|
require 'bundler/gem_tasks'
|
4
4
|
|
5
5
|
task :update do
|
6
|
+
js_dir = 'vendor/assets/javascripts'
|
7
|
+
css_dir = 'vendor/assets/stylesheets'
|
8
|
+
img_dir = 'vendor/assets/images'
|
9
|
+
[js_dir, css_dir, img_dir].each do |dir|
|
10
|
+
FileUtils.rm_r(dir)
|
11
|
+
FileUtils.mkdir(dir)
|
12
|
+
end
|
13
|
+
|
6
14
|
puts 'Updating source files...'
|
7
15
|
`git submodule update`
|
8
16
|
|
9
|
-
puts 'Copying source files...'
|
17
|
+
puts 'Copying source js files...'
|
18
|
+
|
10
19
|
source_files = Dir['colorbox/**/*.js'].reject{ |file| file =~ /.min.js\Z/}
|
11
20
|
source_files.each do |file|
|
12
|
-
|
13
|
-
FileUtils.cp(file,
|
21
|
+
print "#{file.sub('colorbox/', '')}"
|
22
|
+
FileUtils.cp(file, js_dir)
|
23
|
+
puts "...ok"
|
14
24
|
end
|
25
|
+
|
26
|
+
puts 'Copying css examples files...'
|
27
|
+
|
28
|
+
Dir['colorbox/example*/'].each do |example|
|
29
|
+
example_name = File.basename(example)
|
30
|
+
print "#{example_name}..."
|
31
|
+
target_img_dir = File.join(img_dir, 'colorbox', example_name)
|
32
|
+
|
33
|
+
FileUtils.mkdir_p(target_img_dir)
|
34
|
+
|
35
|
+
FileUtils.cp Dir[File.join(example, 'images/*')], target_img_dir
|
36
|
+
|
37
|
+
css_content = File.read File.join(example, 'colorbox.css')
|
38
|
+
css_content.gsub!(/url\(\s?images\/([^\)]+)\)/) do |_|
|
39
|
+
"image-url('#{File.join('colorbox', example_name, $1)}')"
|
40
|
+
end
|
41
|
+
File.open(File.join(css_dir, "jquery.colorbox-#{example_name}.css.scss"), 'w') do |f|
|
42
|
+
f.write(css_content)
|
43
|
+
end
|
44
|
+
puts "...ok"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
task :build do
|
49
|
+
FileUtils.rm_f Dir['*.gem']
|
50
|
+
`gem build jquery-colorbox-rails.gemspec`
|
51
|
+
built_gem_file = Dir['*.gem'].first
|
52
|
+
if built_gem_file
|
53
|
+
`gem push #{built_gem_file}`
|
54
|
+
else
|
55
|
+
raise "Gem was not built!"
|
56
|
+
end
|
15
57
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,69 @@
|
|
1
|
+
/*
|
2
|
+
Colorbox Core Style:
|
3
|
+
The following CSS is consistent between example themes and should not be altered.
|
4
|
+
*/
|
5
|
+
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
6
|
+
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
7
|
+
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
8
|
+
#cboxContent{position:relative;}
|
9
|
+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
10
|
+
#cboxTitle{margin:0;}
|
11
|
+
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
12
|
+
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
13
|
+
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
14
|
+
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
15
|
+
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
16
|
+
|
17
|
+
/*
|
18
|
+
User Style:
|
19
|
+
Change the following styles to modify the appearance of Colorbox. They are
|
20
|
+
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
21
|
+
*/
|
22
|
+
#cboxOverlay{background:image-url('colorbox/example1/overlay.png') repeat 0 0;}
|
23
|
+
#colorbox{outline:0;}
|
24
|
+
#cboxTopLeft{width:21px; height:21px; background:image-url('colorbox/example1/controls.png') no-repeat -101px 0;}
|
25
|
+
#cboxTopRight{width:21px; height:21px; background:image-url('colorbox/example1/controls.png') no-repeat -130px 0;}
|
26
|
+
#cboxBottomLeft{width:21px; height:21px; background:image-url('colorbox/example1/controls.png') no-repeat -101px -29px;}
|
27
|
+
#cboxBottomRight{width:21px; height:21px; background:image-url('colorbox/example1/controls.png') no-repeat -130px -29px;}
|
28
|
+
#cboxMiddleLeft{width:21px; background:image-url('colorbox/example1/controls.png') left top repeat-y;}
|
29
|
+
#cboxMiddleRight{width:21px; background:image-url('colorbox/example1/controls.png') right top repeat-y;}
|
30
|
+
#cboxTopCenter{height:21px; background:image-url('colorbox/example1/border.png') 0 0 repeat-x;}
|
31
|
+
#cboxBottomCenter{height:21px; background:image-url('colorbox/example1/border.png') 0 -29px repeat-x;}
|
32
|
+
#cboxContent{background:#fff; overflow:hidden;}
|
33
|
+
.cboxIframe{background:#fff;}
|
34
|
+
#cboxError{padding:50px; border:1px solid #ccc;}
|
35
|
+
#cboxLoadedContent{margin-bottom:28px;}
|
36
|
+
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
|
37
|
+
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
|
38
|
+
#cboxLoadingOverlay{background:image-url('colorbox/example1/loading_background.png') no-repeat center center;}
|
39
|
+
#cboxLoadingGraphic{background:image-url('colorbox/example1/loading.gif') no-repeat center center;}
|
40
|
+
|
41
|
+
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
42
|
+
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
43
|
+
|
44
|
+
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
45
|
+
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
46
|
+
|
47
|
+
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
|
48
|
+
#cboxPrevious{position:absolute; bottom:0; left:0; background:image-url('colorbox/example1/controls.png') no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
|
49
|
+
#cboxPrevious:hover{background-position:-75px -25px;}
|
50
|
+
#cboxNext{position:absolute; bottom:0; left:27px; background:image-url('colorbox/example1/controls.png') no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
|
51
|
+
#cboxNext:hover{background-position:-50px -25px;}
|
52
|
+
#cboxClose{position:absolute; bottom:0; right:0; background:image-url('colorbox/example1/controls.png') no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
|
53
|
+
#cboxClose:hover{background-position:-25px -25px;}
|
54
|
+
|
55
|
+
/*
|
56
|
+
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
57
|
+
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
58
|
+
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
59
|
+
*/
|
60
|
+
.cboxIE #cboxTopLeft,
|
61
|
+
.cboxIE #cboxTopCenter,
|
62
|
+
.cboxIE #cboxTopRight,
|
63
|
+
.cboxIE #cboxBottomLeft,
|
64
|
+
.cboxIE #cboxBottomCenter,
|
65
|
+
.cboxIE #cboxBottomRight,
|
66
|
+
.cboxIE #cboxMiddleLeft,
|
67
|
+
.cboxIE #cboxMiddleRight {
|
68
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
69
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/*
|
2
|
+
Colorbox Core Style:
|
3
|
+
The following CSS is consistent between example themes and should not be altered.
|
4
|
+
*/
|
5
|
+
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
6
|
+
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
7
|
+
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
8
|
+
#cboxContent{position:relative;}
|
9
|
+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
10
|
+
#cboxTitle{margin:0;}
|
11
|
+
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
12
|
+
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
13
|
+
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
14
|
+
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
15
|
+
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
16
|
+
|
17
|
+
/*
|
18
|
+
User Style:
|
19
|
+
Change the following styles to modify the appearance of Colorbox. They are
|
20
|
+
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
21
|
+
*/
|
22
|
+
#cboxOverlay{background:#fff;}
|
23
|
+
#colorbox{outline:0;}
|
24
|
+
#cboxContent{margin-top:32px; overflow:visible; background:#000;}
|
25
|
+
.cboxIframe{background:#fff;}
|
26
|
+
#cboxError{padding:50px; border:1px solid #ccc;}
|
27
|
+
#cboxLoadedContent{background:#000; padding:1px;}
|
28
|
+
#cboxLoadingGraphic{background:image-url('colorbox/example2/loading.gif') no-repeat center center;}
|
29
|
+
#cboxLoadingOverlay{background:#000;}
|
30
|
+
#cboxTitle{position:absolute; top:-22px; left:0; color:#000;}
|
31
|
+
#cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
|
32
|
+
|
33
|
+
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
34
|
+
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:image-url('colorbox/example2/controls.png') no-repeat 0 0;}
|
35
|
+
|
36
|
+
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
37
|
+
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
38
|
+
|
39
|
+
#cboxPrevious{background-position:0px 0px; right:44px;}
|
40
|
+
#cboxPrevious:hover{background-position:0px -25px;}
|
41
|
+
#cboxNext{background-position:-25px 0px; right:22px;}
|
42
|
+
#cboxNext:hover{background-position:-25px -25px;}
|
43
|
+
#cboxClose{background-position:-50px 0px; right:0;}
|
44
|
+
#cboxClose:hover{background-position:-50px -25px;}
|
45
|
+
.cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
|
46
|
+
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
|
47
|
+
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
|
48
|
+
.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
|
49
|
+
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/*
|
2
|
+
Colorbox Core Style:
|
3
|
+
The following CSS is consistent between example themes and should not be altered.
|
4
|
+
*/
|
5
|
+
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
6
|
+
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
7
|
+
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
8
|
+
#cboxContent{position:relative;}
|
9
|
+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
10
|
+
#cboxTitle{margin:0;}
|
11
|
+
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
12
|
+
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
13
|
+
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
14
|
+
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
15
|
+
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
16
|
+
|
17
|
+
/*
|
18
|
+
User Style:
|
19
|
+
Change the following styles to modify the appearance of Colorbox. They are
|
20
|
+
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
21
|
+
*/
|
22
|
+
#cboxOverlay{background:#000;}
|
23
|
+
#colorbox{outline:0;}
|
24
|
+
#cboxContent{margin-top:20px;background:#000;}
|
25
|
+
.cboxIframe{background:#fff;}
|
26
|
+
#cboxError{padding:50px; border:1px solid #ccc;}
|
27
|
+
#cboxLoadedContent{border:5px solid #000; background:#fff;}
|
28
|
+
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
|
29
|
+
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
|
30
|
+
#cboxLoadingGraphic{background:image-url('colorbox/example3/loading.gif') no-repeat center center;}
|
31
|
+
|
32
|
+
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
33
|
+
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
34
|
+
|
35
|
+
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
36
|
+
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
37
|
+
|
38
|
+
#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
|
39
|
+
#cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:image-url('colorbox/example3/controls.png') no-repeat top left; width:28px; height:65px; text-indent:-9999px;}
|
40
|
+
#cboxPrevious:hover{background-position:bottom left;}
|
41
|
+
#cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:image-url('colorbox/example3/controls.png') no-repeat top right; width:28px; height:65px; text-indent:-9999px;}
|
42
|
+
#cboxNext:hover{background-position:bottom right;}
|
43
|
+
#cboxClose{position:absolute; top:5px; right:5px; display:block; background:image-url('colorbox/example3/controls.png') no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
|
44
|
+
#cboxClose:hover{background-position:bottom center;}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/*
|
2
|
+
Colorbox Core Style:
|
3
|
+
The following CSS is consistent between example themes and should not be altered.
|
4
|
+
*/
|
5
|
+
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
6
|
+
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
7
|
+
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
8
|
+
#cboxContent{position:relative;}
|
9
|
+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
10
|
+
#cboxTitle{margin:0;}
|
11
|
+
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
12
|
+
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
13
|
+
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
14
|
+
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
15
|
+
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
16
|
+
|
17
|
+
/*
|
18
|
+
User Style:
|
19
|
+
Change the following styles to modify the appearance of Colorbox. They are
|
20
|
+
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
21
|
+
*/
|
22
|
+
#cboxOverlay{background:#fff;}
|
23
|
+
#colorbox{outline:0;}
|
24
|
+
#cboxTopLeft{width:25px; height:25px; background:image-url('colorbox/example4/border1.png') no-repeat 0 0;}
|
25
|
+
#cboxTopCenter{height:25px; background:image-url('colorbox/example4/border1.png') repeat-x 0 -50px;}
|
26
|
+
#cboxTopRight{width:25px; height:25px; background:image-url('colorbox/example4/border1.png') no-repeat -25px 0;}
|
27
|
+
#cboxBottomLeft{width:25px; height:25px; background:image-url('colorbox/example4/border1.png') no-repeat 0 -25px;}
|
28
|
+
#cboxBottomCenter{height:25px; background:image-url('colorbox/example4/border1.png') repeat-x 0 -75px;}
|
29
|
+
#cboxBottomRight{width:25px; height:25px; background:image-url('colorbox/example4/border1.png') no-repeat -25px -25px;}
|
30
|
+
#cboxMiddleLeft{width:25px; background:image-url('colorbox/example4/border2.png') repeat-y 0 0;}
|
31
|
+
#cboxMiddleRight{width:25px; background:image-url('colorbox/example4/border2.png') repeat-y -25px 0;}
|
32
|
+
#cboxContent{background:#fff; overflow:hidden;}
|
33
|
+
.cboxIframe{background:#fff;}
|
34
|
+
#cboxError{padding:50px; border:1px solid #ccc;}
|
35
|
+
#cboxLoadedContent{margin-bottom:20px;}
|
36
|
+
#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;}
|
37
|
+
#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;}
|
38
|
+
#cboxLoadingOverlay{background:#fff image-url('colorbox/example4/loading.gif') no-repeat 5px 5px;}
|
39
|
+
|
40
|
+
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
41
|
+
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
|
42
|
+
|
43
|
+
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
44
|
+
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
45
|
+
|
46
|
+
#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
|
47
|
+
#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;}
|
48
|
+
#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
|
49
|
+
#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
|
50
|
+
|
51
|
+
/*
|
52
|
+
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
53
|
+
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
54
|
+
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
55
|
+
*/
|
56
|
+
.cboxIE #cboxTopLeft,
|
57
|
+
.cboxIE #cboxTopCenter,
|
58
|
+
.cboxIE #cboxTopRight,
|
59
|
+
.cboxIE #cboxBottomLeft,
|
60
|
+
.cboxIE #cboxBottomCenter,
|
61
|
+
.cboxIE #cboxBottomRight,
|
62
|
+
.cboxIE #cboxMiddleLeft,
|
63
|
+
.cboxIE #cboxMiddleRight {
|
64
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
65
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*
|
2
|
+
Colorbox Core Style:
|
3
|
+
The following CSS is consistent between example themes and should not be altered.
|
4
|
+
*/
|
5
|
+
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
6
|
+
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
7
|
+
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
8
|
+
#cboxContent{position:relative;}
|
9
|
+
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
|
10
|
+
#cboxTitle{margin:0;}
|
11
|
+
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
12
|
+
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
13
|
+
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
|
14
|
+
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
15
|
+
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
16
|
+
|
17
|
+
/*
|
18
|
+
User Style:
|
19
|
+
Change the following styles to modify the appearance of Colorbox. They are
|
20
|
+
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
21
|
+
*/
|
22
|
+
#cboxOverlay{background:#000;}
|
23
|
+
#colorbox{outline:0;}
|
24
|
+
#cboxTopLeft{width:14px; height:14px; background:image-url('colorbox/example5/controls.png') no-repeat 0 0;}
|
25
|
+
#cboxTopCenter{height:14px; background:image-url('colorbox/example5/border.png') repeat-x top left;}
|
26
|
+
#cboxTopRight{width:14px; height:14px; background:image-url('colorbox/example5/controls.png') no-repeat -36px 0;}
|
27
|
+
#cboxBottomLeft{width:14px; height:43px; background:image-url('colorbox/example5/controls.png') no-repeat 0 -32px;}
|
28
|
+
#cboxBottomCenter{height:43px; background:image-url('colorbox/example5/border.png') repeat-x bottom left;}
|
29
|
+
#cboxBottomRight{width:14px; height:43px; background:image-url('colorbox/example5/controls.png') no-repeat -36px -32px;}
|
30
|
+
#cboxMiddleLeft{width:14px; background:image-url('colorbox/example5/controls.png') repeat-y -175px 0;}
|
31
|
+
#cboxMiddleRight{width:14px; background:image-url('colorbox/example5/controls.png') repeat-y -211px 0;}
|
32
|
+
#cboxContent{background:#fff; overflow:visible;}
|
33
|
+
.cboxIframe{background:#fff;}
|
34
|
+
#cboxError{padding:50px; border:1px solid #ccc;}
|
35
|
+
#cboxLoadedContent{margin-bottom:5px;}
|
36
|
+
#cboxLoadingOverlay{background:image-url('colorbox/example5/loading_background.png') no-repeat center center;}
|
37
|
+
#cboxLoadingGraphic{background:image-url('colorbox/example5/loading.gif') no-repeat center center;}
|
38
|
+
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
|
39
|
+
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
|
40
|
+
|
41
|
+
/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
|
42
|
+
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; position:absolute; bottom:-29px; background:image-url('colorbox/example5/controls.png') no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
43
|
+
|
44
|
+
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
|
45
|
+
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
|
46
|
+
|
47
|
+
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
48
|
+
#cboxPrevious:hover{background-position:-51px 0px;}
|
49
|
+
#cboxNext{left:27px; background-position:-75px -25px;}
|
50
|
+
#cboxNext:hover{background-position:-75px 0px;}
|
51
|
+
#cboxClose{right:0; background-position:-100px -25px;}
|
52
|
+
#cboxClose:hover{background-position:-100px 0px;}
|
53
|
+
|
54
|
+
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
|
55
|
+
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
|
56
|
+
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
|
57
|
+
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-colorbox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -32,8 +32,23 @@ executables: []
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
+
- vendor/assets/images/colorbox/example1/border.png
|
36
|
+
- vendor/assets/images/colorbox/example1/controls.png
|
37
|
+
- vendor/assets/images/colorbox/example1/loading.gif
|
38
|
+
- vendor/assets/images/colorbox/example1/loading_background.png
|
39
|
+
- vendor/assets/images/colorbox/example1/overlay.png
|
40
|
+
- vendor/assets/images/colorbox/example2/controls.png
|
41
|
+
- vendor/assets/images/colorbox/example2/loading.gif
|
42
|
+
- vendor/assets/images/colorbox/example3/controls.png
|
43
|
+
- vendor/assets/images/colorbox/example3/loading.gif
|
44
|
+
- vendor/assets/images/colorbox/example4/border1.png
|
45
|
+
- vendor/assets/images/colorbox/example4/border2.png
|
46
|
+
- vendor/assets/images/colorbox/example4/loading.gif
|
47
|
+
- vendor/assets/images/colorbox/example5/border.png
|
48
|
+
- vendor/assets/images/colorbox/example5/controls.png
|
49
|
+
- vendor/assets/images/colorbox/example5/loading.gif
|
50
|
+
- vendor/assets/images/colorbox/example5/loading_background.png
|
35
51
|
- vendor/assets/javascripts/jquery.colorbox-ar.js
|
36
|
-
- vendor/assets/javascripts/jquery.colorbox-bg.js
|
37
52
|
- vendor/assets/javascripts/jquery.colorbox-cs.js
|
38
53
|
- vendor/assets/javascripts/jquery.colorbox-da.js
|
39
54
|
- vendor/assets/javascripts/jquery.colorbox-de.js
|
@@ -57,6 +72,11 @@ files:
|
|
57
72
|
- vendor/assets/javascripts/jquery.colorbox-tr.js
|
58
73
|
- vendor/assets/javascripts/jquery.colorbox-zh-CN.js
|
59
74
|
- vendor/assets/javascripts/jquery.colorbox.js
|
75
|
+
- vendor/assets/stylesheets/jquery.colorbox-example1.css.scss
|
76
|
+
- vendor/assets/stylesheets/jquery.colorbox-example2.css.scss
|
77
|
+
- vendor/assets/stylesheets/jquery.colorbox-example3.css.scss
|
78
|
+
- vendor/assets/stylesheets/jquery.colorbox-example4.css.scss
|
79
|
+
- vendor/assets/stylesheets/jquery.colorbox-example5.css.scss
|
60
80
|
- lib/jquery-colorbox-rails/engine.rb
|
61
81
|
- lib/jquery-colorbox-rails/version.rb
|
62
82
|
- lib/jquery-colorbox-rails.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
jQuery Colorbox language configuration
|
3
|
-
language: Bulgarian (bg)
|
4
|
-
translated by: Marian M.Bida
|
5
|
-
site: webmax.bg
|
6
|
-
*/
|
7
|
-
jQuery.extend(jQuery.colorbox.settings, {
|
8
|
-
current: "изображение {current} от {total}",
|
9
|
-
previous: "предишна",
|
10
|
-
next: "следваща",
|
11
|
-
close: "затвори",
|
12
|
-
xhrError: "Неуспешно зареждане на съдържанието.",
|
13
|
-
imgError: "Неуспешно зареждане на изображението.",
|
14
|
-
slideshowStart: "пусни слайд-шоу",
|
15
|
-
slideshowStop: "спри слайд-шоу"
|
16
|
-
});
|