Skip to content

Commit a5721bf

Browse files
committed
Fixes to mobile version design header
1 parent 7aefdb3 commit a5721bf

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

src/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ body {
5555
}
5656

5757
.navbar-burger span {
58-
background-color: var(--navbar-font-color);
58+
background-color: white;
5959
height: 1.5px;
6060
width: 1rem;
6161
}

src/js/01-nav.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
;(function () {
22
'use strict'
33

4-
// if (document.querySelector('.sectionPurple')) {
5-
// console.log('sectionPurple exists')
6-
// document.querySelector('.nav-container').style.backgroundColor = 'white'
7-
// }
8-
94
var SECT_CLASS_RX = /^sect(\d)$/
105

116
var navContainer = document.querySelector('.nav-container')

src/js/05-mobile-navbar.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
;(function () {
22
'use strict'
3+
console.log('mobile navbar')
34

45
var navbarBurger = document.querySelector('.navbar-burger')
5-
// var sectionsNavbarBurger = document.querySelector('.sections-navbar-burger')
6-
7-
// if (!sectionsNavbarBurger) return
8-
// sectionsNavbarBurger.addEventListener('click', toggleNavbarMenu.bind(sectionsNavbarBurger))
9-
106
if (!navbarBurger) return
117
navbarBurger.addEventListener('click', toggleNavbarMenu.bind(navbarBurger))
128

@@ -22,4 +18,21 @@
2218
if (actualMaxHeight !== expectedMaxHeight) menu.style.maxHeight = expectedMaxHeight + 'px'
2319
}
2420
}
21+
22+
// window.addEventListener('resize', removePadding)
23+
// function removePadding () {
24+
// var sectionBody = document.querySelector('.sections-body')
25+
// if (sectionBody) {
26+
// console.log('section-body')
27+
// if (window.innerWidth < 800) {
28+
// console.log('below 600')
29+
// var body = document.querySelector('.sections-body')
30+
// body.style.paddingTop = ''
31+
// } else {
32+
// body.style.paddingTop = '3.5rem'
33+
// }
34+
// } else {
35+
// console.log('section-body not found')
36+
// }
37+
// }
2538
})()

src/partials/toolbar.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}"></a>
55
{{/with}}
66
{{> breadcrumbs}}
7+
<span class="sections-docu-title">
8+
{{site.title}}
9+
</span>
710
{{> page-versions}}
811
{{#if (and page.fileUri (not env.CI))}}
912
<div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>

0 commit comments

Comments
 (0)