summaryrefslogtreecommitdiff
path: root/play.css
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-18 11:46:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commiteb5bc4507bb8546605f051ca6acde1b136c02085 (patch)
treebdaf1f2b0c4c1d51938ea4c2714d8b12a8dd9e8e /play.css
parentba60714ad6aeffda1361f2341c550d4dd4abf3e4 (diff)
downloadandean-abyss-eb5bc4507bb8546605f051ca6acde1b136c02085.tar.gz
Put cards along right side of map if zoomed out / wide screen.
Diffstat (limited to 'play.css')
-rw-r--r--play.css37
1 files changed, 25 insertions, 12 deletions
diff --git a/play.css b/play.css
index a776fc6..8354f2d 100644
--- a/play.css
+++ b/play.css
@@ -11,6 +11,7 @@ main { background-color: #777; }
#log { background-color: whitesmoke; }
#log .h1 { background-color: silver; font-weight: bold; padding-top:4px; padding-bottom:4px; }
+#log .h1 { background-image: linear-gradient(60deg, skyblue, khaki, lightcoral, darkseagreen) }
#log .h2 { background-color: gainsboro; padding-top:2px; padding-bottom:2px; }
#log .h2.govt { background-color: #c6d1eb }
#log .h2.farc { background-color: #ebc9be }
@@ -24,7 +25,6 @@ main { background-color: #777; }
#log div { padding-left: 20px; text-indent: -12px; }
#log div.indent { padding-left: 32px; text-indent: -12px; }
-#log .h1 { background-image: linear-gradient(60deg, skyblue, khaki, lightcoral, darkseagreen) }
#log { font-variant-numeric: tabular-nums; }
@@ -39,6 +39,19 @@ main { background-color: #777; }
top: 60px;
}
+
+/* Put cards on right of map when zoomed to fit, or very wide screen */
+main { grid-template-columns: 1fr min-content min-content 1fr; }
+#mapwrap { grid-row: 1; grid-column: 2 }
+#card_panel { grid-row: 1; grid-column: 3 }
+@media (min-width: 2200px) { main { display: grid; } }
+main.fit { display: grid; }
+/*
+main.fit #deck_outer { height: 96px; background-position: 0 -15px }
+*/
+
+/* MAP */
+
#mapwrap {
box-shadow: 0px 1px 10px #0008;
width: 1650px;
@@ -46,6 +59,10 @@ main { background-color: #777; }
margin-bottom: 36px;
}
+#mapwrap.fit {
+ margin-bottom: 0
+}
+
#map {
width: 1650px;
height: 2550px;
@@ -205,10 +222,6 @@ path.tip { stroke: yellow; }
height: 36px;
}
-.token.reminder {
- //margin: 4px 5px 5px 4px;
-}
-
.token.shipment
{
border-radius: 50%;
@@ -324,13 +337,13 @@ path.tip { stroke: yellow; }
/* CARDS */
#card_panel {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 18px;
- padding: 0 18px;
- max-width: 1614px;
- margin: 36px auto;
+ text-align: center;
+ margin: 24px;
+}
+
+#card_panel .card {
+ display: inline-block;
+ margin: 9px;
}
.card {