summaryrefslogtreecommitdiff
path: root/play.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-12 22:42:01 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:21 +0200
commite35f28bf0a8618213f79051d6cf87552ad7db226 (patch)
treefee7dd320feaf744a91b4e035451f17bc1d96173 /play.html
parent644d5b7e72e7ac00b5a95951b5430b519e93f146 (diff)
downloadwaterloo-campaign-1815-e35f28bf0a8618213f79051d6cf87552ad7db226.tar.gz
Movement.
Diffstat (limited to 'play.html')
-rw-r--r--play.html58
1 files changed, 33 insertions, 25 deletions
diff --git a/play.html b/play.html
index ecf6c9b..5471572 100644
--- a/play.html
+++ b/play.html
@@ -63,12 +63,6 @@ main {
position: absolute;
border-radius: 50%;
border: 2px solid transparent;
- width: 62px;
- height: 62px;
-}
-
-.hex:hover {
- border-color: #0008;
}
.hex.town { background-color: #F006; }
@@ -77,6 +71,13 @@ main {
.hex.action {
border: 4px solid #fff6;
+ background-color: #fff2;
+ box-shadow: 0 0 3px #0008;
+ z-index: 100;
+}
+
+.hex.action.stop {
+ background-color: #f002;
}
.hexside {
@@ -120,37 +121,44 @@ main {
}
.large, .small {
+ transition-property: top, left;
+ transition-duration: 500ms;
+ transition-timing-function: ease;
border-width: 2px;
border-style: solid;
box-shadow: 0 0 0 1px #444, 0 0 4px #0008;
}
+.large.action, .small.action {
+ box-shadow: 0 0 0 1px #444, 0 0 0 4px white;
+}
+
+.large.selected, .small.selected {
+ box-shadow: 0 0 0 1px #444, 0 0 0 4px yellow;
+ z-index: 101;
+}
+
.marker { border-color: hsl(199,65%,85%) hsl(199,55%,50%) hsl(199,55%,50%) hsl(199,65%,85%) }
.large.french, .small.french { border-color: hsl(199,85%,90%) hsl(199,75%,70%) hsl(199,75%,70%) hsl(199,85%,90%) }
.large.anglo, .small.anglo { border-color: hsl(0,0%,90%) hsl(0,0%,70%) hsl(0,0%,70%) hsl(0,0%,90%) }
.large.prussian, .small.prussian { border-color: hsl(202,10%,70%) hsl(202,10%,50%) hsl(202,10%,50%) hsl(202,10%,70%) }
-.marker.turn { background-image: url(images.2x/game_turn.png) }
-.marker.turn.rain { background-image: url(images.2x/rain.png) }
-.marker.remain { background-image: url(images.2x/move_attacks_remaining.png) }
-.marker.remain.p10 { background-image: url(images.2x/move_attacks_remaining_10.png) }
-
-.large.french { background-image: url(images.1x/sheet_french1.png) }
-.large.anglo { background-image: url(images.1x/sheet_anglo1.png) }
-.large.prussian { background-image: url(images.1x/sheet_prussian1.png) }
-.large.marker { background-image: url(images.1x/sheet_misc.png) }
-.small.french { background-image: url(images.1x/sheet_french2.png) }
-.small.anglo { background-image: url(images.1x/sheet_anglo2.png) }
-.small.prussian { background-image: url(images.1x/sheet_prussian2.png) }
+.large.french { background-image: url(sheet_french1_75.png) }
+.large.anglo { background-image: url(sheet_anglo1_75.png) }
+.large.prussian { background-image: url(sheet_prussian1_75.png) }
+.large.marker { background-image: url(sheet_misc_75.png) }
+.small.french { background-image: url(sheet_french2_75.png) }
+.small.anglo { background-image: url(sheet_anglo2_75.png) }
+.small.prussian { background-image: url(sheet_prussian2_75.png) }
@media (min-resolution:97dpi) {
-.large.french { background-image: url(images.2x/sheet_french1.png) }
-.large.anglo { background-image: url(images.2x/sheet_anglo1.png) }
-.large.prussian { background-image: url(images.2x/sheet_prussian1.png) }
-.large.marker { background-image: url(images.2x/sheet_misc.png) }
-.small.french { background-image: url(images.2x/sheet_french2.png) }
-.small.anglo { background-image: url(images.2x/sheet_anglo2.png) }
-.small.prussian { background-image: url(images.2x/sheet_prussian2.png) }
+.large.french { background-image: url(sheet_french1_150.png) }
+.large.anglo { background-image: url(sheet_anglo1_150.png) }
+.large.prussian { background-image: url(sheet_prussian1_150.png) }
+.large.marker { background-image: url(sheet_misc_150.png) }
+.small.french { background-image: url(sheet_french2_150.png) }
+.small.anglo { background-image: url(sheet_anglo2_150.png) }
+.small.prussian { background-image: url(sheet_prussian2_150.png) }
}
.large.y1 { background-position: -0px -0px }