From d8009f84adfcfae9485b655eb4cf3eb448516e6f Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 2 Oct 2024 03:12:45 +0200 Subject: [PATCH] feat: burg group editor - form --- index.css | 16 +++++- index.html | 53 +++++++++++-------- modules/burgs-generator.js | 25 +++++---- modules/ui/burg-editor.js | 2 +- modules/ui/burg-group-editor.js | 94 +++++++++++++++++++++++++++------ modules/ui/military-overview.js | 2 +- utils/stringUtils.js | 15 ++++++ versioning.js | 2 +- 8 files changed, 156 insertions(+), 53 deletions(-) diff --git a/index.css b/index.css index a5fc9b2b..4b4960f2 100644 --- a/index.css +++ b/index.css @@ -19,6 +19,11 @@ font { pointer-events: none; } +form input:invalid { + outline: 1px solid #ed4337; + outline-offset: 1px; +} + input, select, button { @@ -53,6 +58,7 @@ input:read-only { input[type="radio"] { vertical-align: bottom; cursor: pointer; + accent-color: var(--header); } textarea { @@ -1889,7 +1895,8 @@ div.editorLine { width: 5em; } -#militaryOptionsTable button { +#militaryOptionsTable button, +#burgGroupsBody button { width: 100%; } @@ -1922,7 +1929,12 @@ ul.share-buttons img { width: 2em; } -input[type="checkbox"] { +input[type="checkbox"].native { + accent-color: var(--header); + cursor: pointer; +} + +input[type="checkbox"]:not(.native) { display: none; } diff --git a/index.html b/index.html index df4904de..8b22cef1 100644 --- a/index.html +++ b/index.html @@ -3364,11 +3364,7 @@
Group:
- +
@@ -5344,28 +5340,43 @@