jumbo-jekyll-theme 1.7.22 → 1.7.23

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: b5993a1fc9ac19410759c984d549f60c0dcc8a5e
4
- data.tar.gz: 8425583c038a563bbc11b1aa1981f098df90bfe8
3
+ metadata.gz: da880342bd0e575932aa858d343106746cb79262
4
+ data.tar.gz: 3b6595a1dfc86cccaaba622e2c28f4ac31e7089f
5
5
  SHA512:
6
- metadata.gz: 0bd3b496b4a5fd1dacb3b71b70bbb2bcef929c7b7efcd6a8d0627b68678aacac90c7a6d3c2dc99bca563263627ee93d6a6e1d883857980fcd3152f4299dec63a
7
- data.tar.gz: 5bcb03b3c59e7f078bec3885057d2efdd5be80f0966c15731f37686a8883d7fa73a6bd04e42f7de710e3be55c2f7ab0d4f90a06b09b7fa92131f374f9c90b216
6
+ metadata.gz: ba3a00610269c8dd95ff9a223ad84589ddb5c624cc801c72539d3f1312db4f55cf14d3d1cf1b81cbc28bd16c236c19d1e1b7bd33e36c4fc79f68de6d8c4ad77b
7
+ data.tar.gz: e7f02b10548208292d410bd4466bf664d55cc7179e0ffb786c027fb4b7e5721975588c96ddc2c8c8248e088629cfab6674f1ff4819a901c7e761d2837f6545d4
data/_sass/core/nav.scss CHANGED
@@ -940,14 +940,16 @@ li#linaro-app-menu-item > ul:before {
940
940
  li.side-nav-button.sub-page a {
941
941
  padding-left: 40px;
942
942
  }
943
+ nav#main-navigation {
944
+ transition: all 300ms ease;
945
+ }
943
946
 
944
947
  nav#main-navigation.navbar-static {
945
948
  height: $navbar-height + 20;
946
949
  padding-bottom: 10px;
947
950
  padding-top: 10px;
948
-
949
- transition: all 200ms ease;
950
951
  }
952
+
951
953
  nav#main-navigation.navbar-fixed-top {
952
954
  height: $navbar-height;
953
955
  padding-top:0px;
@@ -11,6 +11,37 @@ $(document).mouseup(function(e)
11
11
 
12
12
  $(document).ready(function () {
13
13
 
14
+ // Sticky Nav for the universal/main navigation bars
15
+
16
+ if($("#universal-nav")){
17
+ var stickyOffset = $('#main-navigation').offset().top;
18
+ var universalNav = $('#universal-nav');
19
+ var wrapper = $('#wrapper');
20
+
21
+ $(window).scroll(function(){
22
+
23
+ var sticky = $('#main-navigation'),
24
+ scroll = $(window).scrollTop();
25
+
26
+ if (scroll >= stickyOffset)
27
+ {
28
+ sticky.removeClass('navbar-static');
29
+ wrapper.css('margin-top', $('#main-navigation').height() + universalNav.height());
30
+ universalNav.hide();
31
+ sticky.addClass('navbar-fixed-top');
32
+ }
33
+ else
34
+ {
35
+ sticky.removeClass('navbar-fixed-top');
36
+ wrapper.css('margin-top', '0px');
37
+ universalNav.slideDown("fast");
38
+ sticky.addClass('navbar-static');
39
+ }
40
+
41
+ });
42
+ }
43
+
44
+
14
45
  $('.dropdown-toggle').dropdown();
15
46
  var search_bar = $("div#search_bar");
16
47
  var search_icon = $("a#search_icon");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.22
4
+ version: 1.7.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby