From 6622b442029a97372266f1e209ad5f307df39f73 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Mon, 5 Aug 2024 15:18:53 +0200 Subject: [PATCH] html work Signed-off-by: Stephan Richter --- .../src/main/resources/de/login.html | 11 ++++-- .../src/main/resources/en/login.html | 11 ++++-- .../src/main/resources/en/scripts/clients.js | 2 +- .../src/main/resources/en/style.css | 39 ++++++++++++++++--- 4 files changed, 49 insertions(+), 14 deletions(-) diff --git a/de.srsoftware.oidc.web/src/main/resources/de/login.html b/de.srsoftware.oidc.web/src/main/resources/de/login.html index a6cd03c..6cd9eac 100644 --- a/de.srsoftware.oidc.web/src/main/resources/de/login.html +++ b/de.srsoftware.oidc.web/src/main/resources/de/login.html @@ -8,17 +8,17 @@
-

Anmeldung

+

SRSoftware Light OIDC

- Zugangsdaten + Anmeldung - + - + @@ -31,5 +31,8 @@
Benutzername
Passwort
+ \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/login.html b/de.srsoftware.oidc.web/src/main/resources/en/login.html index 49c9a21..3edecb0 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/login.html +++ b/de.srsoftware.oidc.web/src/main/resources/en/login.html @@ -8,17 +8,17 @@
-

Login

+

SRSoftware Light OIDC

- User credentials + Login - + - + @@ -31,5 +31,8 @@
User name
Password
+ \ No newline at end of file diff --git a/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js b/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js index fc3bfd8..0543b77 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js +++ b/de.srsoftware.oidc.web/src/main/resources/en/scripts/clients.js @@ -8,7 +8,7 @@ async function handleClients(response){ for (let id in clients){ var row = document.createElement("tr"); var client = clients[id]; - row.innerHTML = ""+client.name+"\n"+id+"\n"+client.redirect_uris.join("
")+'\n'; + row.innerHTML = ""+client.name+"\n"+id+"\n"+client.redirect_uris.join("
")+'\n'; bottom.parentNode.insertBefore(row,bottom); } } diff --git a/de.srsoftware.oidc.web/src/main/resources/en/style.css b/de.srsoftware.oidc.web/src/main/resources/en/style.css index 441e651..9c4cb45 100644 --- a/de.srsoftware.oidc.web/src/main/resources/en/style.css +++ b/de.srsoftware.oidc.web/src/main/resources/en/style.css @@ -3,6 +3,8 @@ body { color: white; font-family: "Roboto", "Helvetica", "Arial", sans-serif; text-align: center; + margin: 0; + padding: 0; } a{ @@ -19,7 +21,7 @@ a{ } button { - background: royalblue; + background: rgb(25, 118, 210); border: none; border-radius: 7px; padding: 10px; @@ -27,6 +29,11 @@ button { margin: 2px; } +#login button{ + width: 100%; + margin: 0; +} + .danger{ background: crimson; } @@ -39,17 +46,25 @@ body fieldset { width: 600px; } + +input:-webkit-autofill{ + filter: none; + box-shadow: 0 0 0 100px rgb(38, 103, 152) inset; +} input, textarea{ - border: none; - border-radius: 3px; - background-color: rgb(38, 103, 152); + border: 1px solid gray; + border-radius: 5px; + background: rgb(48,48,48); padding: 7px; color: white; + caret-color: white; margin: 2px; + -webkit-text-fill-color: white; } input:disabled{ - color: indigo; + color: gray; + -webkit-text-fill-color: gray; } fieldset th, @@ -72,4 +87,18 @@ form .centered th{ .error{ background-color: red; +} + +legend { + position: relative; + top: 3px; + border: 1px solid white; + border-radius: 3px; + padding: 3px 3px 0 3px; +} + +#ad { + position: fixed; + bottom: 0; + width: 100%; } \ No newline at end of file