Browse Source

práce na menu

export_seznamu_prednasek
Kateřina Čížková 5 years ago
parent
commit
244a6658a3
  1. 15
      mamweb/static/css/mamweb.css
  2. 5
      mamweb/templates/menu_mobile.html

15
mamweb/static/css/mamweb.css

@ -301,6 +301,8 @@ div.zadani_azad_termin {
* Footer * Footer
**********/ **********/
/* nefunguje pro mobily */
#footer { #footer {
background: url("../images/mozaika-footer.svg") no-repeat top center; background: url("../images/mozaika-footer.svg") no-repeat top center;
height: 200px; height: 200px;
@ -322,9 +324,6 @@ p.license-mobile {
/********************** /**********************
* Zmenšování displeje * Zmenšování displeje
***********************/ ***********************/
@ -442,6 +441,14 @@ ul.submenu {
display: none; display: none;
} }
div.submenu_mobile {
display: none;
}
div.submenu_mobile active {
display: block;
}
nav.nav-button { nav.nav-button {
display: block; display: block;
@ -473,6 +480,8 @@ ul.submenu {
/*stránka organizátorů*/ /*stránka organizátorů*/
/*todo pro mobily*/
div.seznam_orgu { div.seznam_orgu {
} }

5
mamweb/templates/menu_mobile.html

@ -6,11 +6,12 @@
<li class="{% if item.has_children %}dropdown{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}"> <li class="{% if item.has_children %}dropdown{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}">
<a href="{% if item.has_children %}#{% else %}{% sitetree_url for item %}{% endif %}" {% if item.has_children %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}> <a href="{% if item.has_children %}#{% else %}{% sitetree_url for item %}{% endif %}" {% if item.has_children %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}>
{{ item.title_resolved }} {{ item.title_resolved }}
{% if item.has_children %}<b class="caret"></b>{% endif %}
</a> </a>
<div class="submenu_mobile {% if item.is_current or item.in_current_branch %}active{% endif %}">
{% if item.has_children %} {% if item.has_children %}
{% sitetree_children of item for menu template "sitetree/menu_bootstrap_dropdown.html" %} {% sitetree_children of item for menu template "menu_mobile_dropdown.html" %}
{% endif %} {% endif %}
</div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

Loading…
Cancel
Save