From 88bf91f78d8101221ee297ac8484d34708673ae8 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 2 Sep 2024 15:46:58 +0100 Subject: [PATCH 1/9] move help button to control panel --- seshat/apps/core/templates/core/world_map.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index 4d6ec83fa..ad23412d8 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -179,7 +179,6 @@ background-color: transparent; border: none; cursor: pointer; - font-size: 2.5em; } .display-info-container { @@ -302,7 +301,12 @@

Seshat World Map

- + Satellite (Esri World Imagery)
@@ -578,6 +578,7 @@

allVariablesLoaded = true; plotPolities(); document.getElementById('variablesLoadingIndicator').style.display = 'none'; + document.getElementById('background-map-header').style.display = 'block'; document.getElementById('cliopatria-link').style.display = 'block'; return fetch('/core/provinces_and_countries'); From a700e7cf0ca13b1fbad0407077f226a8e1020a99 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 2 Sep 2024 16:27:54 +0100 Subject: [PATCH 5/9] button looks like link --- seshat/apps/core/templates/core/world_map.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index ef9cc7a00..ce0db6816 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -179,6 +179,11 @@ background-color: transparent; border: none; cursor: pointer; + color: teal; + } + + .transparent-button:hover { + color: orange; } .display-info-container { From 21a9706b9cb69165c4427ece6a031d70b0cd90ab Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 3 Sep 2024 09:56:15 +0100 Subject: [PATCH 6/9] close button --- seshat/apps/core/templates/core/world_map.html | 1 + 1 file changed, 1 insertion(+) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index ce0db6816..f82e8a4ee 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -395,6 +395,7 @@

Background map

+

🔹 Hover the mouse over polity shapes on the map to reveal information.

🔹 Clicking polity shapes adds them to the legend.

🔹 Some polities have Seshat pages reachable with double click.

From 0b405bc8869e5ced51b390c105925f04b40429ea Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 3 Sep 2024 09:59:50 +0100 Subject: [PATCH 7/9] refine cross button --- seshat/apps/core/templates/core/world_map.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index f82e8a4ee..6f1d36fad 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -291,6 +291,13 @@ 100% { transform: rotate(360deg); } } + #crossButton { + background-color: rgba(255, 253, 242, 1); + right: 4%; + position: absolute; + border-color: #782823; + } +
@@ -395,7 +402,7 @@

Background map

- +

🔹 Hover the mouse over polity shapes on the map to reveal information.

🔹 Clicking polity shapes adds them to the legend.

🔹 Some polities have Seshat pages reachable with double click.

From 853181475c6cf2c2a954e8e4ab311775871fbb26 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 3 Sep 2024 10:01:26 +0100 Subject: [PATCH 8/9] rename div --- seshat/apps/core/templates/core/world_map.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index 6f1d36fad..00531f59b 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -132,7 +132,7 @@ left: 4%; z-index: 1000; } - .toprightcontainer { + .helpcontainer { display: flex; position: absolute; top: 1%; @@ -399,7 +399,7 @@

Background map

-
+
From 6603fe659ab154bb47be5a8d0ba93172d7862998 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Tue, 3 Sep 2024 10:04:10 +0100 Subject: [PATCH 9/9] put help in middle of screen --- seshat/apps/core/templates/core/world_map.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seshat/apps/core/templates/core/world_map.html b/seshat/apps/core/templates/core/world_map.html index 00531f59b..491699751 100644 --- a/seshat/apps/core/templates/core/world_map.html +++ b/seshat/apps/core/templates/core/world_map.html @@ -135,8 +135,8 @@ .helpcontainer { display: flex; position: absolute; - top: 1%; - right: 4%; + top: 30%; + left: 30%; z-index: 1000; }