From: Ardis Lu Date: Sun, 23 Jul 2023 00:53:19 +0000 (-0700) Subject: Add confirmation dialog when overwriting work X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=712726d2eb020c31782c1a4d0a326dc4584f52e8;p=4-byte-gen Add confirmation dialog when overwriting work --- diff --git a/index.html b/index.html index e15b927..88fe2b6 100644 --- a/index.html +++ b/index.html @@ -192,6 +192,48 @@ text-align: center; } + /* Dialog styling */ + + dialog { + inline-size: min(100dvi, 450px); + inset-inline-start: 50dvi; + inset-block-start: 50dvb; + transform: translate(-50%, -50%); + background: inherit; + padding: 16px; + border-radius: 8px; + border: 1px solid hsl(216deg 50% 50%); + } + + dialog>p { + margin-block: 16px; + } + + dialog>form { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: 8px; + } + + dialog>form>div { + flex-basis: 100%; + display: flex; + align-items: center; + gap: 8px; + } + + input[type=checkbox] { + inline-size: 1rem; + block-size: 1rem; + } + + #cancel { + border: 1px solid hsl(216deg 50% 50%); + background: hsl(216deg 5% 85%); + color: hsl(216deg 80% 5%); + } + /* This is a desktop-first tool. Below is the alternate view for small screens. */ @media (max-width: 900px) { main { @@ -275,6 +317,19 @@ + +

Parse new functions

+

All existing optimized names will be cleared. Continue?

+
+
+ + +
+ + +
+
+