Compare commits

..

No commits in common. "d50ec0e709d2a98e61324e4cecc47d1fb2e3f45f" and "e33bf7b8c544e27c49f4c132aa95bf762c20d541" have entirely different histories.

4 changed files with 15 additions and 15 deletions

View file

@ -153,7 +153,7 @@ aside nav ol {
aside nav ol li a { aside nav ol li a {
display : block; display : block;
font-size : 2rem; font-size : 2rem;
margin : 0.5rem 0; padding : 0.5rem 0;
text-decoration : none; text-decoration : none;
} }
@ -161,11 +161,6 @@ aside nav ol li a:hover {
text-decoration : underline; text-decoration : underline;
} }
aside nav ol li a.active {
font-weight : bold;
}
aside #menu-toggle { aside #menu-toggle {
display : none; display : none;
font-size : 2em; font-size : 2em;
@ -196,7 +191,6 @@ aside header a img {
body { body {
flex-direction : column; flex-direction : column;
border : 0; border : 0;
line-height : 2rem;
} }
aside { aside {
@ -214,6 +208,11 @@ aside header a img {
margin : calc(var(--base-grid) / 2) var(--base-grid); margin : calc(var(--base-grid) / 2) var(--base-grid);
} }
aside header a {
width : 35%;
max-width : 35%;
}
aside nav { aside nav {
display : none; display : none;
} }

View file

@ -5,7 +5,6 @@
<aside> <aside>
<header> <header>
<a href="index.html"><img src="{{ printf "/static/img/logo_%s.svg" .Site.Language.Lang | absURL }}" alt="data coop logo" width="240" height="140"></a> <a href="index.html"><img src="{{ printf "/static/img/logo_%s.svg" .Site.Language.Lang | absURL }}" alt="data coop logo" width="240" height="140"></a>
<div class="nav-toggle" id="nav-toggle-header"> <div class="nav-toggle" id="nav-toggle-header">
<span id="nav-toggle-a"></span> <span id="nav-toggle-a"></span>
<span id="nav-toggle-b"></span> <span id="nav-toggle-b"></span>
@ -20,20 +19,20 @@
</article> </article>
</main> </main>
<script> <script>
var menu = document.getElementById("nav-toggle-header"); var menu = document.getElementById("nav-toggle-header")
var nav = document.getElementsByTagName('nav')[0]; var nav = document.getElementsByTagName('nav')[0]
function toggleMenu() { function toggleMenu() {
if ( menu.classList.contains("display") ) { if ( menu.classList.contains("display") ) {
menu.classList.remove("display"); menu.classList.remove("display")
nav.classList.remove("display"); nav.classList.remove("display")
} else { } else {
menu.classList.add("display"); menu.classList.add("display")
nav.classList.add("display"); nav.classList.add("display")
} }
} }
menu.addEventListener("click", toggleMenu); menu.addEventListener( "click", toggleMenu )
</script> </script>
</body> </body>
</html> </html>

View file

@ -3,4 +3,5 @@
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
{{ .Content }} {{ .Content }}
{{- end -}} {{- end -}}

View file

@ -14,3 +14,4 @@
</ol> </ol>
</footer> </footer>
</nav> </nav>