From 03a7f47a67d08abbf656c53c2992a2f3e85d9ce6 Mon Sep 17 00:00:00 2001 From: FR1234 Date: Sat, 20 Apr 2024 16:13:48 +0200 Subject: [PATCH] week ding update --- index.html | 2 +- week.html | 230 ++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 202 insertions(+), 30 deletions(-) diff --git a/index.html b/index.html index 8f8cd56..b78c06a 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ diff --git a/week.html b/week.html index 4be599e..f1b5d2a 100644 --- a/week.html +++ b/week.html @@ -18,13 +18,14 @@ color: #000000; /* Default text color */ } + dialog { + background-color: white; + } + #inputForm { max-width: 400px; margin: 0 auto; - background-color: #f9f9f9; - padding: 20px; border-radius: 8px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { @@ -33,11 +34,6 @@ } input[type="text"] { - width: 100%; - padding: 10px; - margin-bottom: 20px; - border: 0px; - border-radius: 4px; box-sizing: border-box; font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", @@ -115,16 +111,6 @@ text-align: center; } - dialog { - padding: 0; - background: none; - border: 0; - pointer-events: none; - opacity: 0; - transition: opacity 0.5s; - display: block; - } - dialog[open] { opacity: 1; pointer-events: inherit; @@ -149,6 +135,48 @@ display: none; } + .btn { + background-color: #f1f1f1; + border: 0; + padding: 0.5rem 1rem; + line-height: 1.5; + border-radius: 4rem; + transition: all 0.33s ease-in-out 0s, top 0.33s ease-out 0.33s; + text-decoration: none !important; + } + + #previousDay, + #nextDay, + #loadSchedule, + #settingsButton { + transition: all 0.33s ease-in-out 0s, top 0.33s ease-out 0.33s; + } + + button:not(:disabled) { + cursor: pointer; + } + + .btn:hover { + text-decoration: none; + background-color: #f1f1f1; + } + + button:not(:disabled):not(.disabled) { + cursor: pointer; + } + + .btn:hover, + .btn:active { + background-color: #f1f1f1; + text-decoration: none; + } + + #icon, + .icon { + fill: black !important; + vertical-align: middle; + } + /* Dark Mode Styles */ @media (prefers-color-scheme: dark) { body, @@ -158,13 +186,38 @@ color: #ffffff; } - #inputForm { - background-color: #2a2a2a; - color: #ffffff; + .btn { + color: white !important; + background-color: #363636 !important; + text-shadow: none !important; + } + + .btn:hover { + color: white !important; + background-color: #444 !important; + } + + .btn:hover, + .btn:active, + #previousDay:hover, + #nextDay:hover, + #loadSchedule:hover, + #settingsButton:hover { + color: white !important; + background-color: #444 !important; + } + + #close:hover { + background-color: red !important; } - input[type="text"] { - background-color: #333333; + #icon, + .icon { + fill: white !important; + vertical-align: middle; + } + + #inputForm { color: #ffffff; } @@ -231,18 +284,110 @@

aria-label="Voer je schoolnaam en koppelcode in." style="border: 0; border-radius: 1rem" > - X + + + + +



@@ -251,15 +396,33 @@

type="text" id="authorizationCode" name="authorizationCode" + class="btn" required />

+ + +
+ CSS voorbeelden +
+

Laat klassennamen zien:

+
#className {display: initial;}
+
+
- +