Compare commits
No commits in common. "d50ec0e709d2a98e61324e4cecc47d1fb2e3f45f" and "e33bf7b8c544e27c49f4c132aa95bf762c20d541" have entirely different histories.
d50ec0e709
...
e33bf7b8c5
|
@ -153,7 +153,7 @@ aside nav ol {
|
|||
aside nav ol li a {
|
||||
display : block;
|
||||
font-size : 2rem;
|
||||
margin : 0.5rem 0;
|
||||
padding : 0.5rem 0;
|
||||
text-decoration : none;
|
||||
}
|
||||
|
||||
|
@ -161,11 +161,6 @@ aside nav ol li a:hover {
|
|||
text-decoration : underline;
|
||||
}
|
||||
|
||||
aside nav ol li a.active {
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
|
||||
aside #menu-toggle {
|
||||
display : none;
|
||||
font-size : 2em;
|
||||
|
@ -196,7 +191,6 @@ aside header a img {
|
|||
body {
|
||||
flex-direction : column;
|
||||
border : 0;
|
||||
line-height : 2rem;
|
||||
}
|
||||
|
||||
aside {
|
||||
|
@ -214,6 +208,11 @@ aside header a img {
|
|||
margin : calc(var(--base-grid) / 2) var(--base-grid);
|
||||
}
|
||||
|
||||
aside header a {
|
||||
width : 35%;
|
||||
max-width : 35%;
|
||||
}
|
||||
|
||||
aside nav {
|
||||
display : none;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<aside>
|
||||
<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>
|
||||
|
||||
<div class="nav-toggle" id="nav-toggle-header">
|
||||
<span id="nav-toggle-a"></span>
|
||||
<span id="nav-toggle-b"></span>
|
||||
|
@ -20,20 +19,20 @@
|
|||
</article>
|
||||
</main>
|
||||
<script>
|
||||
var menu = document.getElementById("nav-toggle-header");
|
||||
var nav = document.getElementsByTagName('nav')[0];
|
||||
var menu = document.getElementById("nav-toggle-header")
|
||||
var nav = document.getElementsByTagName('nav')[0]
|
||||
|
||||
function toggleMenu() {
|
||||
if ( menu.classList.contains("display") ) {
|
||||
menu.classList.remove("display");
|
||||
nav.classList.remove("display");
|
||||
menu.classList.remove("display")
|
||||
nav.classList.remove("display")
|
||||
} else {
|
||||
menu.classList.add("display");
|
||||
nav.classList.add("display");
|
||||
menu.classList.add("display")
|
||||
nav.classList.add("display")
|
||||
}
|
||||
}
|
||||
|
||||
menu.addEventListener("click", toggleMenu);
|
||||
menu.addEventListener( "click", toggleMenu )
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ .Content }}
|
||||
|
||||
|
||||
{{- end -}}
|
||||
|
|
|
@ -14,3 +14,4 @@
|
|||
</ol>
|
||||
</footer>
|
||||
</nav>
|
||||
|
||||
|
|
Loading…
Reference in a new issue