summaryrefslogtreecommitdiff
path: root/play.css
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 22:46:22 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 22:49:03 +0100
commit9ffa91892f70142a21a6a836b71a7450097669af (patch)
treee6df586ee38be8c09ec7b16643493cdac83160af /play.css
parenta2e7880841587374e86468f2c06ebaae5a1cd8d4 (diff)
downloadmaria-9ffa91892f70142a21a6a836b71a7450097669af.tar.gz
wider and shorter political display
Diffstat (limited to 'play.css')
-rw-r--r--play.css40
1 files changed, 28 insertions, 12 deletions
diff --git a/play.css b/play.css
index 06044a0..f26d24d 100644
--- a/play.css
+++ b/play.css
@@ -220,10 +220,6 @@ dialog button {
border: 1px solid #0008;
}
-#political_body div.deal {
- margin: 16px 8px 8px 8px;
-}
-
#political_body td {
border: 1px solid #0004;
padding: 4px;
@@ -286,6 +282,34 @@ dialog button {
#discard_pile_header { background-color: var(--color-light-discard); }
#discard_pile_panel { background-color: var(--color-medium-discard); }
+.panel_body { padding-right: calc(18px + 167px); }
+.panel_body { gap: 18px 0; }
+
+#discard_pile_panel { max-width: calc(230px * 4 + 18px * 5) }
+#discard_pile_body { padding: 18px; gap: 18px; }
+
+#political_panel {
+ width: min-content;
+}
+#political_body {
+ padding: 4px;
+ display: grid;
+ grid-template-rows: min-content 1fr;
+ grid-template-columns: 179px 879px 169px;
+ gap: 12px;
+}
+#political_display { grid-row: 1; grid-column: 2; }
+#pc_deck { grid-row: 1; grid-column: 1; }
+#pc_show { grid-row: 1; grid-column: 3; }
+#pc_show .card + .card { margin-top: 12px ; }
+#pc_deck, #pc_show { margin-top: 4px; }
+
+#pd_deals { grid-row: 2; grid-column: 2; }
+
+div.deal + div.deal {
+ margin-top: 8px;
+}
+
/* LOG */
#log {
@@ -665,14 +689,6 @@ body.shift span.value.deck_4 { background-color: #f002 }
.card.tc.hand { margin-right: calc(-167px + 10px); }
.card.polcard.pile { margin-right: calc(-167px + 6px); }
-.panel_body { padding-right: calc(18px + 167px); }
-.panel_body { gap: 18px 0; }
-#discard_pile_body { padding: 18px; gap: 18px; }
-
-#political_body { padding: 4px 0; display: body; }
-#political_panel { width: 879px }
-#discard_pile_panel { max-width: calc(230px * 4 + 18px * 5) }
-
.card_pile {
display: flex;
flex-wrap: wrap;