From 73da43e5b98ef7a88c21abe806539fc444410d8a Mon Sep 17 00:00:00 2001 From: Per Guth Date: Sun, 22 Dec 2024 07:59:48 +0100 Subject: [PATCH] Update index.html --- index.html | 124 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 52 deletions(-) diff --git a/index.html b/index.html index 6d73db7..259db27 100755 --- a/index.html +++ b/index.html @@ -13,9 +13,7 @@ margin-top: 0px; line-height: 13px; } - pre { - font-family: monospace; - } + pre { font-family: monospace; } div { float: left; width: 255px; @@ -28,7 +26,6 @@ } ul { font-size: 12px; - margin-top: 20px; margin: 0; } ul > li { @@ -40,17 +37,13 @@ border-top: 1px black solid; margin: 15px 0; } - .red { - color: red; - } + .red { color: red; } a { font-weight: bold; text-decoration: none; margin: 0; } - a:hover { - color: red; - } + a:hover { color: red; } #foot { font-size: 9px; text-align: center; @@ -66,76 +59,95 @@ font-weight: normal; } - /* Modal styles */ + /* Improved Modal styles */ .modal { - display: none; /* Ensure modal is hidden by default */ + visibility: hidden; + opacity: 0; position: fixed; top: 0; left: 0; width: 100%; height: 100%; - background-color: rgba(0, 0, 0, 0.7); + background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; z-index: 1000; + transition: visibility 0s linear 0.2s, opacity 0.2s; + } + + .modal.visible { + visibility: visible; + opacity: 1; + transition-delay: 0s; } .modal-content { + background-color: white; + border: 1px solid black; + padding: 15px; + width: 255px; /* Match your site's width */ position: relative; - background-color: #fff; - box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); - border-radius: 8px; - padding: 20px; - width: 350px; - text-align: center; + transform: translateY(-20px); + transition: transform 0.2s; + } + + .modal.visible .modal-content { + transform: translateY(0); + } + + .modal-header { + margin-bottom: 15px; + padding-bottom: 10px; + border-bottom: 1px solid black; + } + + .warning-icon { + font-weight: bold; + margin-right: 5px; } .close { position: absolute; right: 15px; - top: 10px; - font-size: 18px; - color: #999; + top: 12px; cursor: pointer; - transition: color 0.3s; + font-weight: bold; } .close:hover { - color: #333; + color: red; } - .modal-content p { - margin: 10px 0; - font-size: 14px; - color: #444; + .modal-body { + margin-bottom: 15px; + line-height: 1.4; } .modal-buttons { - margin-top: 20px; + display: flex; + flex-direction: column; + gap: 8px; } .btn { - border: 1px solid #333; - background: #fff; - padding: 10px 20px; - border-radius: 5px; - font-size: 12px; - font-weight: bold; - color: #333; + width: 100%; + padding: 6px 12px; + background: white; + border: 1px solid black; cursor: pointer; - transition: background 0.3s, color 0.3s; - margin-top: 10px; /* Add spacing between buttons */ + font-family: inherit; + font-size: 12px; + text-align: center; } .btn:hover { - background: #333; - color: #fff; + background-color: #f0f0f0; } - .warning-icon { - font-size: 16px; - margin-right: 5px; + .btn.danger:hover { + color: red; + border-color: red; } @@ -169,25 +181,33 @@