From 58b679e7412bad37e7a0206dcb5d1beab77cbb79 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 3 Sep 2022 18:23:51 +0200 Subject: [proxy] visually improve the top bar of the web UI --- .../proxy/web_ui/templates/base.html.jinja | 44 ++++++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/src/hydrilla/proxy/web_ui/templates/base.html.jinja b/src/hydrilla/proxy/web_ui/templates/base.html.jinja index 0d74fc0..2febf2f 100644 --- a/src/hydrilla/proxy/web_ui/templates/base.html.jinja +++ b/src/hydrilla/proxy/web_ui/templates/base.html.jinja @@ -147,22 +147,37 @@ in a proprietary work, I am not going to enforce this in court. ul#nav { -moz-user-select: none; user-select: none; + display: flex; + justify-content: stretch; + white-space: nowrap; background-color: #e0e0e0; margin: 0; + padding: 0; border-bottom: 2px solid #444; } - ul#nav > li { + li.nav-entry, li.nav-separator { list-style-type: none; + } + + li.nav-entry { background-color: #70af70; font-size: 115%; - padding: 10px; - display: inline-block; cursor: pointer; - margin: 5px 0 0 0; + text-align: center; + flex: 1 1 0; } - ul#nav > li:hover { + li.nav-separator { + flex: 0 0 2px; + background-color: inherit; + } + + li.big-separator { + flex: 4 0 2px; + } + + li.nav-entry:hover { box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19); } @@ -173,8 +188,9 @@ in a proprietary work, I am not going to enforce this in court. cursor: default; } - ul#item_list > li > a:only-child { + ul#nav > li > :only-child { display: block; + padding: 10px; } {% endblock %} @@ -193,10 +209,22 @@ in a proprietary work, I am not going to enforce this in court. %} -- cgit v1.2.3