ui: simplify helper copy and center page loading feedback
This commit is contained in:
@@ -12,7 +12,6 @@ body { margin: 0; min-height: 100dvh; display: grid; place-items: center; paddin
|
||||
.admin-login { width: 100%; max-width: 370px; padding: 24px; background: #fff; border: 1px solid #cbd1d8; border-radius: 5px; }
|
||||
h1 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
|
||||
p { margin: 0; line-height: 1.65; overflow-wrap: anywhere; }
|
||||
#auth-description { color: #55616e; margin-bottom: 20px; }
|
||||
form { display: flex; flex-direction: column; gap: 8px; }
|
||||
input, button { font: inherit; min-width: 0; min-height: 36px; padding: 7px 10px; border: 1px solid #afb8c2; border-radius: 3px; }
|
||||
input { width: 100%; background: #fff; color: inherit; caret-color: #245d9b; }
|
||||
@@ -20,7 +19,10 @@ button { margin-top: 8px; background: #245d9b; color: #fff; border-color: #245d9
|
||||
button:hover { background: #1c4d83; }
|
||||
button:disabled { cursor: default; opacity: .58; }
|
||||
input:focus-visible, button:focus-visible { outline: 2px solid #245d9b; outline-offset: 2px; }
|
||||
#auth-status { color: #55616e; }
|
||||
.loading-state { display: grid; place-items: center; min-height: 64px; }
|
||||
.loading-spinner { display: block; width: 32px; height: 32px; border: 3px solid #cbd1d8; border-top-color: #245d9b; border-radius: 50%; animation: loading-spin .8s linear infinite; box-shadow: 0 0 0 4px #ffffffb3; }
|
||||
@keyframes loading-spin { to { transform: rotate(360deg); } }
|
||||
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
|
||||
#auth-error { color: #99251e; white-space: pre-wrap; }
|
||||
noscript { display: block; margin-top: 16px; line-height: 1.65; }
|
||||
::selection { background: #c5dbf5; color: #142b46; }
|
||||
|
||||
Reference in New Issue
Block a user