summaryrefslogtreecommitdiff
path: root/play.css
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 18:08:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-22 13:22:47 +0200
commit282e06e1921833da17efad2d8ffd3689b14fb44b (patch)
treef9e2379a061e0084d81d3d19bee987bedacb8314 /play.css
parent8cf3428c0f7378124cb0a7092e0b554608b5fed1 (diff)
downloadhammer-of-the-scots-282e06e1921833da17efad2d8ffd3689b14fb44b.tar.gz
Battle box.
Diffstat (limited to 'play.css')
-rw-r--r--play.css29
1 files changed, 17 insertions, 12 deletions
diff --git a/play.css b/play.css
index 12b1b9d..bc2a2ac 100644
--- a/play.css
+++ b/play.css
@@ -125,10 +125,6 @@ header.your_turn { background-color: orange; }
position: absolute;
}
-#map svg image {
- pointer-events: none;
-}
-
#map svg path.area {
fill-opacity: 0;
fill: white;
@@ -155,7 +151,6 @@ header.your_turn { background-color: orange; }
/* TURN MARKER */
div.turn {
- pointer-events: none;
position: absolute;
width: 66px;
height: 66px;
@@ -197,11 +192,11 @@ body.shift .block.known:hover {
.oldblocks div.block { border-radius: 8px; }
.newblocks div.block { border-radius: 4px; }
-#map div.block {
+#blocks > div.block {
position: absolute;
}
-#battle div.block {
+#battle > div.block {
position: relative;
}
@@ -239,11 +234,23 @@ div.block.r3 { transform: rotate(-270deg); }
div.block:hover { z-index: 1; }
div.block {
- transition-property: top, left, transform;
- transition-duration: 700ms, 700ms, 200ms;
- transition-timing-function: ease;
+ transition-property: top, left, transform, opacity;
+ transition-duration: 700ms, 700ms, 250ms, 250ms;
+ transition-timing-function: ease, ease, ease, linear;
}
+/* BATTLE BOX HIDING */
+
+#map svg path.area.battle {
+ fill-opacity: 0.5;
+ fill: black;
+}
+
+/*
+div.block.battle { filter: grayscale(60%) brightness(60%) !important }
+*/
+div.block.battle { opacity: 0; pointer-events: none }
+
/* HERALD DIALOG */
#herald {
@@ -262,8 +269,6 @@ body.Scotland #herald li.action:hover { background-color: hsl(0, 59%, 35%); }
/* BATTLE BOARD */
-#battle { top: 160px; left: 185px; }
-
#battle { background-color: silver; }
#battle_message { background-color: lightsteelblue; }
#battle_header { background-color: steelblue; color: white; }