From 9c0c5b667c4a8245e948875e7f07e085bf1c2e8d Mon Sep 17 00:00:00 2001 From: q8gazy Date: Wed, 12 Feb 2025 08:51:27 +0300 Subject: [PATCH 1/4] styling the checkboxes --- src/client/HostLobbyModal.ts | 100 +++++++++++++++++++------- src/client/SinglePlayerModal.ts | 124 +++++++++++++++++++------------- 2 files changed, 152 insertions(+), 72 deletions(-) diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index 784e19562..6ed8f9ae5 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -198,7 +198,35 @@ export class HostLobbyModal extends LitElement { align-items: center; justify-content: center; } + .option-card input[type="checkbox"] { + display: none; + } + label.option-card:hover { + transform: none; + } + + .checkbox-icon { + width: 16px; + height: 16px; + border: 2px solid #aaa; + border-radius: 6px; + margin: 4px; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s ease-in-out; + } + + .option-card.selected .checkbox-icon { + border-color: #4a9eff; + background: #4a9eff; + } + + .option-card.selected .checkbox-icon::after { + content: "✓"; + color: white; + } /* HostLobbyModal css */ .clipboard-icon { display: flex; @@ -358,6 +386,54 @@ export class HostLobbyModal extends LitElement { + +
+
Options
+
+ + + + + +
+
+
@@ -371,30 +447,6 @@ export class HostLobbyModal extends LitElement { )}
-
- - -
-
- - -
-
- - -