From 9392bcadc98c123515e41b66901607bef6c5cf81 Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer
Date: Mon, 4 Mar 2024 10:12:12 +0100
Subject: feat: add admin role assignment
---
src/main/resources/static/style.css | 12 ++++++++++--
src/main/resources/templates/configs/userroles.html | 7 ++++---
2 files changed, 14 insertions(+), 5 deletions(-)
(limited to 'src/main/resources')
diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css
index 0dd5820..a746832 100644
--- a/src/main/resources/static/style.css
+++ b/src/main/resources/static/style.css
@@ -449,7 +449,7 @@ td.clipboard.clipped {
}
.btn.btn-red:hover, .btn.btn-red:active {
- background: darkred !important;
+ background: darkred;
}
.btn.btn-blue {
@@ -458,7 +458,7 @@ td.clipboard.clipped {
}
.btn.btn-blue:hover, .btn.btn-blue:active {
- background: darkslategray !important;
+ background: darkslategray;
}
.btn.btn-delete:before {
@@ -466,6 +466,14 @@ td.clipboard.clipped {
padding: .2rem;
}
+button:disabled,
+.btn:disabled {
+ background: slategray !important;
+ color: lightgray;
+ filter: none;
+ cursor: default;
+}
+
input.inline {
border: none;
font-size: 1.1rem;
diff --git a/src/main/resources/templates/configs/userroles.html b/src/main/resources/templates/configs/userroles.html
index 23cc5f2..f5e4586 100644
--- a/src/main/resources/templates/configs/userroles.html
+++ b/src/main/resources/templates/configs/userroles.html
@@ -21,16 +21,17 @@
|
-
+
|
--
cgit v1.2.3
From 9eb65788e152c8c34eb2ed0d54ca2f9582e7511b Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer
Date: Mon, 4 Mar 2024 12:50:07 +0100
Subject: style: change login/logout style
---
src/main/resources/static/style.css | 63 +++++++++++++++++++++++++----
src/main/resources/templates/fragments.html | 24 ++++++-----
2 files changed, 70 insertions(+), 17 deletions(-)
(limited to 'src/main/resources')
diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css
index a746832..0844e0b 100644
--- a/src/main/resources/static/style.css
+++ b/src/main/resources/static/style.css
@@ -40,7 +40,7 @@ body {
nav {
margin: 0 auto;
- padding: 2em 0;
+ padding: 1em 0;
line-height: 1.5rem;
max-width: 1140px;
@@ -48,18 +48,18 @@ nav {
border-bottom: 1px solid var(--table-border);
}
-nav > a.nav-home {
+nav a.nav-home {
float: left;
color: var(--text);
line-height: 1.5em;
text-decoration: none;
- font-size: 1.5em;
+ font-size: 2em;
font-weight: bold;
}
-nav > a.nav-home > img {
+nav a.nav-home > img {
width: 1.5em;
vertical-align: middle;
}
@@ -80,6 +80,57 @@ nav > ul > li.login {
margin: 0 0 0 1em;
padding: 0 0 0 2em;
border-left: 1px solid var(--table-border);
+ line-height: 3.5em;
+}
+
+nav > ul > li.login a {
+ text-decoration: none;
+ text-transform: none;
+ padding: 1em;
+}
+
+nav .login .user-name {
+ font-weight: bold;
+}
+
+nav > ul > li.login > span {
+ display: inline-block;
+ margin: 0 .5em;
+}
+
+nav > ul > li.login .user-icon {
+ flex-direction: column;
+ display: inline flex;
+ vertical-align: middle;
+ inline-size: 4em;
+}
+
+nav > ul > li.login .user-icon img {
+ margin: 0 0 -1em 0;
+ width: 80%;
+ align-self: center;
+}
+
+nav > ul > li.login .user-icon span {
+ padding: 0 .6em;
+ color: white;
+ font-size: .8em;
+ font-weight: bold;
+ border-radius: 4px;
+ line-height: normal;
+ text-align: center;
+}
+
+nav > ul > li.login .user-icon span.guest {
+ background: darkslategray;
+}
+
+nav > ul > li.login .user-icon span.user {
+ background: darkgreen;
+}
+
+nav > ul > li.login .user-icon span.admin {
+ background: darkred;
}
nav li a {
@@ -89,10 +140,6 @@ nav li a {
font-weight: 700;
}
-nav li.login a {
- color: var(--bg-red);
-}
-
nav li a:hover {
text-decoration: underline;
}
diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html
index bfa36a2..467a483 100644
--- a/src/main/resources/templates/fragments.html
+++ b/src/main/resources/templates/fragments.html
@@ -7,10 +7,12 @@