avancées styles

This commit is contained in:
Valentin
2024-07-24 00:47:30 +02:00
parent 59016eb91a
commit 3382f9dc8f
4 changed files with 178 additions and 144 deletions

View File

@@ -36,21 +36,23 @@
#}
{% set heading_id = attributes.id ~ '-menu'|clean_id %}
<nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}>
{# Label. If not displayed, we still provide it for screen readers. #}
{% if not configuration.label_display %}
{% set title_attributes = title_attributes.addClass('visually-hidden') %}
{% endif %}
{{ title_prefix }}
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
<div id="hamburger">
<div></div>
<div></div>
<div></div>
</div>
{{ title_suffix }}
<div>
{# Label. If not displayed, we still provide it for screen readers. #}
{% if not configuration.label_display %}
{% set title_attributes = title_attributes.addClass('visually-hidden') %}
{% endif %}
{{ title_prefix }}
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
<div id="hamburger">
<div></div>
<div></div>
<div></div>
</div>
{{ title_suffix }}
{# Menu. #}
{% block content %}
{{ content }}
{% endblock %}
{# Menu. #}
{% block content %}
{{ content }}
{% endblock %}
</div>
</nav>