gallery 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,11 +40,6 @@ $.fn.extend
40
40
  @canvas.find('img').width 300
41
41
  @canvas.find('img').width 'auto'
42
42
 
43
- @canvas.keydown (e) =>
44
- switch e.which
45
- when 37 then @previous()
46
- when 39 then @next()
47
- e.preventDefault()
48
43
  # load more on scroll
49
44
  @canvas.scroll () =>
50
45
  scrollLeft = @canvas.scrollLeft()
@@ -151,6 +146,7 @@ $.fn.extend
151
146
  @canvas.find('img').width 300
152
147
  @canvas.find('img').width 'auto'
153
148
 
149
+ $('body').off "keydown.gallery_fullscreen"
154
150
  else
155
151
 
156
152
  # save height
@@ -166,6 +162,11 @@ $.fn.extend
166
162
 
167
163
 
168
164
  @gallery.height "100%"
165
+ $('body').on "keydown.gallery_fullscreen", (e) =>
166
+ switch e.which
167
+ when 37 then @previous(e)
168
+ when 39 then @next(e)
169
+ e.preventDefault()
169
170
 
170
171
  # convert all the images to their big-src
171
172
  images = @canvas.find('img.loaded')
@@ -54,7 +54,8 @@
54
54
  right: 10px;
55
55
  border-radius: 5px;
56
56
  background-color: rgba(255,255,255,0.5);
57
-
57
+ box-shadow: 1px 1px 12px 3px;
58
+
58
59
  &:hover {
59
60
  @include transform(scale(1.2));
60
61
  cursor: pointer;
@@ -167,7 +168,7 @@
167
168
  img {
168
169
  @include transition(all 1s ease-in-out);
169
170
  display: inline-block;
170
- height: 92.5%;
171
+ height: 95%;
171
172
  margin-top: 0.675%;
172
173
 
173
174
  max-width: 1000000px;
@@ -190,4 +191,8 @@
190
191
  top: 0px;
191
192
  left: 0px;
192
193
  z-index: 10;
194
+ }
195
+
196
+ .gallery-album-photos.fullscreen .gallery-album-photos-canvas img {
197
+ height: 98%;
193
198
  }
@@ -1,3 +1,3 @@
1
1
  module Gallery
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-13 00:00:00.000000000 Z
12
+ date: 2014-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails