From b57602113bf61be7dea9ff66b84cd5a58a227b65 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 6 Aug 2022 23:27:09 +0200 Subject: Highlight to/from hexes with higher priority than hex control. --- play.html | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index ae183d7..24acbc8 100644 --- a/play.html +++ b/play.html @@ -287,16 +287,6 @@ svg .hex { stroke-width: 2; } -svg .hex.action { - stroke: ivory; - stroke-dasharray: 2 2; - stroke-dashoffset: 1; -} - -svg .hex.action.forced_march { - stroke: crimson; -} - svg .hex.exit { fill: black; fill-opacity: 0.125; @@ -306,23 +296,18 @@ svg .hex.refit.action { stroke: lightskyblue; } -svg .hex.selected { - stroke: yellow; -} - -svg .hex.from { - fill: gold; - fill-opacity: 0.2; +svg .hex.action { + stroke: ivory; + stroke-dasharray: 2 2; + stroke-dashoffset: 1; } -svg .hex.to { - fill: plum; - fill-opacity: 0.2; +svg .hex.action.forced_march { + stroke: crimson; } -svg .hex.tip { - stroke: white; - stroke-dasharray: 4 4; +svg .hex.selected { + stroke: yellow; } /* HEX CONTROL */ @@ -354,6 +339,23 @@ body.Allied svg .side.allied_control { stroke: none; } body.Axis svg .side.axis_control { stroke: none; } body.Axis svg .side.allied_control { stroke: black; } +/* HEX HIGHLIGHT */ + +svg .hex.from { + fill: gold; + fill-opacity: 0.2; +} + +svg .hex.to { + fill: plum; + fill-opacity: 0.2; +} + +svg .hex.tip { + stroke: white; + stroke-dasharray: 4 4; +} + /* SUPPLY LINES */ svg .hex.axis_supply { -- cgit v1.2.3