Browse Source

práce na menu v mobilní verzi

export_seznamu_prednasek
Kateřina Čížková 5 years ago
parent
commit
b86696f33c
  1. 17
      mamweb/static/css/mamweb.css
  2. 7
      mamweb/templates/base.html

17
mamweb/static/css/mamweb.css

@ -214,13 +214,6 @@ h1 a:hover {
text-decoration: none;
}
img.decor { /*todo bug při zmenšování okna */
position: relative;
top: 2px;
width: 100%;
filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.4));
}
/* nové menu */
ul.menu {
@ -441,17 +434,9 @@ ul.submenu {
display: none;
}
div.submenu_mobile {
display: none;
}
div.submenu_mobile active {
display: block;
}
nav.nav-button {
display: block;
position: sticky;
}
p.license-mobile {

7
mamweb/templates/base.html

@ -77,12 +77,11 @@
<nav class="nav-button">
<!-- Collapse button -->
<button class="navbar-toggler toggler-example" type="button" data-toggle="collapse" data-target="#navbarSupportedContent1"
aria-controls="navbarSupportedContent1" aria-expanded="false" aria-label="Toggle navigation"><span class="dark-blue-text"><i
class="fas fa-bars fa-1x"></i></span></button>
<button class="navbar-button" type="button" data-toggle="collapse" data-target="#navbar-content"
aria-controls="navbar-content" aria-expanded="false">Menu</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="navbarSupportedContent1">
<div class="collapse navbar-collapse" id="navbar-content">
<!-- Links -->
{% sitetree_menu from "main_menu" include "trunk" template "menu_mobile.html" %}

Loading…
Cancel
Save