Zvírazňování menu (pozadí)
|
@ -318,6 +318,10 @@ ul.submenu li>a:hover {
|
|||
color: black;
|
||||
}
|
||||
|
||||
ul.menu li.active>a, ul.submenu li.active>a {
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* konec nového menu */
|
||||
|
||||
div.novinky_name {
|
||||
|
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
@ -57,7 +57,7 @@
|
|||
<a href='/'>
|
||||
<div id="title" >M&M - korespondenční seminář a časopis MFF UK</div>
|
||||
<div id="header" class="{% if noc %}NOC{% endif %}{% block header %}{% endblock %}">
|
||||
<img class="logo" src="{% static 'images/logo.svg' %}" />
|
||||
{% sitetree_menu from "main_menu" include "trunk" template "logo.html" %}
|
||||
<img class="logo-mobile" src="{% static 'images/logo-mobile.svg' %}" />
|
||||
</div>
|
||||
</a>
|
||||
|
|
26
mamweb/templates/logo.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{% load staticfiles %}
|
||||
<img class="logo"
|
||||
{% for item in sitetree_items %}
|
||||
{% if item.is_active or item.in_current_branch %}
|
||||
{% if forloop.counter == 1 %}
|
||||
src="{% static 'images/logo_1.svg' %}"
|
||||
{% endif %}
|
||||
{% if forloop.counter == 2 %}
|
||||
src="{% static 'images/logo_2.svg' %}"
|
||||
{% endif %}
|
||||
{% if forloop.counter == 3 %}
|
||||
src="{% static 'images/logo_3.svg' %}"
|
||||
{% endif %}
|
||||
{% if forloop.counter == 4 %}
|
||||
src="{% static 'images/logo_4.svg' %}"
|
||||
{% endif %}
|
||||
{% if forloop.counter == 5 %}
|
||||
src="{% static 'images/logo_5.svg' %}"
|
||||
{% endif %}
|
||||
{% if forloop.counter == 6 %}
|
||||
src="{% static 'images/logo_6.svg' %}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
src="{% static 'images/logo.svg' %}"
|
||||
/>
|