fix: Move inline style to css file and set max-height.
All checks were successful
continuous-integration/drone/pr Build is passing

This prevents the logo from overlapping the menu icon when the font-size is increased for accessibility.
This commit is contained in:
muli 2024-12-08 18:01:10 +01:00
parent 3ed32fb91b
commit 49c6063f5f
4 changed files with 8 additions and 3 deletions

View File

@ -196,6 +196,11 @@ header {
grid-row: 1 / span 1;
}
.header__logo {
height: 7rem;
max-height: 112px;
}
.header__homelink {
display: inline-block;
position: relative;

View File

@ -4,7 +4,7 @@
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
{% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}" style="height: 7rem;">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}">
{%- endif %}
</a>
</div>

View File

@ -4,7 +4,7 @@
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
{% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}" style="height: 7rem;">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}">
{%- endif %}
</a>
</div>

View File

@ -4,7 +4,7 @@
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
{% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}" style="height: 7rem;">
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}">
{%- endif %}
</a>
</div>