Fix fotek na pozadí na mobilu, #header je kekel!

This commit is contained in:
Jonas Havelka 2020-09-21 01:51:58 +02:00
parent 796e32db7f
commit a3ca33841e
2 changed files with 7 additions and 1 deletions

View file

@ -581,6 +581,10 @@ div.org-text {
/* malý tablet, mobil */
@media (max-width: 650px) {
.no-mobile{
display: none;
}
#hide-if-small.login-bar-flatpage {
display: none;
}

View file

@ -56,9 +56,11 @@
<div class='col-md-12'>
<a href='/'>
<div id="title" >M&M - korespondenční seminář a časopis MFF&nbspUK</div>
<div id="header" style="background-image: url('{{ fotka }}')">
<div id="header">
<div class="no-mobile" style="background-image: url('{{ fotka }}')">
{# TODO style=… není fancy řešení, ale u <img> se bojím, že mi to rozbije vzhled #}
{% sitetree_menu from "main_menu" include "trunk" template "logo.html" %}
</div>
<img class="logo-mobile" src="{% static 'images/logo-mobile.svg' %}" />
</div>
</a>