diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-24 22:46:22 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-24 22:49:03 +0100 |
commit | 9ffa91892f70142a21a6a836b71a7450097669af (patch) | |
tree | e6df586ee38be8c09ec7b16643493cdac83160af | |
parent | a2e7880841587374e86468f2c06ebaae5a1cd8d4 (diff) | |
download | maria-9ffa91892f70142a21a6a836b71a7450097669af.tar.gz |
wider and shorter political display
-rw-r--r-- | play.css | 40 | ||||
-rw-r--r-- | play.html | 13 |
2 files changed, 34 insertions, 19 deletions
@@ -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; @@ -121,14 +121,13 @@ <div class="pc_pile card_pile" id="placed_pragmatic"></div> <div class="pc_pile card_pile" id="placed_austria"></div> </div> - <div style="display:flex;flex-wrap:wrap;gap:18px;margin:18px;"> - <div id="pc_deck" class="card_pile"></div> - <div id="pc_show" style="display:flex;flex-wrap:wrap;gap:18px;"> - </div> + <div id="pc_deck" class="card_pile"></div> + <div id="pc_show"></div> + <div id="pd_deals"> + <div class="deal" id="subsidy_list"></div> + <div class="deal" id="active_deal_list"></div> + <div class="deal" id="proposed_deal_list"></div> </div> - <div class="deal" id="subsidy_list"></div> - <div class="deal" id="active_deal_list"></div> - <div class="deal" id="proposed_deal_list"></div> </div> </div> |