summaryrefslogtreecommitdiff
path: root/play.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-03 13:51:18 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commit3e79e00e8b6b676d15f7cadaa128891fa9f90169 (patch)
tree254e8784f2210df9281d4e0adc48a0de2b77f469 /play.html
parent60b136d352fb78c4c711018ac22a47beb7ea4735 (diff)
downloadjulius-caesar-3e79e00e8b6b676d15f7cadaa128891fa9f90169.tar.gz
Responsive small card displays.
Diffstat (limited to 'play.html')
-rw-r--r--play.html34
1 files changed, 19 insertions, 15 deletions
diff --git a/play.html b/play.html
index 933208b..cb7cddb 100644
--- a/play.html
+++ b/play.html
@@ -17,12 +17,10 @@
<style>
.grid_center { background-color: #461145; }
-.grid_role { background-color: wheat; }
+.grid_role { background-color: tan; }
.grid_log { background-color: wheat; }
.grid_top { background-color: tan; }
.grid_top.your_turn { background-color: orange; }
-.grid_top.disconnected { background-color: red; }
-.role_info { background-color: tan; }
.one .role_name { background-color: salmon; }
.two .role_name { background-color: #eb5; }
.turn_info { background-color: burlywood; }
@@ -57,20 +55,25 @@
transform: scale(1.1);
}
-.small_card {
- background-color: white;
- width: 90px;
- height: 140px;
- border-radius: 6px;
-}
-
.small_card.prior {
filter: grayscale(100%);
}
-.role_info {
- display: flex;
- justify-content: center;
+.card, .small_card { background-color: white; }
+.card_back { background-color: #822c1f; }
+
+.role_info { padding: 15px; }
+.small_card { width: 90px; height: 140px; border-radius: 5px; }
+.small_card:hover { width: 180px; height: 280px; border-radius: 10px; }
+
+@media (max-height: 800px) {
+ .role_info { padding: 15px 0 0 0; }
+ .small_card { width: 135px; height: 80px; border-radius: 8px 8px 0 0; }
+ .small_card:hover { width: 180px; height: 280px; border-radius: 10px; margin-bottom: 15px; }
+}
+
+@media (min-height: 1200px) {
+ .small_card { width: 180px; height: 280px; border-radius: 10px; }
}
/* BATTLE BOARD */
@@ -101,7 +104,6 @@
height: 1275px;
background-image: url("map.webp");
background-size: cover;
- box-shadow: none;
}
#turn {
@@ -306,7 +308,9 @@ body.shift .block.known:hover {
<div class="role_vp" id="pompeius_vp">7 VP</div>
<div class="role_user">-</div>
</div>
- <div class="role_info"><div class="small_card card_back" id="pompeius_card"></div></div>
+ <div class="role_info">
+ <div class="small_card card_back" id="pompeius_card"></div>
+ </div>
</div>
<div class="turn_info">-</div>