summaryrefslogtreecommitdiff
path: root/play.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-20 17:03:04 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit05a157a1979478d7a714a12af1230f2037b2f0de (patch)
treeb84bf28704f40607b69d24ed4032eec19e95b60b /play.html
parent722827ea3e786e7cf063c5bd45e21a0856f80251 (diff)
downloadcrusader-rex-05a157a1979478d7a714a12af1230f2037b2f0de.tar.gz
Use ID instead of class for map and mapwrap.
Diffstat (limited to 'play.html')
-rw-r--r--play.html60
1 files 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 {
<div id="grid_center">
-<div class="mapwrap" id="mapwrap">
-<div class="map" id="map">
+<div id="mapwrap">
+<div id="map">
<svg id="svgmap" width="1275px" height="2475px" viewBox="0 0 1275 2475">
<image href="map.jpg" x="0" y="0" width="1275" height="2475" />
<path id="sea" d="M30 1201v1170l2-1c1 0 4-1 5-3 2-1 4-2 5-2 2 0 5-1 7-2 3-2 7-4 11-6 3-2 7-4 8-6 1-1 3-2 3-2 2 0 47-23 54-27 4-2 10-6 14-8 7-3 13-7 27-19 4-3 5-4 5-8l1-4h5c4 0 7-1 12-5 6-4 27-24 41-41 7-8 20-21 23-24 1-1 4-3 5-6l6-6c1-1 3-3 4-5 2-3 3-4 10-12 3-3 6-7 6-9 1-1 2-3 3-4 2-1 5-5 7-9 2-3 4-6 5-6 2 0 5-6 5-9 0-2 2-6 5-10s5-7 5-8 0-1 1-1 1-1 2-3c1-4 3-9 8-14 4-5 7-12 7-14 0-1 2-6 4-10 3-4 5-9 6-10 0-1 1-4 3-5 1-2 2-4 2-5 0 0 1-3 3-5 2-3 3-5 3-10 0-6 1-9 4-14 2-3 3-7 3-8 0-3 4-20 6-22 2-3 4-11 4-17 0-1 0-3 1-3 0 0 2-2 2-5 1-2 3-7 4-9 1-3 2-9 3-15 1-11 1-10 0-18 0-5 0-7 1-9s2-5 2-7c1-3 1-5 2-7 0-1 1-4 1-6v-8c4-22 4-23 3-26-1-2-1-4 0-6s1-8 1-13 1-9 1-10v-5c-1-3-1-8-1-12v-10-36c0-8-1-21-2-23 0-1-1-5-1-10 0-14-1-27-2-35-1-3-1-8-1-11s-2-10-5-17c-1-1-1-2 0-3 1-2 1-2 0-3 0-1-1-2 0-2 0-1 0-2-1-3 0-1 0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-2-8-3-11-3s-10-1-15-2c-5 0-10-1-11-1-7 0-15 2-19 4s-8 2-9-1c0-1 0-3 1-4 2-3 1-6-1-8-1-1-6-2-13-3-14-2-15-2-13-5 1-2 1-3 0-4s-2-1-6 1c-2 1-4 2-5 2 0-1 4-4 11-8 5-2 7-3 7-5 0-1 1-2 3-3 1 0 2-1 2-3s0-3 1-4c1 0 1-1 1-3s-1-3-4-5c-2-2-5-3-6-4-4-1-5-3-2-7 1-2 3-3 7-4 5-1 5-1 8-7 1-3 3-6 5-7 1-1 3-4 3-7 1-3 3-7 3-8 1-1 1-3 1-4-1-3-11-13-17-16-3-2-7-5-10-8-2-2-5-4-7-4-1 0-2-1-3-2s-2-2-4-3l-3-1 7-2c3 0 9-1 12-2 7-1 12-3 18-7 5-4 7-8 7-15 0-5 1-7 10-14 1-1 2-3 2-4 0-3 5-14 9-18s5-6 4-9c0-2 0-3 4-5 6-2 6-4-1-9-6-4-9-7-14-13-2-1-5-4-7-6-3-2-7-5-8-7-2-1-6-3-9-4-2-1-5-2-6-3-2-1-13-6-15-6s-11-4-11-5c-1-1-9-5-18-10-18-8-30-15-35-18-2-2-12-5-31-10-7-3-12-7-12-11 0-2 1-4 5-7 4-4 6-7 7-10l2-5 9-5c10-4 12-6 12-12s1-7 8-10c10-5 11-7 11-12-1-4-1-5 4-9 4-5 9-8 21-12 4-1 11-4 15-7 9-4 10-5 11-9 2-8 8-13 18-16 8-2 11-6 12-13v-5H30v1171z"/>
</svg>
-<div id="blocks" class="blocks"></div>
-<div id="offmap" class="offmap" style="visibility:hidden"></div>
-<div id="towns" class="towns"></div>
+<div id="blocks"></div>
+<div id="offmap" style="visibility:hidden"></div>
+<div id="towns"></div>
<div id="timeline" class="year_1187"></div>
</div>
</div>