From 2242659f9b0d4781a72c8c04bc7a84a6a4d3adff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C=C3=AD=C5=BEkov=C3=A1?= Date: Wed, 29 Apr 2020 20:27:18 +0200 Subject: [PATCH] =?UTF-8?q?mobiln=C3=AD=20menu=20funguje=20na=20mobilu,=20?= =?UTF-8?q?graf=20se=20zmen=C5=A1uje=20se=20str=C3=A1nkou?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 20 +++++++++++++------- mamweb/templates/graph.svg | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 09b870f4..2a719264 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -242,6 +242,10 @@ nav.nav-button { display: none; } +div.dropdown-backdrop { /* tohle způsobuje, že funguje mobilní menu */ + z-index: -1; +} + h1 a:hover { text-decoration: none; } @@ -387,11 +391,16 @@ p.license-mobile { } div.graf{ + width: 70%; float: none; margin-left: auto; margin-right: auto; - width: 70%; + margin-top: 10px; } + #svg-graf{ + width: 100%; + height: auto;; + } ul.menu { font-size: 90%; @@ -575,12 +584,9 @@ ul.submenu { float: none; } - div.graf{ - float: none; - width: 70%; - margin-left: auto; - margin-right: auto; - } + div.graf { + width: 100%; + } } diff --git a/mamweb/templates/graph.svg b/mamweb/templates/graph.svg index 7f25678c..ed730edf 100644 --- a/mamweb/templates/graph.svg +++ b/mamweb/templates/graph.svg @@ -10,7 +10,7 @@ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" - id="svg2" + id="svg-graf" width="482.57019" height="599.45636" viewBox="0 0 482.57019 599.45636"