From 38e4475b9469c893822ac5c234502a443793dba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 27 Jul 2020 18:37:22 +0200 Subject: [PATCH] chg: Make a menu --- website/web/static/tree.css | 84 +++++--- website/web/templates/tree.html | 360 ++++++++++++++++++-------------- 2 files changed, 258 insertions(+), 186 deletions(-) diff --git a/website/web/static/tree.css b/website/web/static/tree.css index c2f602cd..bf9b3fb6 100644 --- a/website/web/static/tree.css +++ b/website/web/static/tree.css @@ -14,6 +14,48 @@ stroke-width: 2px; } +#menu_container { + position: fixed; + top: 5px; + left: 5px; + padding-top: 5px; + padding-right: 5px; + padding-bottom: 5px; + padding-left: 5px; +} + +#menu { + position: fixed; + top: 5px; + left: 5px; + background: white; + border: 2px solid; + padding-top: 5px; + padding-right: 5px; + padding-bottom: 5px; + padding-left: 5px; +} + +#menu_container .menu-header { + width: 200px; + height: 110px; + resize: both; +} + +#menu_container ul.components { + padding: 20px 0; +} + +#menu_container ul li a { + padding: 10px; + font-size: 1.1em; + display: block; +} + +#menu_container ul li a:hover { + background: #fff; +} + #screenshot { position: fixed; top: 5px; @@ -24,18 +66,6 @@ overflow: hidden; } -#lookyloo-icon { - position: fixed; - top: 5px; - left: 5px; - background-image: url("lookyloo.jpeg"); - background-size: cover; - width: 200px; - height: 110px; - resize: both; - border: 2px solid; -} - #legend_container { position: fixed; bottom: 5px; @@ -59,13 +89,13 @@ } #tree-details_container { - position: fixed; - bottom: 5px; - right: 5px; - padding-top: 5px; - padding-right: 5px; - padding-bottom: 5px; - padding-left: 5px; + position: fixed; + bottom: 5px; + right: 5px; + padding-top: 5px; + padding-right: 5px; + padding-bottom: 5px; + padding-left: 5px; } #tree-details { @@ -88,17 +118,17 @@ background: lightsteelblue; border: 0px; border-radius: 8px; - z-index: 1; - border: 2px solid; - padding-top: 5px; - padding-right: 5px; - padding-bottom: 5px; - padding-left: 5px; + z-index: 1; + border: 2px solid; + padding-top: 5px; + padding-right: 5px; + padding-bottom: 5px; + padding-left: 5px; } .tooltip text { - font: 15px sans-serif; - z-index: 2; + font: 15px sans-serif; + z-index: 2; } hr { diff --git a/website/web/templates/tree.html b/website/web/templates/tree.html index 1309851f..cbb138e5 100644 --- a/website/web/templates/tree.html +++ b/website/web/templates/tree.html @@ -10,18 +10,11 @@ - {% if urlnode_uuid %} @@ -50,6 +43,7 @@ {% block content %} {{super()}} +