summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-22 23:09:18 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commitdc1aa50ec82e74e8e48d4abdfceab28aca107274 (patch)
treece7f60c2cf7b05176b174d6da1605c45f555b53b
parentd868bb1185b7800bf1f2b7f739d7061bfd9d9b60 (diff)
downloadcrusader-rex-dc1aa50ec82e74e8e48d4abdfceab28aca107274.tar.gz
crusader: Tweak colors and highlights.
-rw-r--r--play.html22
-rw-r--r--rules.js2
2 files changed, 11 insertions, 13 deletions
diff --git a/play.html b/play.html
index 4b9a223..5541bde 100644
--- a/play.html
+++ b/play.html
@@ -135,8 +135,8 @@
opacity: 0.0;
z-index: 1;
border: 5px solid white;
- width: 60px;
- height: 60px;
+ width: 70px;
+ height: 70px;
border-radius: 50%;
}
.town.highlight {
@@ -156,6 +156,7 @@
/* BLOCKS */
body.shift .block.known:hover {
+ filter: none;
transform: scale(2) !important;
transition: 100ms;
z-index: 100;
@@ -181,23 +182,18 @@ body.shift .block.known:hover {
.block.Saracens { border: 3px solid seagreen; background-color: darkseagreen; }
.block.Assassins { border: 3px solid rebeccapurple; background-color: rebeccapurple; }
-.block.Franks.highlight { border-color: white; }
-.block.Saracens.highlight { border-color: white; }
+.block.Franks.highlight { border-color: white !important ; }
+.block.Saracens.highlight { border-color: lightgreen !important ; }
.block.Franks.selected { border-color: gold; }
-.block.Saracens.selected { border-color: lightgreen; }
-.block.Assassins.selected { border-color: hotpink; box-shadow: none; }
+.block.Saracens.selected { border-color: gold; }
+.block.Assassins.selected { border-color: hotpink; }
.block.highlight { cursor: pointer; }
-.block.highlight { box-shadow: 0px 0px 4px 1px white; }
-.block.selected { box-shadow: 0 0 4px 1px white; }
.block.moved { filter: brightness(80%) grayscale(40%); }
.block.highlight.moved { filter: brightness(95%) grayscale(40%); }
-
-.map .block.castle.known, .map.stack_layout .block.castle {
- border-color: #444;
- filter: grayscale(50%);
-}
+.map .block.castle.known { filter: grayscale(50%); }
+.map.stack_layout .block.castle { filter: grayscale(90%); }
.map .block.castle:not(.known) {
background-image: url("/crusader-rex/besieged.svg");
diff --git a/rules.js b/rules.js
index f75cd9c..db0960d 100644
--- a/rules.js
+++ b/rules.js
@@ -3,6 +3,8 @@
// TODO: optional rule - iron bridge
// TODO: optional rule - force marches
+// TODO: sort blocks in battle screen!
+
exports.scenarios = [
"Third Crusade"
];