Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-29 10:29:54 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-29 10:29:54 -0700
commit63fb4139d5ac5207b057bce46c4288df982bbeb1 (patch)
tree80b2b0c839d94e3af04cc9f2df6c45c169f600d2 /public
parente746cfb216836e26a6c060558278d724bd3ed5d5 (diff)
Add ability to deactivate/reactivate soldier records; make hex clearing work with right-click and add a confirmation modal dialog
Diffstat (limited to 'public')
-rw-r--r--public/assets/css/style.css1
-rw-r--r--public/index.html33
2 files changed, 23 insertions, 11 deletions
diff --git a/public/assets/css/style.css b/public/assets/css/style.css
index f2eef7b..4ff79cf 100644
--- a/public/assets/css/style.css
+++ b/public/assets/css/style.css
@@ -132,6 +132,7 @@ button.set-firing-arc img {
position: relative;
white-space: nowrap;
background-color: white;
+ transition: transform 0.25s;
}
.soldier-record span[slot] {
diff --git a/public/index.html b/public/index.html
index d4a9733..870c79e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -101,17 +101,17 @@
<p class="grenades">
<span>Hand Grenades</span>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
- <circle cx="0" cy="0" r="5" />
- </svg></label>
+ <circle cx="0" cy="0" r="5" />
+ </svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
- <circle cx="0" cy="0" r="5" />
- </svg></label>
+ <circle cx="0" cy="0" r="5" />
+ </svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
- <circle cx="0" cy="0" r="5" />
- </svg></label>
+ <circle cx="0" cy="0" r="5" />
+ </svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
- <circle cx="0" cy="0" r="5" />
- </svg></label>
+ <circle cx="0" cy="0" r="5" />
+ </svg></label>
</p>
</template>
@@ -361,9 +361,20 @@
<dialog id="clear-hex">
<p>Clear hex contents?</p>
<div>
- <form>
- <button value="cancel" formmethod="dialog">Cancel</button>
- <button value="confirm" formmethod="dialog">Confirm</button>
+ <form style="display: flex; flex-direction: row;">
+ <div style="width: 50%;">
+ <button
+ style="display: block; margin-right: auto;"
+ value="cancel"
+ formmethod="dialog"
+ >Cancel</button>
+ </div>
+ <div style="width: 50%;">
+ <button
+ style="display: block; margin-left: auto;"
+ value="confirm"
+ >Confirm</button>
+ </div>
</form>
</div>
</dialog>