lightbox2-rails 2.7.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +50 -25
- data/lib/lightbox2/rails/version.rb +1 -1
- data/vendor/assets/javascripts/lightbox.js +403 -361
- data/vendor/assets/stylesheets/{lightbox.css.erb → lightbox.scss} +206 -210
- metadata +4 -4
@@ -1,210 +1,206 @@
|
|
1
|
-
/* Preload images */
|
2
|
-
body:after {
|
3
|
-
content: url(
|
4
|
-
display: none;
|
5
|
-
}
|
6
|
-
|
7
|
-
.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
-
|
36
|
-
border-radius: 3px;
|
37
|
-
}
|
38
|
-
|
39
|
-
.lightbox a img {
|
40
|
-
border: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
.lb-outerContainer {
|
44
|
-
position: relative;
|
45
|
-
background-color: white;
|
46
|
-
*zoom: 1;
|
47
|
-
width: 250px;
|
48
|
-
height: 250px;
|
49
|
-
margin: 0 auto;
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
.lb-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
}
|
93
|
-
|
94
|
-
.lb-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
.
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
cursor: pointer;
|
208
|
-
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
209
|
-
opacity: 1;
|
210
|
-
}
|
1
|
+
/* Preload images */
|
2
|
+
body:after {
|
3
|
+
content: url(image_path('/close.png')) url(image_path('/loading.gif')) url(image_path('/prev.png')) url(image_path('/next.png'));
|
4
|
+
display: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
body.lb-disable-scrolling {
|
8
|
+
overflow: hidden;
|
9
|
+
}
|
10
|
+
|
11
|
+
.lightboxOverlay {
|
12
|
+
position: absolute;
|
13
|
+
top: 0;
|
14
|
+
left: 0;
|
15
|
+
z-index: 9999;
|
16
|
+
background-color: black;
|
17
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
|
18
|
+
opacity: 0.8;
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
|
22
|
+
.lightbox {
|
23
|
+
position: absolute;
|
24
|
+
left: 0;
|
25
|
+
width: 100%;
|
26
|
+
z-index: 10000;
|
27
|
+
text-align: center;
|
28
|
+
line-height: 0;
|
29
|
+
font-weight: normal;
|
30
|
+
}
|
31
|
+
|
32
|
+
.lightbox .lb-image {
|
33
|
+
display: block;
|
34
|
+
height: auto;
|
35
|
+
max-width: inherit;
|
36
|
+
border-radius: 3px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.lightbox a img {
|
40
|
+
border: none;
|
41
|
+
}
|
42
|
+
|
43
|
+
.lb-outerContainer {
|
44
|
+
position: relative;
|
45
|
+
background-color: white;
|
46
|
+
*zoom: 1;
|
47
|
+
width: 250px;
|
48
|
+
height: 250px;
|
49
|
+
margin: 0 auto;
|
50
|
+
border-radius: 4px;
|
51
|
+
}
|
52
|
+
|
53
|
+
.lb-outerContainer:after {
|
54
|
+
content: "";
|
55
|
+
display: table;
|
56
|
+
clear: both;
|
57
|
+
}
|
58
|
+
|
59
|
+
.lb-container {
|
60
|
+
padding: 4px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.lb-loader {
|
64
|
+
position: absolute;
|
65
|
+
top: 43%;
|
66
|
+
left: 0;
|
67
|
+
height: 25%;
|
68
|
+
width: 100%;
|
69
|
+
text-align: center;
|
70
|
+
line-height: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.lb-cancel {
|
74
|
+
display: block;
|
75
|
+
width: 32px;
|
76
|
+
height: 32px;
|
77
|
+
margin: 0 auto;
|
78
|
+
background: url(image_path('/loading.gif')) no-repeat;
|
79
|
+
}
|
80
|
+
|
81
|
+
.lb-nav {
|
82
|
+
position: absolute;
|
83
|
+
top: 0;
|
84
|
+
left: 0;
|
85
|
+
height: 100%;
|
86
|
+
width: 100%;
|
87
|
+
z-index: 10;
|
88
|
+
}
|
89
|
+
|
90
|
+
.lb-container > .nav {
|
91
|
+
left: 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
.lb-nav a {
|
95
|
+
outline: none;
|
96
|
+
background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
|
97
|
+
}
|
98
|
+
|
99
|
+
.lb-prev, .lb-next {
|
100
|
+
height: 100%;
|
101
|
+
cursor: pointer;
|
102
|
+
display: block;
|
103
|
+
}
|
104
|
+
|
105
|
+
.lb-nav a.lb-prev {
|
106
|
+
width: 34%;
|
107
|
+
left: 0;
|
108
|
+
float: left;
|
109
|
+
background: url(image_path('/prev.png')) left 48% no-repeat;
|
110
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
111
|
+
opacity: 0;
|
112
|
+
-webkit-transition: opacity 0.6s;
|
113
|
+
-moz-transition: opacity 0.6s;
|
114
|
+
-o-transition: opacity 0.6s;
|
115
|
+
transition: opacity 0.6s;
|
116
|
+
}
|
117
|
+
|
118
|
+
.lb-nav a.lb-prev:hover {
|
119
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
120
|
+
opacity: 1;
|
121
|
+
}
|
122
|
+
|
123
|
+
.lb-nav a.lb-next {
|
124
|
+
width: 64%;
|
125
|
+
right: 0;
|
126
|
+
float: right;
|
127
|
+
background: url(image_path('/next.png')) right 48% no-repeat;
|
128
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
129
|
+
opacity: 0;
|
130
|
+
-webkit-transition: opacity 0.6s;
|
131
|
+
-moz-transition: opacity 0.6s;
|
132
|
+
-o-transition: opacity 0.6s;
|
133
|
+
transition: opacity 0.6s;
|
134
|
+
}
|
135
|
+
|
136
|
+
.lb-nav a.lb-next:hover {
|
137
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
138
|
+
opacity: 1;
|
139
|
+
}
|
140
|
+
|
141
|
+
.lb-dataContainer {
|
142
|
+
margin: 0 auto;
|
143
|
+
padding-top: 5px;
|
144
|
+
*zoom: 1;
|
145
|
+
width: 100%;
|
146
|
+
-moz-border-radius-bottomleft: 4px;
|
147
|
+
-webkit-border-bottom-left-radius: 4px;
|
148
|
+
border-bottom-left-radius: 4px;
|
149
|
+
-moz-border-radius-bottomright: 4px;
|
150
|
+
-webkit-border-bottom-right-radius: 4px;
|
151
|
+
border-bottom-right-radius: 4px;
|
152
|
+
}
|
153
|
+
|
154
|
+
.lb-dataContainer:after {
|
155
|
+
content: "";
|
156
|
+
display: table;
|
157
|
+
clear: both;
|
158
|
+
}
|
159
|
+
|
160
|
+
.lb-data {
|
161
|
+
padding: 0 4px;
|
162
|
+
color: #ccc;
|
163
|
+
}
|
164
|
+
|
165
|
+
.lb-data .lb-details {
|
166
|
+
width: 85%;
|
167
|
+
float: left;
|
168
|
+
text-align: left;
|
169
|
+
line-height: 1.1em;
|
170
|
+
}
|
171
|
+
|
172
|
+
.lb-data .lb-caption {
|
173
|
+
font-size: 13px;
|
174
|
+
font-weight: bold;
|
175
|
+
line-height: 1em;
|
176
|
+
}
|
177
|
+
|
178
|
+
.lb-data .lb-number {
|
179
|
+
display: block;
|
180
|
+
clear: left;
|
181
|
+
padding-bottom: 1em;
|
182
|
+
font-size: 12px;
|
183
|
+
color: #999999;
|
184
|
+
}
|
185
|
+
|
186
|
+
.lb-data .lb-close {
|
187
|
+
display: block;
|
188
|
+
float: right;
|
189
|
+
width: 30px;
|
190
|
+
height: 30px;
|
191
|
+
background: url(image_path('/close.png')) top right no-repeat;
|
192
|
+
text-align: right;
|
193
|
+
outline: none;
|
194
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
|
195
|
+
opacity: 0.7;
|
196
|
+
-webkit-transition: opacity 0.2s;
|
197
|
+
-moz-transition: opacity 0.2s;
|
198
|
+
-o-transition: opacity 0.2s;
|
199
|
+
transition: opacity 0.2s;
|
200
|
+
}
|
201
|
+
|
202
|
+
.lb-data .lb-close:hover {
|
203
|
+
cursor: pointer;
|
204
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
205
|
+
opacity: 1;
|
206
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightbox2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Lam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
- vendor/assets/images/lightbox/next.png
|
43
43
|
- vendor/assets/images/lightbox/prev.png
|
44
44
|
- vendor/assets/javascripts/lightbox.js
|
45
|
-
- vendor/assets/stylesheets/lightbox.
|
45
|
+
- vendor/assets/stylesheets/lightbox.scss
|
46
46
|
homepage: https://github.com/gavinkflam/lightbox2-rails
|
47
47
|
licenses:
|
48
48
|
- MIT
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.6.1
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Lightbox2 for Rails asset pipeline
|