From ae6914359ab49091b0afbdd045883205ff4d2d7f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Jun 2021 12:41:36 +0200 Subject: 300: Show disabled menu item too. --- play.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/play.html b/play.html index 102c99f..60e64b6 100644 --- a/play.html +++ b/play.html @@ -90,19 +90,20 @@ /* 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; } +#popup div.enabled { color: black; } +#popup div.enabled:hover { background-color: teal; color: white; } /* MAP WITH ARMIES, FLEETS, AND MARKERS */ @@ -408,12 +409,8 @@ -- cgit v1.2.3