diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-19 12:41:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | ae6914359ab49091b0afbdd045883205ff4d2d7f (patch) | |
tree | 9074273af305dc27b630a9a5644d90898a13a513 /play.html | |
parent | da8563adf0857170558ac9fd808799d80c787dbc (diff) | |
download | 300-earth-and-water-ae6914359ab49091b0afbdd045883205ff4d2d7f.tar.gz |
300: Show disabled menu item too.
Diffstat (limited to 'play.html')
-rw-r--r-- | play.html | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -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 @@ </div> <div id="popup" onmouseleave="hide_popup_menu()"> - <div id="menu_card_move" onclick="on_card_move()"> - Play for Movement - </div> - <div id="menu_card_event" onclick="on_card_event()"> - Play Event - </div> + <div id="menu_card_event" onclick="on_card_event()">Play Event</div> + <div id="menu_card_move" onclick="on_card_move()">Play for Movement</div> </div> </div> |