summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 13:15:55 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-21 19:41:47 +0200
commit25747f3abd3ce953039757e0178b132580418afb (patch)
tree4ccd1dc10d8fe00d9d33e53ceb0abea558553abc
parentd383d3805f1a23d5ec5a37c67ec5c9d79b9dcba4 (diff)
downloadserver-25747f3abd3ce953039757e0178b132580418afb.tar.gz
Use <details> to show/hide battle box contents!
And now we don't need to allow user movement of the battle dialogs.
-rw-r--r--public/common/columbia.css12
1 files changed, 7 insertions, 5 deletions
diff --git a/public/common/columbia.css b/public/common/columbia.css
index 36e34af..2c20d45 100644
--- a/public/common/columbia.css
+++ b/public/common/columbia.css
@@ -3,8 +3,6 @@
#battle {
position: absolute;
min-width: 524px; /* 6 blocks wide */
- left: 12px;
- top: 12px;
z-index: 50;
box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.5);
background-color: white;
@@ -25,11 +23,15 @@
line-height: 24px;
min-height: 24px;
font-weight: bold;
- user-select: none;
- cursor: move;
text-align: center;
- border-bottom: 1px solid black;
overflow: hidden;
+ list-style: none;
+ cursor: s-resize;
+}
+
+#battle[open] #battle_header {
+ cursor: n-resize;
+ border-bottom: 1px solid black;
}
#battle_message {