summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-03 13:51:18 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commit8dfff84640738ccae97bc87bf34520c5406faa58 (patch)
treeb673c69eb615a4bec5e953da779b6ebeb0187ce8
parent4b1e03bf095d9f2ff605c40d96a3e1003c7f5f34 (diff)
downloadhammer-of-the-scots-8dfff84640738ccae97bc87bf34520c5406faa58.tar.gz
Responsive small card displays.
-rw-r--r--play.html59
1 files changed, 33 insertions, 26 deletions
diff --git a/play.html b/play.html
index 86bfd7d..169e1de 100644
--- a/play.html
+++ b/play.html
@@ -23,6 +23,28 @@
.two .role_name { background-color: skyblue; }
.turn_info { background-color: gainsboro; }
+/* CARDS */
+
+.card_back {
+ background-image: url('cards/card_back.svg');
+ background-size: contain;
+ background-position: 0% 40%;
+ background-repeat: no-repeat;
+}
+
+.card_truce{background-image:url('cards/card_truce.jpg')}
+.card_herald{background-image:url('cards/card_herald.jpg')}
+.card_sea_move{background-image:url('cards/card_sea_move.jpg')}
+.card_pillage{background-image:url('cards/card_pillage.jpg')}
+.card_victuals{background-image:url('cards/card_victuals.jpg')}
+.card_1{background-image:url('cards/card_1.jpg')}
+.card_2{background-image:url('cards/card_2.jpg')}
+.card_3{background-image:url('cards/card_3.jpg')}
+
+.card, .small_card {
+ background-color: #893739;
+}
+
.card {
width: 225px;
height: 350px;
@@ -34,15 +56,19 @@
transform: scale(1.1);
}
-.small_card {
- width: 90px;
- height: 140px;
- border-radius: 4px;
+.role_info { padding: 15px; }
+.small_card { width: 90px; height: 140px; border-radius: 4px; }
+.small_card:hover { width: 180px; height: 280px; border-radius: 8px; }
+
+@media (max-height: 800px) {
+ .role_info { padding: 15px 0 0 0; }
+ .small_card { width: 180px; height: 80px; border-radius: 8px 8px 0 0; }
+ .small_card:hover { width: 180px; height: 280px; border-radius: 8px; margin-bottom: 15px; }
+ .small_card.card_back { background-image: unset; }
}
-.role_info {
- display: flex;
- justify-content: center;
+@media (min-height: 1200px) {
+ .small_card { width: 180px; height: 280px; border-radius: 8px; }
}
/* MAP */
@@ -225,25 +251,6 @@ div.block {
.battle_b_cell > div { min-width: 240px; }
.battle_c_cell > div { min-width: 240px; }
-/* CARD AND MARKER IMAGES */
-
-div.card_back {
- background-image: url('cards/card_back.svg');
- background-color: gainsboro;
- background-size: contain;
- background-position: 0% 40%;
- background-repeat: no-repeat;
-}
-
-div.card_truce{background-image:url('cards/card_truce.jpg')}
-div.card_herald{background-image:url('cards/card_herald.jpg')}
-div.card_sea_move{background-image:url('cards/card_sea_move.jpg')}
-div.card_pillage{background-image:url('cards/card_pillage.jpg')}
-div.card_victuals{background-image:url('cards/card_victuals.jpg')}
-div.card_1{background-image:url('cards/card_1.jpg')}
-div.card_2{background-image:url('cards/card_2.jpg')}
-div.card_3{background-image:url('cards/card_3.jpg')}
-
</style>
</head>
<body class="oldlabels">