From 2b4b2e23eed2317c110f8e49203e517614663a39 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 4 Nov 2023 12:31:05 +0100 Subject: NEUT overlay --- play.html | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'play.html') diff --git a/play.html b/play.html index 5141023..2729591 100644 --- a/play.html +++ b/play.html @@ -360,7 +360,35 @@ svg .area.tip, svg .urban2.tip { } .unit.neutralized { - filter: grayscale(50%) brightness(125%); + filter: grayscale(75%); +} + +.unit.neutralized::before { + display: block; + position: absolute; + top: 7px; + width: 39px; + font-size: 10px; + height: 17px; + line-height: 17px; + text-align: center; + font-weight: bold; + content: "NEUT"; +} + +.unit.fln.neutralized::before { + background-color: var(--fln-base); + color: white; +} + +.unit.gov.neutralized::before { + background-color: var(--gov-44); + color: white; +} + +.unit.neutralized:hover::before { + opacity: 0.5; + content: ""; } .border_zone.neutralized { -- cgit v1.2.3