From 4605ba9ebd7a63bbf2cc3bc14d72fb84d3dc1b64 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 20 Jun 2021 00:19:57 +0200 Subject: crusader: Stacked layout. --- data.js | 2 +- play.html | 6 +++- rules.js | 102 +++++++++++++++++++++++++++++++++++++------------------------- ui.js | 60 ++++++++++++++++++++++++++++++++++-- 4 files changed, 124 insertions(+), 46 deletions(-) diff --git a/data.js b/data.js index 7b89d3f..dd77abc 100644 --- a/data.js +++ b/data.js @@ -154,7 +154,7 @@ const PORTS = []; frank(33, "Leopold", "Germania", 2, 3, "B3", "Crusaders"); frank(11, "Richard", "England", 3, 4, "B4", "Crusaders"); - frank(21, "Robert", "England", 2, 3, "B3", "Crusaders"); + frank(21, "Robert", "Normandy", 2, 3, "B3", "Crusaders"); frank(31, "Crossbows", "Aquitaine", 2, 3, "A2", "Crusaders"); frank(12, "Philippe", "France", 2, 4, "B3", "Crusaders"); diff --git a/play.html b/play.html index 80b931b..a2d760f 100644 --- a/play.html +++ b/play.html @@ -133,7 +133,7 @@ body.shift .block.known:hover { .map .block { position: absolute; z-index: 2; } .map .block.highlight { z-index: 3; } .map .block.selected { z-index: 4; } -.map .block:hover { z-index: 5; } +.map .block.known:hover { z-index: 5; } .block.highlight { cursor: pointer; box-shadow: 0px 0px 4px 1px white; } @@ -303,9 +303,13 @@ body.shift .block.known:hover {