some adjustment. but mobile language menu still behaves crazy.

This commit is contained in:
antil0pa 2020-01-15 16:44:59 +01:00
parent b0ecff9170
commit 85a5661eb5
4 changed files with 17 additions and 10 deletions

View File

@ -110,32 +110,36 @@
/* Language menu*/
#language {
.language-selector {
position: fixed;
top: 0px;
right: 75px;
top: -10px;
right: 30px;
}
.language-selector .btn {
top: 35px;
font-size: 1.2rem;
padding: 19px 15px;
}
.language-selector .btn i {
position: absolute;
top: 35px;
top: 40px;
right: 20px;
}
.language-selector .dropdown-menu {
font-size: 1.1rem;
right: 150px;
top: 200px;
color: #b9a2ab;
background-color: #50162D;
border-color: #50162D;
font-size: 1.1rem;
}
.language-selector .dropdown-menu>li>a {
padding: 12px 15px;
}
}
@media (max-width: 600px) {

View File

@ -153,6 +153,9 @@ a:hover {
/* Menu Settings */
.main-nav {
}
.main-nav ul {
display: flex;
justify-content: space-between;
@ -261,8 +264,7 @@ a:hover {
color: #b9a2ab;
background-color: #50162D;
border-color: #50162D;
right: 0px;
left: auto;
top: 20px;
font-size: 1.1rem;
}

View File

@ -0,0 +1 @@
/var/www//themes/grav-theme-howto

View File

@ -23,10 +23,10 @@
{% endmacro %}
<a class="mobile-btn" href="#main-nav" title="Show navigation">Show navigation</a>
<a class="mobile-btn" href="#close" title="Hide navigation">Hide navigation</a>
{% include 'partials/language-selector.html.twig' %}
<ul id="nav">
{% if theme_config.dropdown.enabled %}
{{ _self.loop(pages) }}
{% include 'partials/language-selector.html.twig' %}
{% else %}
{% for page in pages.children.visible %}
{% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}