index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <Catalin.Mititiuc@gmail.com> | 2024-03-23 15:02:20 -0700 |
---|---|---|
committer | Catalin Mititiuc <Catalin.Mititiuc@gmail.com> | 2024-03-23 15:02:20 -0700 |
commit | 1935310fbf26769938a6e9a4008623c7b44fc5a8 (patch) | |
tree | 54976a7a6968a25d979ff25eea4cf2e079b88581 | |
parent | 6ea86c77f56a26bcbb1c90c46e035385791e7ef9 (diff) |
IT WORKS! 3-state selector with pure CSS!
-rw-r--r-- | style.css | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -161,30 +161,31 @@ input:checked + label + input + label { border: none; display: inline; } +*/ input { position: absolute; opacity: 0; -} */ +} label span { - border-color: red; + display: none; } label:first-of-type span { - border-color: black; + display: inline-block; } label:has(input:checked) span { - border-color: red; + display: none; } label:has(+ label input:checked) span { - border-color: red; + display: none; } label:has(input:checked) + label span { - border-color: black; + display: inline-block; } image#img1 { |