Commit 82ef1421 authored by Hanna Schraffenberger's avatar Hanna Schraffenberger
Browse files

removing mobile menu

parent a1faf038
......@@ -12,21 +12,6 @@
<li class="nav-item {% if page.url == nav_item.link %}active{% endif %}"><a href="{{ nav_item.link }}">{{ nav_item.link_text }}</a></li>
{% endfor %}
</ul>
<a href="javascript:void(0);" class="hamburger" onclick="toggleMenu()">
<img src="/uploads/2019/07/30/menu.png" alt="">
</a>
</a>
</nav>
</header>
<script>
function toggleMenu() {
var x = document.getElementById("myTopnav");
if (x.className === "block-header-1--nav") {
x.className += " responsive";
} else {
x.className = "block-header-1--nav";
}
}
</script>
\ No newline at end of file
</header>
\ No newline at end of file
......@@ -93,40 +93,4 @@ header {
}
}
/* Make menu look good on small screens , based on: https://www.w3schools.com/howto/howto_js_topnav_responsive.asp*/
/* Hide the link that should open and close the topnav on small screens */
.block-header-1--nav .hamburger {
display: none;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.block-header-1--nav li:not(.hamburger) {
display: none
}
.block-header-1--nav a.hamburger {
float: right;
display: block
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.block-header-1--nav.responsive {
position: relative
}
.block-header-1--nav.responsive a.hamburger {
position: absolute;
right: 0;
top: 0
}
.block-header-1--nav.responsive li {
float: none;
display: block;
text-align: left;
}
}
/* Make menu look good on small screens , based on: https://www.w3schools.com/howto/howto_js_topnav_responsive.asp*/
/* Hide the link that should open and close the topnav on small screens */
.block-header-1--nav .hamburger {
display: none;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.block-header-1--nav li:not(.hamburger) {
display: none
}
.block-header-1--nav a.hamburger {
float: right;
display: block
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.block-header-1--nav.responsive {
position: relative
}
.block-header-1--nav.responsive a.hamburger {
position: absolute;
right: 0;
top: 0
}
.block-header-1--nav.responsive li {
float: none;
display: block;
text-align: left;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment