Commit 09dc654e authored by Goutte's avatar Goutte

Force the menu to be the mobile menu.

This is a simple fix, but it does the job.
parent ad9dd409
...@@ -101,6 +101,37 @@ iframe.geogebra { ...@@ -101,6 +101,37 @@ iframe.geogebra {
/* margin: 0;*/ /* margin: 0;*/
/*}*/ /*}*/
/** Desktop header navigation *****************************************************************************************/
/*nav.dropmenu > ul > li > ul > li {*/
/* font-size: 0.8em;*/
/*}*/
/*nav.dropmenu > ul > li ul li a {*/
/* min-width: 11rem;*/
/*}*/
/*nav.dropmenu ul {*/
/* white-space: initial;*/
/*}*/
.mobile-menu {
display: block;
}
.mobile-menu details[open] > summary ~ * {
animation: sweep .5s ease-in-out;
}
@keyframes sweep {
0% {opacity: 0; margin-left: -10px}
100% {opacity: 1; margin-left: 0px}
}
/*.relative{position:relative!important}*/
/*#header {*/
/* padding-right: 4em;*/
/*}*/
/** Mobile navigation without javascript ******************************************************************************/ /** Mobile navigation without javascript ******************************************************************************/
/** We're using the checkbox hack. **/ /** We're using the checkbox hack. **/
...@@ -116,7 +147,7 @@ iframe.geogebra { ...@@ -116,7 +147,7 @@ iframe.geogebra {
cursor: pointer; cursor: pointer;
width: 42px; width: 42px;
height: 42px; height: 42px;
position: fixed; position: absolute;
right: 0.8em; right: 0.8em;
top: 0.8em; top: 0.8em;
z-index: 200; z-index: 200;
...@@ -124,6 +155,10 @@ iframe.geogebra { ...@@ -124,6 +155,10 @@ iframe.geogebra {
opacity: 0; opacity: 0;
} }
#mobile-navigation-toggle:checked {
position: fixed;
}
.mobile-menu .button_container:hover { opacity: .95; } .mobile-menu .button_container:hover { opacity: .95; }
#mobile-navigation-toggle:checked ~ .mobile-menu .button_container { position: fixed; } #mobile-navigation-toggle:checked ~ .mobile-menu .button_container { position: fixed; }
......
...@@ -47,19 +47,17 @@ ...@@ -47,19 +47,17 @@
{% include 'partials/logo.html.twig' %} {% include 'partials/logo.html.twig' %}
</section> </section>
<section class="navbar-section desktop-menu"> {# The old desktop menu, oh so buggy with big titles and going off-screen #}
{# <section class="navbar-section desktop-menu">#}
<nav class="dropmenu animated"> {# <nav class="dropmenu animated">#}
{% block header_navigation %} {# {% block header_navigation %}#}
{% include 'partials/navigation.html.twig' %} {# {% include 'partials/navigation.html.twig' %}#}
{% endblock %} {# {% endblock %}#}
</nav> {# </nav>#}
{# {% if config.plugins.login.enabled and grav.user.username %}#}
{% if config.plugins.login.enabled and grav.user.username %} {# <span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>#}
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span> {# {% endif %}#}
{% endif %} {# </section>#}
</section>
{% block header_language_selection_section %} {% block header_language_selection_section %}
<section class="navbar-section"> <section class="navbar-section">
......
Markdown is supported
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