Add the Language link beside the main menu
This commit is contained in:
parent
9202c18351
commit
da982e3fdf
4 changed files with 16 additions and 0 deletions
|
@ -7637,6 +7637,9 @@ a.navbar-link.is-active {
|
|||
a.navbar-link.is-active:focus::before {
|
||||
display: none; } }
|
||||
|
||||
a.language-link.navbar-item.is-active {
|
||||
display: none; }
|
||||
|
||||
@media screen and (min-width: 769px), print {
|
||||
.navbar-item.has-dropdown:hover .navbar-link,
|
||||
.navbar-item.has-dropdown:focus .navbar-link,
|
||||
|
|
|
@ -227,6 +227,10 @@ a.navbar-link.is-active {
|
|||
}
|
||||
}
|
||||
|
||||
a.language-link.navbar-item.is-active {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.navbar-item.has-dropdown:hover .navbar-link,
|
||||
.navbar-item.has-dropdown:focus .navbar-link,
|
||||
.navbar-item.has-dropdown.is-active .navbar-link {
|
||||
|
|
|
@ -7,3 +7,7 @@
|
|||
%}
|
||||
|
||||
{% set attributes = attributes.addClass(classes) %}
|
||||
{% block content %}
|
||||
{{ language }}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
|
|
5
agaric/templates/block/links--language-block.html.twig
Normal file
5
agaric/templates/block/links--language-block.html.twig
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% if links -%}
|
||||
{%- for item in links -%}
|
||||
{{ item.link }}
|
||||
{%- endfor -%}
|
||||
{%- endif %}
|
Loading…
Reference in a new issue