From 05a157a1979478d7a714a12af1230f2037b2f0de Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Dec 2021 17:03:04 +0100 Subject: Use ID instead of class for map and mapwrap. --- play.html | 60 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/play.html b/play.html index 3a3a632..dccf019 100644 --- a/play.html +++ b/play.html @@ -30,18 +30,18 @@ #log .bs { background-color: lightgray; } #log .br { font-style: italic; text-decoration: underline; } -.map #timeline { +#map #timeline { position: absolute; width: 88px; height: 35px; top: 2410px; background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0.8)); } -.map #timeline.year_1187 { left: 702px; } -.map #timeline.year_1188 { left: 793px; width: 89px; } -.map #timeline.year_1189 { left: 885px; } -.map #timeline.year_1190 { left: 976px; width: 89px; } -.map #timeline.year_1191 { left: 1068px; } -.map #timeline.year_1192 { left: 1160px; width: 85px; } +#map #timeline.year_1187 { left: 702px; } +#map #timeline.year_1188 { left: 793px; width: 89px; } +#map #timeline.year_1189 { left: 885px; } +#map #timeline.year_1190 { left: 976px; width: 89px; } +#map #timeline.year_1191 { left: 1068px; } +#map #timeline.year_1192 { left: 1160px; width: 85px; } #turn { padding: 8px 0px 8px 8px; @@ -83,7 +83,7 @@ /* MAP */ -.mapwrap { +#mapwrap { position: relative; background-color: #224467; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); @@ -91,7 +91,7 @@ height: 2475px; } -.map { +#map { position: absolute; width: 1275px; height: 2475px; @@ -99,11 +99,11 @@ background-color: #224467; } -.map > * { +#map > * { position: absolute; } -.map.hide_blocks div.blocks { +#map.hide_blocks div.blocks { visibility: hidden; } @@ -148,11 +148,11 @@ body.shift .block.known:hover { } .battle .block { position: relative; } -.map .block { position: absolute; z-index: 2; } -.map .block.highlight { z-index: 3; } -.map .block.selected { z-index: 4; } -.map .block.known { z-index: 5; } -.map .block.known:hover { z-index: 6; } +#map .block { position: absolute; z-index: 2; } +#map .block.highlight { z-index: 3; } +#map .block.selected { z-index: 4; } +#map .block.known { z-index: 5; } +#map .block.known:hover { z-index: 6; } .block { background-size: cover; @@ -185,8 +185,8 @@ body.shift .block.known:hover { .block.moved { filter: brightness(80%) grayscale(40%); } .block.highlight.moved { filter: brightness(95%) grayscale(40%); } -.map .block.castle.known { filter: grayscale(50%); } -.map.stack_layout .block.castle { filter: grayscale(90%); } +#map .block.castle.known { filter: grayscale(50%); } +#map.stack_layout .block.castle { filter: grayscale(90%); } .block.castle:not(.known) { background-image: url("badges/stone-tower.svg"); @@ -243,24 +243,24 @@ body.shift .block.known:hover { /* LANDSCAPE MAP */ @media (min-width: 2000px) { - .mapwrap:not(.fit) { + #mapwrap:not(.fit) { box-shadow: 1px 0px 10px rgba(0,0,0,0.5); height: 1275px; width: 2475px; margin-bottom: 40px; margin-top: 30px; } - .mapwrap:not(.fit) .map { + #mapwrap:not(.fit) #map { transform: translateY(1275px) rotate(-90deg); transform-origin: 0 0; } - body.shift .mapwrap:not(.fit) .map .block.known:hover { + body.shift #mapwrap:not(.fit) #map .block.known:hover { transform: rotate(90deg) scale(2) !important; } - .mapwrap:not(.fit) .map .block { transform: rotate(90deg); } - .mapwrap:not(.fit) .map .block.r1 { transform: rotate(0deg); } - .mapwrap:not(.fit) .map .block.r2 { transform: rotate(-90deg); } - .mapwrap:not(.fit) .map .block.r3 { transform: rotate(-180deg); } + #mapwrap:not(.fit) #map .block { transform: rotate(90deg); } + #mapwrap:not(.fit) #map .block.r1 { transform: rotate(0deg); } + #mapwrap:not(.fit) #map .block.r2 { transform: rotate(-90deg); } + #mapwrap:not(.fit) #map .block.r3 { transform: rotate(-180deg); } } /* BATTLE BOARD */ @@ -498,15 +498,15 @@ body.shift .block.known:hover {
-
-
+
+
-
- -
+
+ +
-- cgit v1.2.3