slimbox2-rails 2.04.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +22 -0
- data/README.md +67 -0
- data/lib/slimbox2/rails.rb +8 -0
- data/lib/slimbox2/rails/version.rb +5 -0
- data/vendor/images/closelabel.gif +0 -0
- data/vendor/images/loading.gif +0 -0
- data/vendor/images/nextlabel.gif +0 -0
- data/vendor/images/prevlabel.gif +0 -0
- data/vendor/javascripts/extra/android-market.js +22 -0
- data/vendor/javascripts/extra/autoactivation.js +20 -0
- data/vendor/javascripts/extra/fix-urls.js +21 -0
- data/vendor/javascripts/extra/flickr.js +19 -0
- data/vendor/javascripts/extra/picasaweb.js +19 -0
- data/vendor/javascripts/slimbox2.js +15 -0
- data/vendor/stylesheets/slimbox2-rtl.css +84 -0
- data/vendor/stylesheets/slimbox2.css.erb +83 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b92fca73f2ee10410001c881d8302097f0598452
|
4
|
+
data.tar.gz: 38e82552980499899d3d5ea4682f226ee8525f64
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4640d09b0d408769d691f1f13d9a7dba4dd6d93418d8995d66575cf79aba08927d59da950ef86d556ed9e4d5f65d2de77069aee4d31b66b81118b5d778331ce4
|
7
|
+
data.tar.gz: 1f69b1865ae0b8dfdcdb550ef17e91353175684c55337429be323c96d9c75a24074f14a3397fc98e4ce8b4e8d1c1ec6a04536606b1efdeb1a1147d4c48d31780
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Hyoseong Choi
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Slimbox2::Rails
|
2
|
+
|
3
|
+
Gemify Slimbox2 to use with Rails 3.1 asset pipeline.
|
4
|
+
|
5
|
+
If you want to see the more information about Slimbox2, click [here](http://www.digitalia.be/software/slimbox2).
|
6
|
+
|
7
|
+
## Versioning
|
8
|
+
|
9
|
+
slimbox2-rails v2.04.x was built with Slimbox v2.04
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
gem 'slimbox2-rails'
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install slimbox2-rails
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
To require Slimbox2 UI modules, add the following to your application.js:
|
28
|
+
|
29
|
+
```
|
30
|
+
//= require slimbox2
|
31
|
+
```
|
32
|
+
|
33
|
+
Also add the Superfish UI CSS to your application.css:
|
34
|
+
|
35
|
+
```
|
36
|
+
/*
|
37
|
+
*= require slimbox2
|
38
|
+
*/
|
39
|
+
```
|
40
|
+
|
41
|
+
### ACTIVATE ###
|
42
|
+
|
43
|
+
Add the rel="lightbox" attribute to the links pointing to your full-sized images. Use the optional title attribute if you want to show a caption:
|
44
|
+
|
45
|
+
```
|
46
|
+
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
|
47
|
+
```
|
48
|
+
|
49
|
+
You can even use HTML in the caption if you want. You must replace the < and > characters with HTML entities and use single quotes instead of double quotes.
|
50
|
+
|
51
|
+
For sets of related images that you want to group and make navigable, add a group name to the rel attribute just after the “lightbox” word, for example:
|
52
|
+
|
53
|
+
```
|
54
|
+
<a href="images/image-1.jpg" rel="lightbox-cats">image #1</a>
|
55
|
+
<a href="images/image-2.jpg" rel="lightbox-cats">image #2</a>
|
56
|
+
<a href="images/image-3.jpg" rel="lightbox-cats">image #3</a>
|
57
|
+
```
|
58
|
+
|
59
|
+
I don’t recommend using square brackets “[ ]” around group names in the rel attribute like the original Lightbox script does because these characters are invalid for XHTML and XML attributes, meaning that your web page would not validate against the latest standards.
|
60
|
+
|
61
|
+
## Contributing
|
62
|
+
|
63
|
+
1. Fork it
|
64
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
65
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
66
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
67
|
+
5. Create new Pull Request
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/*
|
2
|
+
This code automatically integrates Android Market URLs with Slimbox using QR code generation.
|
3
|
+
It will scan for all Android market links. These links have URLs starting with "market://".
|
4
|
+
Note that you don't need to add rel="lightbox" to these links.
|
5
|
+
On an Android phone's browser, clicking on Android Market links will open the Android Market.
|
6
|
+
Desktop browsers are normally unable to open these links.
|
7
|
+
But thanks to this script, clicking on them will open Slimbox and display a barcode (QR Code)
|
8
|
+
that you can scan with your Android phone using your favorite barcode scanner application.
|
9
|
+
Scanning the barcode will open the Android Market on the phone.
|
10
|
+
The title attribute of the link will be used as description text.
|
11
|
+
|
12
|
+
Add the following code to the autoload code block.
|
13
|
+
*/
|
14
|
+
|
15
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
16
|
+
jQuery(function($) {
|
17
|
+
$("a[href^='market://']").slimbox({}, function(el) {
|
18
|
+
return ["http://chart.apis.google.com/chart?chs=400x400&cht=qr&chl=" + encodeURIComponent(el.href.replace(/\/\?/, "?")),
|
19
|
+
el.title + "<br />Scan this barcode with your Android phone."];
|
20
|
+
});
|
21
|
+
});
|
22
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*
|
2
|
+
With the following code, Slimbox will activate itself automatically on all links pointing to images,
|
3
|
+
or more specifically all links having URLs ending with: ".jpg" or ".png" or ".gif".
|
4
|
+
As a result, you will not need to set the rel="lightbox" attribute on any link to activate Slimbox.
|
5
|
+
Furthermore, all image links contained in the same block or paragraph (having the same parent element)
|
6
|
+
will automatically be grouped together in a gallery, so you will not need to specify groups either.
|
7
|
+
Images that are alone in their block or paragraph will be displayed individually.
|
8
|
+
|
9
|
+
Replace the default autoload code block with this one.
|
10
|
+
*/
|
11
|
+
|
12
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
13
|
+
jQuery(function($) {
|
14
|
+
$("a[href]").filter(function() {
|
15
|
+
return /\.(jpg|png|gif)$/i.test(this.href);
|
16
|
+
}).slimbox({}, null, function(el) {
|
17
|
+
return (this == el) || (this.parentNode && (this.parentNode == el.parentNode));
|
18
|
+
});
|
19
|
+
});
|
20
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
The following code is identical to the default autoload code block,
|
3
|
+
excepted that it will automatically fix URLs containing invalid characters.
|
4
|
+
Some people use invalid characters like whitespaces, parenthesis or quotes in their image URLs.
|
5
|
+
Slimbox does not work correctly with these characters, as explained in the FAQ. It's NOT a bug.
|
6
|
+
The right solution is to fix the URLs by replacing these invalid characters
|
7
|
+
with URL-encoded entities, so that they respect the standards.
|
8
|
+
|
9
|
+
However if you are lazy and want the javascript to fix them for you before passing them to Slimbox,
|
10
|
+
then replace the default autoload code block with this one.
|
11
|
+
*/
|
12
|
+
|
13
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
14
|
+
jQuery(function($) {
|
15
|
+
$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, function(el) {
|
16
|
+
return [encodeURI(el.href), el.title];
|
17
|
+
}, function(el) {
|
18
|
+
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
This code automatically integrates Flickr thumbnails with Slimbox.
|
3
|
+
It will scan for all links around thumbnail images pointing to Flickr photo PAGES.
|
4
|
+
Note that you don't need to add rel="lightbox" to these links.
|
5
|
+
When clicking on a Flickr thumbnail, Slimbox will open and display the medium-sized image.
|
6
|
+
The title attribute of the link (or the alt attribute of the thumbnail if not available) will be used
|
7
|
+
as description text, and a link to the Flickr photo page will be added under the description.
|
8
|
+
|
9
|
+
Add the following code to the autoload code block.
|
10
|
+
*/
|
11
|
+
|
12
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
13
|
+
jQuery(function($) {
|
14
|
+
$("a[href^='http://www.flickr.com/photos/'] > img:first-child[src]").parent().slimbox({}, function(el) {
|
15
|
+
return [el.firstChild.src.replace(/_[mts]\.(\w+)$/, ".$1"),
|
16
|
+
(el.title || el.firstChild.alt) + '<br /><a href="' + el.href + '">Flickr page</a>'];
|
17
|
+
});
|
18
|
+
});
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
This code automatically integrates Picasa Web Albums thumbnails with Slimbox.
|
3
|
+
It will scan for all links around thumbnail images pointing to Picasa Web Albums photo PAGES.
|
4
|
+
Note that you don't need to add rel="lightbox" to these links.
|
5
|
+
When clicking on a Picasa Web Albums thumbnail, Slimbox will open and display the medium-sized image.
|
6
|
+
The title attribute of the link (or the alt attribute of the thumbnail if not available) will be used
|
7
|
+
as description text, and a link to the Picasa Web Albums photo page will be added under the description.
|
8
|
+
|
9
|
+
Add the following code to the autoload code block.
|
10
|
+
*/
|
11
|
+
|
12
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
13
|
+
jQuery(function($) {
|
14
|
+
$("a[href^='http://picasaweb.google.'] > img:first-child[src]").parent().slimbox({}, function(el) {
|
15
|
+
return [el.firstChild.src.replace(/\/s\d+(?:\-c)?\/([^\/]+)$/, "/s512/$1"),
|
16
|
+
(el.title || el.firstChild.alt) + '<br /><a href="' + el.href + '">Picasa Web Albums page</a>'];
|
17
|
+
});
|
18
|
+
});
|
19
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
Slimbox v2.04 - The ultimate lightweight Lightbox clone for jQuery
|
3
|
+
(c) 2007-2010 Christophe Beyls <http://www.digitalia.be>
|
4
|
+
MIT-style license.
|
5
|
+
*/
|
6
|
+
(function(w){var E=w(window),u,f,F=-1,n,x,D,v,y,L,r,m=!window.XMLHttpRequest,s=[],l=document.documentElement,k={},t=new Image(),J=new Image(),H,a,g,p,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('<div id="lbOverlay" />')[0],a=w('<div id="lbCenter" />')[0],G=w('<div id="lbBottomContainer" />')[0]]).css("display","none"));g=w('<div id="lbImage" />').appendTo(a).append(p=w('<div style="position: relative;" />').append([I=w('<a id="lbPrevLink" href="#" />').click(B)[0],d=w('<a id="lbNextLink" href="#" />').click(e)[0]])[0])[0];c=w('<div id="lbBottom" />').appendTo(G).append([w('<a id="lbCloseLink" href="#" />').add(H).click(C)[0],A=w('<div id="lbCaption" />')[0],K=w('<div id="lbNumber" />')[0],w('<div style="clear: both;" />')[0]])[0]});w.slimbox=function(O,N,M){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M);if(typeof O=="string"){O=[[O,N]];N=0}y=E.scrollTop()+(E.height()/2);L=u.initialWidth;r=u.initialHeight;w(a).css({top:Math.max(0,y-(r/2)),width:L,height:r,marginLeft:-L/2}).show();v=m||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute"}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();j(1);f=O;u.loop=u.loop&&(f.length>1);return b(N)};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V)});for(R=T.length;Q<R;++Q){if(T[Q]==S){U=Q}T[Q]=P(T[Q],Q)}return w.slimbox(T,U,M)})};function z(){var N=E.scrollLeft(),M=E.width();w([a,G]).css("left",N+(M/2));if(v){w(H).css({left:N,top:E.scrollTop(),width:M,height:E.height()})}}function j(M){if(M){w("object").add(m?"select":"embed").each(function(O,P){s[O]=[P,P.style.visibility];P.style.visibility="hidden"})}else{w.each(s,function(O,P){P[0].style.visibility=P[1]});s=[]}var N=M?"bind":"unbind";E[N]("scroll resize",z);w(document)[N]("keydown",o)}function o(O){var N=O.keyCode,M=w.inArray;return(M(N,u.closeKeys)>=0)?C():(M(N,u.nextKeys)>=0)?e():(M(N,u.previousKeys)>=0)?B():false}function B(){return b(x)}function e(){return b(D)}function b(M){if(M>=0){F=M;n=f[F][0];x=(F||(u.loop?f.length:0))-1;D=((F+1)%f.length)||(u.loop?0:-1);q();a.className="lbLoading";k=new Image();k.onload=i;k.src=n}return false}function i(){a.className="";w(g).css({backgroundImage:"url("+n+")",visibility:"hidden",display:""});w(p).width(k.width);w([p,I,d]).height(k.height);w(A).html(f[F][1]||"");w(K).html((((f.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,f.length));if(x>=0){t.src=f[x][0]}if(D>=0){J.src=f[D][0]}L=g.offsetWidth;r=g.offsetHeight;var M=Math.max(0,y-(r/2));if(a.offsetHeight!=r){w(a).animate({height:r,top:M},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(G).css({width:L,top:M+r,marginLeft:-L/2,visibility:"hidden",display:""});w(g).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,h)})}function h(){if(x>=0){w(I).show()}if(D>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility=""}function q(){k.onload=null;k.src=t.src=J.src=n;w([a,g,c]).stop(true);w([I,d,g,G]).hide()}function C(){if(F>=0){q();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,j)}return false}})(jQuery);
|
7
|
+
|
8
|
+
// AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED)
|
9
|
+
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
|
10
|
+
jQuery(function($) {
|
11
|
+
$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
|
12
|
+
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
|
13
|
+
});
|
14
|
+
});
|
15
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
/* SLIMBOX */
|
2
|
+
|
3
|
+
#lbOverlay {
|
4
|
+
position: fixed;
|
5
|
+
z-index: 9999;
|
6
|
+
left: 0;
|
7
|
+
top: 0;
|
8
|
+
width: 100%;
|
9
|
+
height: 100%;
|
10
|
+
background-color: #000;
|
11
|
+
cursor: pointer;
|
12
|
+
}
|
13
|
+
|
14
|
+
#lbCenter, #lbBottomContainer {
|
15
|
+
position: absolute;
|
16
|
+
z-index: 9999;
|
17
|
+
overflow: hidden;
|
18
|
+
background-color: #fff;
|
19
|
+
}
|
20
|
+
|
21
|
+
.lbLoading {
|
22
|
+
background: #fff url(loading.gif) no-repeat center;
|
23
|
+
}
|
24
|
+
|
25
|
+
#lbImage {
|
26
|
+
position: absolute;
|
27
|
+
left: 0;
|
28
|
+
top: 0;
|
29
|
+
border: 10px solid #fff;
|
30
|
+
background-repeat: no-repeat;
|
31
|
+
}
|
32
|
+
|
33
|
+
#lbPrevLink, #lbNextLink {
|
34
|
+
display: block;
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
width: 50%;
|
38
|
+
outline: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
#lbPrevLink {
|
42
|
+
right: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
#lbPrevLink:hover {
|
46
|
+
background: transparent url(prevlabel.gif) no-repeat 100% 15%;
|
47
|
+
}
|
48
|
+
|
49
|
+
#lbNextLink {
|
50
|
+
left: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
#lbNextLink:hover {
|
54
|
+
background: transparent url(nextlabel.gif) no-repeat 0 15%;
|
55
|
+
}
|
56
|
+
|
57
|
+
#lbBottom {
|
58
|
+
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
|
59
|
+
font-size: 10px;
|
60
|
+
color: #666;
|
61
|
+
line-height: 1.4em;
|
62
|
+
text-align: right;
|
63
|
+
border: 10px solid #fff;
|
64
|
+
border-top-style: none;
|
65
|
+
direction: rtl;
|
66
|
+
}
|
67
|
+
|
68
|
+
#lbCloseLink {
|
69
|
+
display: block;
|
70
|
+
float: left;
|
71
|
+
width: 66px;
|
72
|
+
height: 22px;
|
73
|
+
background: transparent url(closelabel.gif) no-repeat center;
|
74
|
+
margin: 5px 0;
|
75
|
+
outline: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
#lbCaption, #lbNumber {
|
79
|
+
margin-left: 71px;
|
80
|
+
}
|
81
|
+
|
82
|
+
#lbCaption {
|
83
|
+
font-weight: bold;
|
84
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/* SLIMBOX */
|
2
|
+
|
3
|
+
#lbOverlay {
|
4
|
+
position: fixed;
|
5
|
+
z-index: 9999;
|
6
|
+
left: 0;
|
7
|
+
top: 0;
|
8
|
+
width: 100%;
|
9
|
+
height: 100%;
|
10
|
+
background-color: #000;
|
11
|
+
cursor: pointer;
|
12
|
+
}
|
13
|
+
|
14
|
+
#lbCenter, #lbBottomContainer {
|
15
|
+
position: absolute;
|
16
|
+
z-index: 9999;
|
17
|
+
overflow: hidden;
|
18
|
+
background-color: #fff;
|
19
|
+
}
|
20
|
+
|
21
|
+
.lbLoading {
|
22
|
+
background: #fff url(<%= image_path(loading.gif) %>) no-repeat center;
|
23
|
+
}
|
24
|
+
|
25
|
+
#lbImage {
|
26
|
+
position: absolute;
|
27
|
+
left: 0;
|
28
|
+
top: 0;
|
29
|
+
border: 10px solid #fff;
|
30
|
+
background-repeat: no-repeat;
|
31
|
+
}
|
32
|
+
|
33
|
+
#lbPrevLink, #lbNextLink {
|
34
|
+
display: block;
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
width: 50%;
|
38
|
+
outline: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
#lbPrevLink {
|
42
|
+
left: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
#lbPrevLink:hover {
|
46
|
+
background: transparent url(<%= image_path(prevlabel.gif) %>) no-repeat 0 15%;
|
47
|
+
}
|
48
|
+
|
49
|
+
#lbNextLink {
|
50
|
+
right: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
#lbNextLink:hover {
|
54
|
+
background: transparent url(<%= image_path(nextlabel.gif) %>) no-repeat 100% 15%;
|
55
|
+
}
|
56
|
+
|
57
|
+
#lbBottom {
|
58
|
+
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
|
59
|
+
font-size: 10px;
|
60
|
+
color: #666;
|
61
|
+
line-height: 1.4em;
|
62
|
+
text-align: left;
|
63
|
+
border: 10px solid #fff;
|
64
|
+
border-top-style: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
#lbCloseLink {
|
68
|
+
display: block;
|
69
|
+
float: right;
|
70
|
+
width: 66px;
|
71
|
+
height: 22px;
|
72
|
+
background: transparent url(<%= image_path(closelabel.gif) %>) no-repeat center;
|
73
|
+
margin: 5px 0;
|
74
|
+
outline: none;
|
75
|
+
}
|
76
|
+
|
77
|
+
#lbCaption, #lbNumber {
|
78
|
+
margin-right: 71px;
|
79
|
+
}
|
80
|
+
|
81
|
+
#lbCaption {
|
82
|
+
font-weight: bold;
|
83
|
+
}
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slimbox2-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.04.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hyoseong Choi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Gemify Slimbox2 to use with Rails 3.1 asset pipeline
|
42
|
+
email:
|
43
|
+
- rorlab@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/slimbox2/rails/version.rb
|
49
|
+
- lib/slimbox2/rails.rb
|
50
|
+
- vendor/images/closelabel.gif
|
51
|
+
- vendor/images/loading.gif
|
52
|
+
- vendor/images/nextlabel.gif
|
53
|
+
- vendor/images/prevlabel.gif
|
54
|
+
- vendor/javascripts/extra/android-market.js
|
55
|
+
- vendor/javascripts/extra/autoactivation.js
|
56
|
+
- vendor/javascripts/extra/fix-urls.js
|
57
|
+
- vendor/javascripts/extra/flickr.js
|
58
|
+
- vendor/javascripts/extra/picasaweb.js
|
59
|
+
- vendor/javascripts/slimbox2.js
|
60
|
+
- vendor/stylesheets/slimbox2-rtl.css
|
61
|
+
- vendor/stylesheets/slimbox2.css.erb
|
62
|
+
- MIT-LICENSE
|
63
|
+
- README.md
|
64
|
+
homepage: https://github.com/rorlab/slimbox2-rails
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.0.0
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: Gemify Slimbox2 to use with Rails 3.1 asset pipeline
|
88
|
+
test_files: []
|