From 610d754456a7e4e7c702e60c8d3e0ecf6459d240 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 12 Jan 2024 16:24:22 +0100 Subject: Add a modal with information text. --- style.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'style.css') diff --git a/style.css b/style.css index 9d4383a..8eda3c6 100644 --- a/style.css +++ b/style.css @@ -16,6 +16,20 @@ html, body { --menu-spacing: .5em; --menu-spacing-interline: .25em; } +.modal { + --bs-modal-border-width: var(--menu-border-width); + --bs-border-radius-lg: var(--menu-border-radius); + --bs-modal-border-radius: var(--menu-border-radius); + --bs-modal-bg: var(--bs-body-bg); + --bs-modal-color: var(--bs-body-color); +} +#modal-info .modal-header { + border-bottom: none; + --bs-modal-header-border-width: 0; +} +.btn-close { + --bs-btn-close-focus-shadow: none; +} @media screen and (max-width: 500px) { html, body { --menu-factor-size: 1; @@ -29,6 +43,10 @@ html, body { bottom: 0; width: 100%; } +#modal-info.modal { + --link-dark-rgb: var(--bs-modal-color); + --bs-emphasis-color-rgb: var(--bs-modal-color); +} .form-check-input:focus:not(:focus-visible, :hover) { box-shadow: none; } @@ -43,6 +61,10 @@ html, body { #map-menu, .ol-control { background-color: transparent; } +#map-menu[aria-hidden="true"], +#layer-selection-panel[aria-hidden="true"] { + display: none; +} .ol-control button, #map-menu button, #layer-selection-panel { -- cgit v1.2.3