diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-03 14:38:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:39 +0100 |
commit | 75577e34215efd451c76d5a4bf636fd0b1e46aa5 (patch) | |
tree | 50a17d62e5fe26fe7696fb65c354f7a748f7c470 | |
parent | ec0d2b6e14d38b2c12c960789b96f97649b416e9 (diff) | |
download | crusader-rex-75577e34215efd451c76d5a4bf636fd0b1e46aa5.tar.gz |
crusader: Responsive small cards.
-rw-r--r-- | play.html | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -15,16 +15,15 @@ <style> .grid_center { background-color: slategray; } -.grid_role { background-color: gainsboro; } +.grid_role { background-color: silver; } .grid_log { background-color: ghostwhite; } .grid_top { background-color: gainsboro; } .grid_top.your_turn { background-color: orange; } .grid_top.Franks.your_turn { background-color: #f7de46; /* 50% mix of khaki and gold */ } .grid_top.Saracens.your_turn { background-color: lightgreen; } -.grid_top.disconnected { background-color: red; } -.role_info { background-color: silver; } .one .role_name { background-color: khaki; } .two .role_name { background-color: darkseagreen; } +.turn_info { background-color: gainsboro; } .map #timeline { position: absolute; @@ -59,19 +58,22 @@ transform: scale(1.1); } -.small_card { - width: 90px; - height: 140px; - border-radius: 6px; -} - .small_card.prior { filter: grayscale(100%) contrast(70%) brightness(120%); } -.role_info { - display: flex; - justify-content: center; +.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: 180px; height: 80px; border-radius: 10px 10px 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; } } /* MAP */ @@ -185,12 +187,12 @@ body.shift .block.known:hover { background-size: 60%; background-position: center; } -.block.Franks.jihad { +.block.Franks.jihad:not(.known) { background-image: url("badges/Cross_of_the_Knights_Templar.svg"); background-size: 60%; background-position: center; } -.block.Saracens.jihad { +.block.Saracens.jihad:not(.known) { background-image: url("badges/Star_and_Crescent.svg"); background-size: 60%; background-position: center; |