Skip to content
Snippets Groups Projects
Commit db235379 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

auto-close navbar menu when tapped on mobile

parent 14faac7d
Branches
No related tags found
2 merge requests!910Release,!908Auto-close navbar menu when tapped on mobile
Pipeline #16419 passed
...@@ -55,7 +55,13 @@ ...@@ -55,7 +55,13 @@
<a <a
href="{{ target }}" href="{{ target }}"
class="__js-root flex gap-1 items-center decoration-1 underline-offset-4 {% if selected_item == page.root_page.important_item_name %}navbar__menu-item--selected{% endif %}" class="
__js-root flex gap-1 items-center decoration-1 underline-offset-4
navbar__menu-item
{% if selected_item == page.root_page.important_item_name %}navbar__menu-item--selected{% endif %}
"
> >
<div class="mb-1"> <div class="mb-1">
{% if not is_transparent %} {% if not is_transparent %}
...@@ -84,6 +90,9 @@ ...@@ -84,6 +90,9 @@
href="{{ target }}" href="{{ target }}"
class=" class="
decoration-1 underline-offset-4 decoration-1 underline-offset-4
navbar__menu-item
{% if menu_item.value.title == selected_item %}navbar__menu-item--selected{% endif %} {% if menu_item.value.title == selected_item %}navbar__menu-item--selected{% endif %}
" "
>{{ menu_item.value.title }}</a> >{{ menu_item.value.title }}</a>
...@@ -167,7 +176,13 @@ ...@@ -167,7 +176,13 @@
{% if important_item %} {% if important_item %}
<a <a
href="#" href="#"
class="__js-root flex items-center decoration-1 underline-offset-4 {% if selected_item == important_item %}navbar__menu-item--selected{% endif %}" class="
__js-root flex items-center decoration-1 underline-offset-4
navbar__menu-item
{% if selected_item == important_item %}navbar__menu-item--selected{% endif %}
"
> >
{% if not is_transparent %} {% if not is_transparent %}
{% include 'styleguide2/includes/atoms/icons/arrow.html' with width='27' height='28.35' %} {% include 'styleguide2/includes/atoms/icons/arrow.html' with width='27' height='28.35' %}
...@@ -186,6 +201,9 @@ ...@@ -186,6 +201,9 @@
href="{{ target }}" href="{{ target }}"
class=" class="
decoration-1 underline-offset-4 decoration-1 underline-offset-4
navbar__menu-item
{% if menu_item.value.title == selected_item %}navbar__menu-item--selected{% endif %} {% if menu_item.value.title == selected_item %}navbar__menu-item--selected{% endif %}
" "
>{{ menu_item.value.title }}</a> >{{ menu_item.value.title }}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment