From 712726d2eb020c31782c1a4d0a326dc4584f52e8 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 22 Jul 2023 17:53:19 -0700 Subject: [PATCH] Add confirmation dialog when overwriting work --- index.html | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 71 insertions(+), 5 deletions(-) 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?

+
+
+ + +
+ + +
+
+