dlegr250_material_design 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e40e75e41b358cb3f3983c12e8ea05f11176ee
4
- data.tar.gz: 622275fdc050e4acaea57dac9b8bb89703b62506
3
+ metadata.gz: 5188ae4c95e1eeeb8e390de63df735ea459cf2c3
4
+ data.tar.gz: 718a5c09ba0a07c4a4a6080841a314d21cc26cff
5
5
  SHA512:
6
- metadata.gz: 825091fd0b7576fe5d0775a41c921b6de7b2442b9e2abafcbeaa3c25d3c88f9a8209493577d842d806470fbb4b3a472be6d90c5d4de9eb4c67f2d21cf072d4eb
7
- data.tar.gz: 77665d5aea6577b7ed3dd18824959e1b0bf6702c102dc5f15f2c2072767777517cf14e2d7e2433744d819d9d3a81ae4cb49f9d0b8324f9ac6b2f5c4c4c43f31d
6
+ metadata.gz: 7d850a1f029eb596298bc49b30b9fbcdee44eca3bfa032ebf836fe91f086d5fdf2447a1bd2f687f94ce54e86e0db89b3e4abb0934bd2b8d392956b85a695b7ad
7
+ data.tar.gz: e6b7c4714acb9f0901aadbbaf7d40b749f5b0fa902db71fe3592bed9a5de9867b5a0dc5e2a8d2b367b5bf206e29a530bdec5d1fa5454f8b5d955f34412ccb56a
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -13,6 +13,11 @@ class App.MD.Layout
13
13
  @$rightSidebar = $("#right-sidebar")
14
14
  @$sidebars = $(".sidebar")
15
15
 
16
+ # Used for media query device breakpoints
17
+ @$smallWidth = 400
18
+ @$mediumWidth = 750
19
+ @$largeWidth = 1000
20
+
16
21
  @setEvents: () ->
17
22
  $(document).on "page:fetch", =>
18
23
  @.hideOverlay()
@@ -34,7 +39,8 @@ class App.MD.Layout
34
39
  if @$main.length > 0
35
40
  if @$leftSidebar.length > 0
36
41
  @$main.hammer({}).bind("swiperight", =>
37
- @.showLeftSidebar()
42
+ if $(window).width() <= @$mediumWidth
43
+ @.showLeftSidebar()
38
44
  )
39
45
 
40
46
  @$leftSidebar.hammer({}).bind("swipeleft", =>
@@ -43,7 +49,8 @@ class App.MD.Layout
43
49
 
44
50
  if @$rightSidebar.length > 0
45
51
  @$main.hammer({}).bind("swipeleft", =>
46
- @.showRightSidebar()
52
+ if $(window).width() <= @$mediumWidth
53
+ @.showRightSidebar()
47
54
  )
48
55
 
49
56
  @$rightSidebar.hammer({}).bind("swiperight", =>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand