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:
mlncn 2019-01-15 18:15:01 +00:00
commit e0ec34d416
4 changed files with 16 additions and 0 deletions

View file

@ -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,

View file

@ -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 {

View file

@ -7,3 +7,7 @@
%} %}
{% set attributes = attributes.addClass(classes) %} {% set attributes = attributes.addClass(classes) %}
{% block content %}
{{ language }}
{{ content }}
{% endblock %}

View file

@ -0,0 +1,5 @@
{% if links -%}
{%- for item in links -%}
{{ item.link }}
{%- endfor -%}
{%- endif %}