From 114bcca24e4230ff1e6b8289ecd2b76f0a3e4970 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 23 Sep 2025 12:53:52 +0200 Subject: [PATCH] styling popup title --- oedb/resources/demo/demo_main.py | 252 +++++++++++++-------- oedb/resources/demo/static/demo_styles.css | 8 + oedb/resources/demo/static/traffic.css | 1 - 3 files changed, 171 insertions(+), 90 deletions(-) diff --git a/oedb/resources/demo/demo_main.py b/oedb/resources/demo/demo_main.py index ca1fe23..3ea7702 100644 --- a/oedb/resources/demo/demo_main.py +++ b/oedb/resources/demo/demo_main.py @@ -69,18 +69,48 @@ class DemoMainResource: border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); max-width: 300px; + transition: all 0.3s ease; + z-index: 10; } - /* Styles pour listes dépliantes */ - #endpoints_list, #demo_pages_list { + + /* Responsive styles for the menu */ + @media (max-width: 768px) { + .map-overlay { + max-width: 85%; + width: 85%; + font-size: 0.9em; + } + .map-overlay h2 { + font-size: 1.2em; + } + } + + @media (max-width: 480px) { + .map-overlay { + max-width: 90%; + width: 90%; + font-size: 0.85em; + } + } + /* Styles pour listes dépliantes et sections collapsibles */ + #endpoints_list, #demo_pages_list, .collapsible-content { display: none; overflow: hidden; transition: all 0.3s ease; } - #endpoints_list_header, #demo_pages_list_header { + #endpoints_list_header, #demo_pages_list_header, .collapsible-header { cursor: pointer; user-select: none; position: relative; padding-right: 20px; + margin-top: 15px; + margin-bottom: 10px; + } + .toggle-icon { + position: absolute; + right: 0; + font-size: 0.8em; + transition: transform 0.3s ease; } #endpoints_list_header:after, #demo_pages_list_header:after { content: '▼'; @@ -89,7 +119,8 @@ class DemoMainResource: font-size: 0.8em; transition: transform 0.3s ease; } - #endpoints_list_header.active:after, #demo_pages_list_header.active:after { + #endpoints_list_header.active:after, #demo_pages_list_header.active:after, + .collapsible-header.active .toggle-icon { transform: rotate(180deg); } .map-style-control { @@ -213,79 +244,84 @@ class DemoMainResource: OpenEventDatabase Demo

This map shows current events from the OpenEventDatabase.

+ +

+ Traffic event

-

+ Any Event

+

+ Any Event

- - - - - +

Information Panel

+
+ + + + + - -

API Endpoints:

- -

Demo Pages:

- -

- - sources - -

+ }); + +
--> + +

API Endpoints:

+ +

Demo Pages:

+ +

+ + sources + +

+