From d70b3cdf98919c89f1ba481a700d79d84fe3c43d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Jun 2021 11:38:25 +0200 Subject: tripoli: Show disabled card popup menu items too. Stable menu items should prevent some mis-clicks. --- play.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index eb71cbd..e26e5be 100644 --- a/play.html +++ b/play.html @@ -166,19 +166,23 @@ svg circle, .piece { /* CARD ACTION POPUP MENU */ #popup { - position: absolute; + position: fixed; user-select: none; - background-color: #ddd; + background-color: gainsboro; left: 10px; top: 100px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3); z-index: 200; min-width: 20ex; white-space: nowrap; + display: none; } -#popup div { padding: 3pt 8pt; display: none; } -#popup div.enabled { padding: 3pt 8pt; display: block; } -#popup div:hover { background-color: teal; color: white; } +#popup div { padding: 3pt 8pt; color: gray; display: none; } +#popup div.enabled { color: black; display: block; } +#popup div.enabled:hover { background-color: teal; color: white; } +#popup div.always { display: block; } +.Tripolitania ~ .grid_center > #popup > .tr_always { display: block; } +.United_States ~ .grid_center > #popup > .us_always { display: block; } /* CARD IMAGES */ @@ -481,12 +485,12 @@ svg circle, .piece { -- cgit v1.2.3