index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-02 17:18:45 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-02 17:18:45 -0700 |
commit | 5f17d5d786af74bb7b6bd6f99bcd0ccfab4fc9d5 (patch) | |
tree | b0bc7678fae2f79799f5aee4d99d872bb7f58673 /public/assets/css | |
parent | 3c0e59f68ee061abc98dafa07301bd54005e94dc (diff) |
Add troop number and squad number when creating counters
Diffstat (limited to 'public/assets/css')
-rw-r--r-- | public/assets/css/map.css | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/public/assets/css/map.css b/public/assets/css/map.css index 4c3c9a2..7eb87f8 100644 --- a/public/assets/css/map.css +++ b/public/assets/css/map.css @@ -177,15 +177,15 @@ g.counter use { } g.counter use.troop-number, g.counter use.squad-number { - --scale: 0.4; + --scale: 0.25; } g.counter .troop-number { - --translateX: -4px; + --translateX: -3.5px; } g.counter .squad-number { - --translateX: 4px; + --translateX: 3.5px; } g.counter .troop-number, g.counter .squad-number { @@ -242,16 +242,21 @@ g[data-y]:nth-child(odd) { stroke: black; } -[data-x]:hover g.counter { +[data-x]:hover g.counter, +[data-q][data-r][data-s][data-t]:hover g.counter { transform: scale(1.5); } -[data-x]:hover g.counter .troop-number { - --translateX: -6px; +[data-x]:hover g.counter .troop-number, +[data-q][data-r][data-s][data-t]:hover g.counter .troop-number { + --translateX: -5px; + --scale: 0.5; } -[data-x]:hover g.counter .squad-number { - --translateX: 6px; +[data-x]:hover g.counter .squad-number, +[data-q][data-r][data-s][data-t]:hover g.counter .squad-number { + --translateX: 5px; + --scale: 0.5; } [data-x] { |