From 83136c4a38879a4e2a6ca1a9361f34d472d2556e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 24 Nov 2023 14:26:42 +0100 Subject: Tweak button display. --- images/button1.png | Bin 0 -> 14595 bytes images/button2.png | Bin 0 -> 10556 bytes images/button3.png | Bin 0 -> 12743 bytes images/button4.png | Bin 0 -> 8200 bytes images/button5.png | Bin 0 -> 8269 bytes images/button6.png | Bin 0 -> 8232 bytes play.html | 50 ++++++++++++++++++++++++++++---------------------- play.js | 4 ++-- 8 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 images/button1.png create mode 100644 images/button2.png create mode 100644 images/button3.png create mode 100644 images/button4.png create mode 100644 images/button5.png create mode 100644 images/button6.png diff --git a/images/button1.png b/images/button1.png new file mode 100644 index 0000000..415d540 Binary files /dev/null and b/images/button1.png differ diff --git a/images/button2.png b/images/button2.png new file mode 100644 index 0000000..293e768 Binary files /dev/null and b/images/button2.png differ diff --git a/images/button3.png b/images/button3.png new file mode 100644 index 0000000..345d758 Binary files /dev/null and b/images/button3.png differ diff --git a/images/button4.png b/images/button4.png new file mode 100644 index 0000000..b395a1c Binary files /dev/null and b/images/button4.png differ diff --git a/images/button5.png b/images/button5.png new file mode 100644 index 0000000..ca7b0bc Binary files /dev/null and b/images/button5.png differ diff --git a/images/button6.png b/images/button6.png new file mode 100644 index 0000000..43aee8a Binary files /dev/null and b/images/button6.png differ diff --git a/play.html b/play.html index ddf77e4..57517ee 100644 --- a/play.html +++ b/play.html @@ -29,15 +29,12 @@ main { #role_Suffragist .role_name { background-color: var(--suf-85); } #role_Opposition .role_name { background-color: var(--opp-85); } -.role.active span { text-decoration: underline; } +.role.active .role_name span { text-decoration: underline; } + +.role_vp { float: right; height: 24px; color: #000c; } body.Suffragist header.your_turn { background-color: var(--suf-75); } body.Opposition header.your_turn { background-color: var(--opp-75); } -.role_info { - padding: 3px 18px; - background-color: gainsboro; - white-space: pre-wrap; -} #log { background-color: whitesmoke; } #log .h1, #log .h2 { @@ -357,22 +354,31 @@ div.button_box { flex-direction: column; flex-wrap: wrap; justify-content: start; - gap: 4px; + gap: 0px; } -.button { - width: 40px; - height: 40px; - background-size: 40px 40px; - filter: drop-shadow(0px 1px 2px #0004); +div.button_box .button { margin: 0 0 -10px 0; } +div.button_box.h .button { margin: 0 0 0 -10px; } + +div.button_box.h { + flex-direction: row; +} + +div.button_box .button { + width: 38px; + height: 38px; + background-size: 100%; + border-radius: 50%; + border: 1px solid #0008; + box-shadow: 0 1px 4px #0004; } -.button_1{background-image:url(images/badge1.png)} -.button_2{background-image:url(images/badge2.png)} -.button_3{background-image:url(images/badge3.png)} -.button_4{background-image:url(images/badge4.png)} -.button_5{background-image:url(images/badge5.png)} -.button_6{background-image:url(images/badge6.png)} +.button_1{background-image:url(images/button1.png)} +.button_2{background-image:url(images/button2.png)} +.button_3{background-image:url(images/button3.png)} +.button_4{background-image:url(images/button4.png)} +.button_5{background-image:url(images/button5.png)} +.button_6{background-image:url(images/button6.png)} .card { background-size: cover; @@ -581,17 +587,17 @@ div.button_box {
+
Suffragist
-
-
0 buttons, 0 cards in hand
+
Opposition
-
-
0 buttons, 0 cards in hand
@@ -1057,9 +1063,9 @@ c5 3 13 7 17 8 8 2 9 3 11 12 1 5 5 12 8 16 5 8 5 8 3 22 l-3 14 -30 -1 c-35
-
+
-
+
diff --git a/play.js b/play.js index 98be503..482a2c4 100644 --- a/play.js +++ b/play.js @@ -604,11 +604,11 @@ const pluralize = (count, noun, suffix = 's') => `${count} ${noun}${count !== 1 ? suffix : ''}`; function support_info() { - return `${pluralize(view.support_buttons, 'button')}, ${pluralize(view.support_hand, 'card')} in hand` + return `${view.support_buttons}\u{2b50} ${view.support_hand}\u{1f0cf}` } function opposition_info() { - return `${pluralize(view.opposition_buttons, 'button')}, ${pluralize(view.opposition_hand, 'card')} in hand` + return `${view.opposition_buttons}\u{2b55} ${view.opposition_hand}\u{1f3b4}` } function layout_cubes(list, xorig, yorig) { -- cgit v1.2.3