From b2016df8527cd53e6065f2d12636ff76e9a7c3b0 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 4 Mar 2024 13:17:57 +0100 Subject: [PATCH] style: fix some style issued --- src/main/resources/static/style.css | 25 +++++++++---------- src/main/resources/static/user.svg | 11 ++++++++ .../resources/templates/configs/tokens.html | 2 +- src/main/resources/templates/fragments.html | 2 +- src/main/resources/templates/login.html | 3 ++- 5 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 src/main/resources/static/user.svg diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 0844e0b..b4fee3e 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -2,6 +2,8 @@ --text: #333; --table-border: rgba(16, 24, 40, .1); + --dark: brightness(.90); + --bg-blue: rgb(0, 74, 157); --bg-blue-op: rgba(0, 74, 157, .35); @@ -249,6 +251,12 @@ form.samplecode-input input:focus-visible { background: none; } +.login-form img { + margin: 0 auto; + width: 4em; + display: block; +} + .userrole-form form { margin: 0; padding: 0; @@ -469,7 +477,6 @@ td.clipboard.clipped { padding: 4px 8px; line-height: 1.2rem; - vertical-align: middle; border: 0 solid transparent; border-radius: 3px; @@ -481,33 +488,25 @@ td.clipboard.clipped { cursor: pointer; } +.btn:active, .btn:hover { - filter: drop-shadow(1px 2px 2px gray); + filter: drop-shadow(1px 1px 1px gray) var(--dark); } .btn:active { - filter: drop-shadow(1px 1px 2px gray); translate: 0 1px; } .btn.btn-red { - background: red; + background: var(--bg-red); color: white; } -.btn.btn-red:hover, .btn.btn-red:active { - background: darkred; -} - .btn.btn-blue { - background: slategray; + background: var(--bg-blue); color: white; } -.btn.btn-blue:hover, .btn.btn-blue:active { - background: darkslategray; -} - .btn.btn-delete:before { content: '\1F5D1'; padding: .2rem; diff --git a/src/main/resources/static/user.svg b/src/main/resources/static/user.svg new file mode 100644 index 0000000..506d632 --- /dev/null +++ b/src/main/resources/static/user.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/main/resources/templates/configs/tokens.html b/src/main/resources/templates/configs/tokens.html index e707fbf..15c70f0 100644 --- a/src/main/resources/templates/configs/tokens.html +++ b/src/main/resources/templates/configs/tokens.html @@ -32,7 +32,7 @@
- +
diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html index 467a483..b1ce737 100644 --- a/src/main/resources/templates/fragments.html +++ b/src/main/resources/templates/fragments.html @@ -25,7 +25,7 @@
  • - User-Image + User-Image Admin User Guest diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 75a3681..e07bb53 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -9,6 +9,7 @@