fix flag sizing

This commit is contained in:
Yannik Schmidt
2021-06-15 14:24:10 +02:00
parent d511342acd
commit 6afffdd057
2 changed files with 22 additions and 8 deletions

View File

@@ -7,10 +7,21 @@ body {
overflow-x: hidden; overflow-x: hidden;
} }
.flag{
height: 40px;
width: 70px;
background-repeat: round !important;
margin-left: 20px;
padding: 0 !important;
}
@media (max-width: 767px) { @media (max-width: 767px) {
body { body {
font-size: 25px; font-size: 25px;
} }
.flag{
margin-left: unset;
}
} }
@media (max-width: 500px) { @media (max-width: 500px) {
@@ -19,12 +30,6 @@ body {
} }
} }
.flag{
max-height: 100%;
max-width: 120%;
background-repeat: round !important;
}
.title-responsive{ .title-responsive{
font-size: 25px !important; font-size: 25px !important;
padding-left: 40px; padding-left: 40px;
@@ -115,6 +120,13 @@ body {
background: rgba(0,0,0,0.25) !important; background: rgba(0,0,0,0.25) !important;
} }
.force-fill{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.wrapper { .wrapper {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@@ -82,14 +82,16 @@
<li> <li>
<a class="nav-link flag" href="/" <a class="nav-link flag" href="/"
style="background-image: url('https://potaris.de/picture/lang/german-flag.png');"> style="background-image: url('https://potaris.de/picture/lang/german-flag.png');">
DE <div class="hover-to-75 force-fill">
</div>
</a> </a>
</li> </li>
{% elif conf["LANGUAGE"] == "de" %} {% elif conf["LANGUAGE"] == "de" %}
<li> <li>
<a class="nav-link flag" href="/en/" <a class="nav-link flag" href="/en/"
style="background-image: url('https://potaris.de/picture/lang/uk-flag.png');"> style="background-image: url('https://potaris.de/picture/lang/uk-flag.png');">
EN <div class="hover-to-75 foce-fill">
</div>
</a> </a>
</li> </li>
{% endif %} {% endif %}