From bcb7d8fb02eec968238b17ef75092c192b9afa6d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 29 Aug 2024 12:16:35 +0200 Subject: [PATCH] Add top bar for tools --- public/css/index-tailwind-output.css | 51 +++++++++++------ src/UI/ThemeViewGUI.svelte | 83 ++++++++++++++++------------ src/index.css | 4 ++ 3 files changed, 87 insertions(+), 51 deletions(-) diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index 94b9781aa..ab88a5b96 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -863,14 +863,14 @@ video { margin: 0.5rem; } -.m-1 { - margin: 0.25rem; -} - .m-0\.5 { margin: 0.125rem; } +.m-1 { + margin: 0.25rem; +} + .m-11 { margin: 2.75rem; } @@ -1009,10 +1009,6 @@ video { margin-bottom: 4rem; } -.mt-1 { - margin-top: 0.25rem; -} - .mr-0\.5 { margin-right: 0.125rem; } @@ -1025,6 +1021,10 @@ video { margin-right: 0.25rem; } +.mt-1 { + margin-top: 0.25rem; +} + .mb-4 { margin-bottom: 1rem; } @@ -3353,6 +3353,11 @@ video { padding-right: 0.25rem; } +.py-2 { + padding-top: 0.5rem; + padding-bottom: 0.5rem; +} + .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; @@ -3403,11 +3408,6 @@ video { padding-bottom: 0.75rem; } -.py-2 { - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - .py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; @@ -4818,6 +4818,10 @@ code { background-color: #00000088; } +.bg-black-light-transparent { + background-color: #00000044; +} + .block-ruby { display: block ruby; } @@ -7180,14 +7184,18 @@ svg.apply-fill path { margin-right: 0.5rem; } - .sm\:mt-2 { - margin-top: 0.5rem; - } - .sm\:mr-1 { margin-right: 0.25rem; } + .sm\:mt-0 { + margin-top: 0px; + } + + .sm\:mt-2 { + margin-top: 0.5rem; + } + .sm\:mb-0 { margin-bottom: 0px; } @@ -7236,6 +7244,10 @@ svg.apply-fill path { width: 50%; } + .sm\:w-64 { + width: 16rem; + } + .sm\:w-11 { width: 2.75rem; } @@ -7663,6 +7675,11 @@ svg.apply-fill path { .lg\:flex-row { flex-direction: row; } + + .lg\:py-4 { + padding-top: 1rem; + padding-bottom: 1rem; + } } @media (min-width: 1280px) { diff --git a/src/UI/ThemeViewGUI.svelte b/src/UI/ThemeViewGUI.svelte index 6f9514dce..b28d89f8c 100644 --- a/src/UI/ThemeViewGUI.svelte +++ b/src/UI/ThemeViewGUI.svelte @@ -46,7 +46,7 @@ import SelectedElementPanel from "./Base/SelectedElementPanel.svelte" import MenuDrawer from "./BigComponents/MenuDrawer.svelte" import DrawerLeft from "./Base/DrawerLeft.svelte" - + import { ariaLabel, ariaLabelStore } from "../Utils/ariaLabel" export let state: ThemeViewState let layout = state.layout let maplibremap: UIEventSource = state.map @@ -146,7 +146,6 @@ let debug = state.featureSwitches.featureSwitchIsDebugging - debug.addCallbackAndRun((dbg) => { if (dbg) { document.body.classList.add("debug") @@ -167,7 +166,6 @@ animation?.cameraAnimation(mlmap) } -
@@ -190,28 +188,18 @@
-
- - {#if $selectedElement === undefined} -
- -
- {/if} -
- - { - state.map?.data?.getCanvas()?.focus() - }} - perLayer={state.perLayer} - selectedElement={state.selectedElement} - geolocationState={state.geolocation.geolocationState} - /> - -
-
- +
+ +
+ + {console.log("Opening...."); state.guistate.menuIsOpened.setData(true)}} + on:keydown={forwardEventToMap} + > + + + state.guistate.pageStates.about_theme.set(true)} on:keydown={forwardEventToMap} @@ -225,14 +213,40 @@
+
+ + + +
+ + { + state.map?.data?.getCanvas()?.focus() + }} + perLayer={state.perLayer} + selectedElement={state.selectedElement} + geolocationState={state.geolocation.geolocationState} + /> +
+
+ +
+ +
+ + {#if $selectedElement === undefined} +
+ +
+ {/if} +
+ +
+
+ + - {console.log("Opening...."); state.guistate.menuIsOpened.setData(true)}} - on:keydown={forwardEventToMap} - > - - {#if currentViewLayer?.tagRenderings && currentViewLayer.defaultIcon()}