Merge branch 'language-link' into 'master'
Add the Language link beside the main menu See merge request agaric/patternlibrary!6
This commit is contained in:
commit
e0ec34d416
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 {
|
a.navbar-link.is-active:focus::before {
|
||||||
display: none; } }
|
display: none; } }
|
||||||
|
|
||||||
|
a.language-link.navbar-item.is-active {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
@media screen and (min-width: 769px), print {
|
@media screen and (min-width: 769px), print {
|
||||||
.navbar-item.has-dropdown:hover .navbar-link,
|
.navbar-item.has-dropdown:hover .navbar-link,
|
||||||
.navbar-item.has-dropdown:focus .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:hover .navbar-link,
|
||||||
.navbar-item.has-dropdown:focus .navbar-link,
|
.navbar-item.has-dropdown:focus .navbar-link,
|
||||||
.navbar-item.has-dropdown.is-active .navbar-link {
|
.navbar-item.has-dropdown.is-active .navbar-link {
|
||||||
|
|
|
@ -7,3 +7,7 @@
|
||||||
%}
|
%}
|
||||||
|
|
||||||
{% set attributes = attributes.addClass(classes) %}
|
{% 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