File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ A horizontal navigation bar with links.
36
36
{%- endcomment -%}
37
37
{%- assign sorted-links = links | split: "|" | sort -%}
38
38
39
- <ul class =" nav-bar shadowed-box" >
39
+ <ul id =" nav-bar" class = " shadowed-box" >
40
40
{%- capture page-ref -%} <a href =" {{page .url }}" > {%- endcapture -%}
41
41
{%- for link in sorted-links -%}
42
42
{%- assign l = link -%} {%- comment -%} Loop vars are immutable! O_O {%- endcomment -%}
@@ -55,7 +55,7 @@ A horizontal navigation bar with links.
55
55
{%- comment -%}
56
56
Explicit list of nav-links given; use it as-is.
57
57
{%- endcomment -%}
58
- <ul class =" nav-bar shadowed-box" >
58
+ <ul id =" nav-bar" class = " shadowed-box" >
59
59
{% for p in pages %}
60
60
{%- if p .url == page .url -%}
61
61
<li >{{p .title | replace: " " , " " }}</li >
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ $leftColumnArrowOffset: $sidebarWidth - 2*$sidebarMargin - 2*$sidebarPadding - 3
461
461
462
462
/* Credit: https://stackoverflow.com/a/37053489/1207769 */
463
463
464
- ul . nav-bar {
464
+ # nav-bar {
465
465
text-align : center ;
466
466
padding : 0 ;
467
467
position : sticky ;
@@ -471,12 +471,12 @@ ul.nav-bar {
471
471
margin-right : $sidebarWidth - $sidebarPadding ;
472
472
}
473
473
474
- ul . nav-bar li {
474
+ # nav-bar li {
475
475
display : inline ;
476
476
padding-left : 0 ;
477
477
}
478
478
479
- ul . nav-bar li ::after {
479
+ # nav-bar li ::after {
480
480
content : " " ;
481
481
word-spacing : 1em ;
482
482
background-image : linear-gradient (
Original file line number Diff line number Diff line change 19
19
margin-top : 0 ;
20
20
margin-bottom : 1rem ;
21
21
position : static;
22
- height : auto;
22
+ height : auto;
23
+ }
24
+
25
+ # nav-bar {
26
+ display : none;
23
27
}
24
28
}
You can’t perform that action at this time.
0 commit comments