aboutsummaryrefslogtreecommitdiffstats
path: root/style.css
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-01-12 16:24:22 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-01-13 14:29:51 +0100
commit610d754456a7e4e7c702e60c8d3e0ecf6459d240 (patch)
treed3abfc8bebc3f265de5cf70074e84ff2141a4518 /style.css
parentbf224efbf4d65baa1c0e19542354ce2ca856feeb (diff)
Add a modal with information text.
Diffstat (limited to 'style.css')
-rw-r--r--style.css22
1 files changed, 22 insertions, 0 deletions
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 {