From c2640bcada12f596f53aa46a615d3d5c9bb2a505 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 28 May 2022 22:27:29 +0300 Subject: [PATCH] tooltip - get shortcut from its own attribute --- index.css | 14 ++ index.html | 179 ++++++++++++--------- main.js | 3 + modules/dynamic/editors/cultures-editor.js | 2 +- modules/dynamic/editors/states-editor.js | 2 +- modules/ui/general.js | 29 ++-- modules/ui/world-configurator.js | 18 ++- 7 files changed, 155 insertions(+), 92 deletions(-) diff --git a/index.css b/index.css index 419bf650..4d1a1f91 100644 --- a/index.css +++ b/index.css @@ -347,6 +347,20 @@ text.drag { user-select: none; } +#optionsTrigger { + padding: 0.6em 0.45em; +} + +@media (max-width: 600px) { + #optionsTrigger { + font-size: 2em; + padding: 0; + width: 1.3em; + height: 1.6em; + border: solid 1px #5e4fa2; + } +} + #options { position: absolute; font-family: Consolas, monospace; diff --git a/index.html b/index.html index a895ac77..d027e45c 100644 --- a/index.html +++ b/index.html @@ -288,17 +288,18 @@ @@ -358,7 +366,8 @@