forked from entrouvert/publik-base-theme
misc: use .sr-only to hide site_title when $header-logo-size is used (#69398)
This commit is contained in:
parent
92aa6b3ace
commit
6676d24b28
|
@ -24,6 +24,11 @@ $show-site-title: null !default;
|
|||
@mixin display-site-title($display) {
|
||||
@if $display == false {
|
||||
text-indent: -10000px;
|
||||
@if $header-logo-size {
|
||||
.site-title {
|
||||
@extend .sr-only;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -64,7 +69,7 @@ $show-site-title: null !default;
|
|||
$has-logo-site-title: if($show-site-title, true, false);
|
||||
@include display-site-title($has-logo-site-title);
|
||||
@if $has-logo-site-title {
|
||||
align-items: last baseline;
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,9 @@
|
|||
<h1 id="logo" class="{% if header_logo %}has-logo{% endif %}">
|
||||
<a title="Accueil - {% firstof global_title site_title "Compte Citoyen" %}" accesskey="1" href="{% firstof logo_link_url portal_url '/' %}">
|
||||
{% block header-title-content %}
|
||||
{% firstof global_title site_title "Compte Citoyen" %}
|
||||
<span class="site-title">
|
||||
{% firstof global_title site_title "Compte Citoyen" %}
|
||||
</span>
|
||||
{% endblock %}
|
||||
</a>
|
||||
</h1>
|
||||
|
|
Loading…
Reference in New Issue