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; 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 */ /* nové menu */
ul.menu { ul.menu {
@ -441,17 +434,9 @@ 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;
position: sticky;
} }
p.license-mobile { p.license-mobile {

7
mamweb/templates/base.html

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

Loading…
Cancel
Save