All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m41s
- Implement storage backend deletion, which automatically resets default storage settings and user-specific overrides when a backend is removed. - Add unit tests covering the delete action and its cleanup side effects. - Improve admin UI responsiveness, fixing table scrolling, flex wrapping, and text truncation for long storage backend names. - Update security documentation to clarify trusted proxy configurations and explain how trusted proxies are protected from automatic bans.
631 lines
12 KiB
CSS
631 lines
12 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--background: #0b0b16;
|
|
--foreground: #f5f3ff;
|
|
--card: #15132b;
|
|
--card-foreground: #f5f3ff;
|
|
--muted: #1e1b3a;
|
|
--muted-foreground: #a8a4cf;
|
|
--accent: #2a2550;
|
|
--accent-foreground: #f5f3ff;
|
|
--border: rgba(168, 150, 255, 0.16);
|
|
--input: rgba(168, 150, 255, 0.22);
|
|
--primary: #8b5cf6;
|
|
--primary-foreground: #ffffff;
|
|
--primary-hover: #7c3aed;
|
|
--ring: #a78bfa;
|
|
--success: #5eead4;
|
|
--danger: #fb7185;
|
|
--radius: 0.875rem;
|
|
--shadow: 0 24px 70px rgba(8, 4, 32, 0.6);
|
|
--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--header-bg: rgba(11, 11, 22, 0.68);
|
|
--body-bg:
|
|
radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.18), transparent 34rem),
|
|
linear-gradient(180deg, #0b0b16 0%, #0a0918 100%);
|
|
--surface-1: rgba(139, 92, 246, 0.07);
|
|
--surface-1-hover: rgba(139, 92, 246, 0.14);
|
|
--surface-2: rgba(139, 92, 246, 0.05);
|
|
}
|
|
|
|
:root[data-theme="classic"] {
|
|
color-scheme: dark;
|
|
--background: #09090b;
|
|
--foreground: #fafafa;
|
|
--card: #18181b;
|
|
--card-foreground: #fafafa;
|
|
--muted: #27272a;
|
|
--muted-foreground: #a1a1aa;
|
|
--accent: #27272a;
|
|
--accent-foreground: #fafafa;
|
|
--border: rgba(255, 255, 255, 0.1);
|
|
--input: rgba(255, 255, 255, 0.15);
|
|
--primary: #f4f4f5;
|
|
--primary-foreground: #18181b;
|
|
--primary-hover: #e4e4e7;
|
|
--ring: #71717a;
|
|
--success: #86efac;
|
|
--danger: #fca5a5;
|
|
--radius: 0.625rem;
|
|
--shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
|
|
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--header-bg: rgba(9, 9, 11, 0.84);
|
|
--body-bg:
|
|
radial-gradient(circle at 50% -10%, rgba(82, 82, 91, 0.32), transparent 34rem),
|
|
linear-gradient(180deg, #09090b 0%, #0f0f12 100%);
|
|
--surface-1: rgba(39, 39, 42, 0.42);
|
|
--surface-1-hover: rgba(39, 39, 42, 0.68);
|
|
--surface-2: rgba(39, 39, 42, 0.28);
|
|
}
|
|
|
|
:root[data-theme="gruvbox"] {
|
|
color-scheme: dark;
|
|
--background: #1d2021;
|
|
--foreground: #ebdbb2;
|
|
--card: #282828;
|
|
--card-foreground: #ebdbb2;
|
|
--muted: #32302f;
|
|
--muted-foreground: #bdae93;
|
|
--accent: #3c3836;
|
|
--accent-foreground: #fbf1c7;
|
|
--border: rgba(235, 219, 178, 0.18);
|
|
--input: rgba(235, 219, 178, 0.24);
|
|
--primary: #d79921;
|
|
--primary-foreground: #1d2021;
|
|
--primary-hover: #fabd2f;
|
|
--ring: #fe8019;
|
|
--success: #b8bb26;
|
|
--danger: #fb4934;
|
|
--radius: 0.65rem;
|
|
--shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
|
|
--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--header-bg: rgba(29, 32, 33, 0.86);
|
|
--body-bg:
|
|
radial-gradient(circle at 20% -8%, rgba(215, 153, 33, 0.2), transparent 28rem),
|
|
radial-gradient(circle at 85% 8%, rgba(184, 187, 38, 0.12), transparent 26rem),
|
|
linear-gradient(180deg, #1d2021 0%, #181a1b 100%);
|
|
--surface-1: rgba(235, 219, 178, 0.06);
|
|
--surface-1-hover: rgba(235, 219, 178, 0.11);
|
|
--surface-2: rgba(251, 241, 199, 0.04);
|
|
}
|
|
|
|
:root[data-theme="cyberpunk"] {
|
|
color-scheme: dark;
|
|
--background: #08070d;
|
|
--foreground: #fff36f;
|
|
--card: #16131f;
|
|
--card-foreground: #fff36f;
|
|
--muted: #251d34;
|
|
--muted-foreground: #9bfaff;
|
|
--accent: #332246;
|
|
--accent-foreground: #fff36f;
|
|
--border: rgba(255, 242, 0, 0.24);
|
|
--input: rgba(0, 240, 255, 0.34);
|
|
--primary: #fff200;
|
|
--primary-foreground: #08070d;
|
|
--primary-hover: #00f0ff;
|
|
--ring: #ff2a6d;
|
|
--success: #00ff9f;
|
|
--danger: #ff2a6d;
|
|
--radius: 0.35rem;
|
|
--shadow: 0 24px 70px rgba(255, 42, 109, 0.16), 0 0 34px rgba(0, 240, 255, 0.12);
|
|
--font-sans: "Inter", "Rajdhani", "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--header-bg: rgba(8, 7, 13, 0.86);
|
|
--body-bg:
|
|
radial-gradient(circle at 10% -10%, rgba(255, 242, 0, 0.2), transparent 26rem),
|
|
radial-gradient(circle at 90% 8%, rgba(0, 240, 255, 0.18), transparent 26rem),
|
|
radial-gradient(circle at 45% 110%, rgba(255, 42, 109, 0.18), transparent 30rem),
|
|
linear-gradient(180deg, #08070d 0%, #120b1a 100%);
|
|
--surface-1: rgba(0, 240, 255, 0.07);
|
|
--surface-1-hover: rgba(255, 242, 0, 0.12);
|
|
--surface-2: rgba(255, 42, 109, 0.06);
|
|
}
|
|
|
|
:root[data-theme="retro"] {
|
|
color-scheme: light;
|
|
--background: #ffffff;
|
|
--foreground: #000000;
|
|
--card: #c0c0c0;
|
|
--card-foreground: #000000;
|
|
--muted: #c0c0c0;
|
|
--muted-foreground: #404040;
|
|
--accent: #000078;
|
|
--accent-foreground: #ffffff;
|
|
--border: #000000;
|
|
--input: #000000;
|
|
--primary: #000078;
|
|
--primary-foreground: #ffffff;
|
|
--primary-hover: #0f80cd;
|
|
--ring: #000078;
|
|
--success: #008000;
|
|
--danger: #c00000;
|
|
--radius: 0rem;
|
|
--shadow:
|
|
inset -1px -1px 0 #404040,
|
|
inset 1px 1px 0 #ffffff,
|
|
inset -2px -2px 0 #808080,
|
|
inset 2px 2px 0 #dfdfdf;
|
|
--font-sans: "PixeloidSans", "PixelOperator", "Microsoft Sans Serif", Tahoma, sans-serif;
|
|
--header-bg: #c0c0c0;
|
|
--body-bg: #000000;
|
|
--surface-1: #ffffff;
|
|
--surface-1-hover: #fffff0;
|
|
--surface-2: #c0c0c0;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-family: var(--font-sans);
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
overflow-x: clip;
|
|
}
|
|
|
|
body {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--body-bg);
|
|
overflow-x: clip;
|
|
}
|
|
|
|
@supports not (overflow-x: clip) {
|
|
html,
|
|
body {
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
img,
|
|
video,
|
|
canvas,
|
|
iframe {
|
|
max-width: 100%;
|
|
}
|
|
|
|
svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--ring);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: 1rem;
|
|
top: -4rem;
|
|
z-index: 10;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--radius);
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
}
|
|
|
|
.skip-link:focus {
|
|
top: 1rem;
|
|
}
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--header-bg);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.nav {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
min-height: 3.5rem;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.brand,
|
|
.nav-links,
|
|
.footer-links,
|
|
.inline-form {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.inline-form {
|
|
margin: 0;
|
|
}
|
|
|
|
.brand {
|
|
min-width: 0;
|
|
font-weight: 650;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand > span:last-child {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.brand-mark {
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
font-size: 0.85rem;
|
|
font-weight: 800;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
}
|
|
|
|
|
|
h1 {
|
|
margin: 0;
|
|
color: var(--foreground);
|
|
font-size: 2rem;
|
|
line-height: 1.12;
|
|
font-weight: 650;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.file-name {
|
|
display: block;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hero-copy p,
|
|
.download-subtitle,
|
|
.panel-header p {
|
|
margin: 0 0 1rem 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.card {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: color-mix(in srgb, var(--card) 94%, transparent);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.card-content {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.auth-view {
|
|
width: min(28rem, calc(100% - 2rem));
|
|
min-height: calc(100vh - 7.25rem);
|
|
margin: 0 auto;
|
|
padding: 3rem 0;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.auth-card {
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.kicker {
|
|
margin: 0 0 0.5rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.muted-copy,
|
|
.auth-alt {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.stack-form {
|
|
display: grid;
|
|
gap: 0.9rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.stack-form label,
|
|
.inline-controls label,
|
|
.collection-create label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.form-error {
|
|
margin: 0;
|
|
color: #fca5a5;
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.checkbox-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
}
|
|
|
|
.checkbox-field input {
|
|
width: 1rem;
|
|
min-height: 1rem;
|
|
}
|
|
|
|
.checkbox-field span {
|
|
margin: 0;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
label span {
|
|
display: block;
|
|
margin-bottom: 0.4rem;
|
|
color: var(--foreground);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea,
|
|
button {
|
|
font: inherit;
|
|
max-width: 100%;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 2.25rem;
|
|
border: 1px solid var(--input);
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
padding: 0.45rem 0.7rem;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
input::placeholder {
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
input:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-footer,
|
|
.result-header {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-footer p,
|
|
#result-meta {
|
|
margin: 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.button,
|
|
button {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
min-height: 2.25rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.45rem;
|
|
border: 1px solid transparent;
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
padding: 0.45rem 0.85rem;
|
|
color: var(--foreground);
|
|
background: transparent;
|
|
font: inherit;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button > span,
|
|
button > span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.button-primary {
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
}
|
|
|
|
.button-primary:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.button-outline {
|
|
border-color: var(--border);
|
|
background: var(--background);
|
|
}
|
|
|
|
.button-outline:hover,
|
|
.button-ghost:hover {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.button-danger {
|
|
border-color: rgba(248, 113, 113, 0.28);
|
|
background: rgba(127, 29, 29, 0.3);
|
|
color: #fecaca;
|
|
}
|
|
|
|
.button-danger:hover {
|
|
background: rgba(127, 29, 29, 0.55);
|
|
}
|
|
|
|
.button-wide {
|
|
width: 100%;
|
|
min-height: 2.75rem;
|
|
margin-top: 1.25rem;
|
|
}
|
|
|
|
code {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
pre {
|
|
overflow-x: auto;
|
|
margin: 0.8rem 0 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
background: var(--background);
|
|
padding: 0.9rem;
|
|
text-align: left;
|
|
}
|
|
|
|
pre code {
|
|
display: block;
|
|
margin: 0;
|
|
overflow: visible;
|
|
white-space: pre;
|
|
}
|
|
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
min-height: 1.5rem;
|
|
border-radius: 999px;
|
|
background: var(--muted);
|
|
color: var(--muted-foreground);
|
|
padding: 0.2rem 0.6rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.site-footer {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 1rem 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.theme-picker {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.theme-picker > span {
|
|
display: block;
|
|
margin: 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.theme-picker select {
|
|
width: auto;
|
|
min-height: 1.9rem;
|
|
padding: 0.2rem 0.55rem;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.footer-links a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.form-error {
|
|
margin: 1rem 0 0;
|
|
color: #fecaca;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.button-sm {
|
|
min-height: 1.85rem;
|
|
padding: 0.3rem 0.65rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Badge variants */
|
|
.badge-active {
|
|
background: rgba(134, 239, 172, 0.12);
|
|
color: #86efac;
|
|
}
|
|
|
|
.badge-disabled {
|
|
background: rgba(252, 165, 165, 0.1);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.badge-expired {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
/* Nav username indicator in header */
|
|
.nav-username {
|
|
max-width: 8rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|