tusur_header 0.1.1 → 0.1.2

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: a56182c2e121aeb9c5d143f26b51b2c153153d33
4
- data.tar.gz: 017ff5d3adefde0d16310e0a24691ba4716a334d
3
+ metadata.gz: 038b91da55ebc455bb593d3ecd4e6ae448533c5d
4
+ data.tar.gz: 980ff30d0d4fb034873ee8a3f288e16a1081bb8a
5
5
  SHA512:
6
- metadata.gz: 7c4b3c1deca9da2c12aedcdffa98ed0489a7365bf73ccd9b406f71721bb9ba7fcdde6d14e1387a4a9f3b0230a517f25649606c640e7643dc7b788436d122e153
7
- data.tar.gz: c1e575fe2ba3e757d067bf74f3e067654d122994a4d92bcc893cc50938ecab36426072eade6e9be74e068aade32beb141f383f96dae85137ca85c97e7a0be70c
6
+ metadata.gz: 051c296063ecab1c6c7d03e6c46f76a2e668cfc74b31701a8160d74bdf93f51ca9e103c80cd916f88db2c4b67210628d02a5029b4a12566a1b0f2a2849b07628
7
+ data.tar.gz: 1e8abb60b4b746da552b13b61bb8050eb58626e6e1328dc3f7d3e0e01b4faea83cfe7c67ec972c2c6fe5aa6cb0cb6eaaa1bfcd7a7c4941ef3ceda970dfa95af1
@@ -1,3 +1,3 @@
1
1
  module TusurHeader
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -36,15 +36,22 @@
36
36
  cloud.hide().html('') if cloud.is(':visible')
37
37
 
38
38
  $(window).scroll () ->
39
+ footer_height = $('#footer').height()
40
+ new_footer_height = footer_height + 40
41
+
39
42
  if $(window).scrollTop() > 0
40
43
  first_menu.css('border-bottom', 'solid 1px #ccc')
41
44
  site_menu_caret.show()
42
45
  site_menu_toggle.removeClass('disabled')
43
46
 
47
+ $('#wrapper').css('margin-bottom', "0px")
48
+
44
49
  if $(window).scrollTop() == 0
45
50
  first_menu.css('border-bottom', 'none')
46
51
  site_menu_caret.hide()
47
52
  site_menu_toggle.click() if site_menu_toggle.parent().hasClass('open')
48
53
  site_menu_toggle.addClass('disabled')
49
54
 
55
+ $('#wrapper').css('margin-bottom', "-#{new_footer_height}px")
56
+
50
57
  true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tusur_header
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Lapin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler