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 +4 -4
- data/_sass/core/nav.scss +4 -2
- data/assets/js/app/main.js +31 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da880342bd0e575932aa858d343106746cb79262
|
4
|
+
data.tar.gz: 3b6595a1dfc86cccaaba622e2c28f4ac31e7089f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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;
|
data/assets/js/app/main.js
CHANGED
@@ -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");
|