- Introduce S3-compatible storage backend support using minio-go. - Add configuration options for local storage limits, box limits, and rate limiting. - Implement storage backend selection (local vs S3) for anonymous and registered users. - Add an `/admin/storage` management interface. - Update documentation and environment examples with the new configuration variables.
1570 lines
25 KiB
CSS
1570 lines
25 KiB
CSS
:root {
|
|
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;
|
|
--ring: #71717a;
|
|
--success: #86efac;
|
|
--radius: 0.625rem;
|
|
--shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background:
|
|
radial-gradient(circle at 50% -10%, rgba(82, 82, 91, 0.32), transparent 34rem),
|
|
linear-gradient(180deg, #09090b 0%, #0f0f12 100%);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
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: rgba(9, 9, 11, 0.84);
|
|
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 {
|
|
font-weight: 650;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.upload-view {
|
|
width: min(48rem, calc(100% - 2rem));
|
|
min-height: calc(100vh - 7.25rem);
|
|
margin: 0 auto;
|
|
padding: 2.5rem 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.hero-copy {
|
|
text-align: center;
|
|
}
|
|
|
|
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.55rem 0 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;
|
|
}
|
|
|
|
.app-shell {
|
|
width: min(86rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 2rem 0;
|
|
display: grid;
|
|
grid-template-columns: 14rem minmax(0, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.app-sidebar {
|
|
position: sticky;
|
|
top: 5rem;
|
|
align-self: start;
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: rgba(24, 24, 27, 0.58);
|
|
}
|
|
|
|
.sidebar-link {
|
|
padding: 0.62rem 0.75rem;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius);
|
|
color: var(--muted-foreground);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar-link:hover,
|
|
.sidebar-link.is-active {
|
|
border-color: var(--border);
|
|
background: var(--muted);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.admin-shell .app-sidebar {
|
|
border-color: rgba(125, 211, 252, 0.28);
|
|
background: linear-gradient(180deg, rgba(8, 47, 73, 0.22), rgba(24, 24, 27, 0.58));
|
|
}
|
|
|
|
.admin-shell .sidebar-link.is-active {
|
|
border-color: rgba(125, 211, 252, 0.42);
|
|
background: rgba(14, 116, 144, 0.24);
|
|
}
|
|
|
|
.admin-shell .kicker {
|
|
color: #7dd3fc;
|
|
}
|
|
|
|
.sidebar-logout {
|
|
display: grid;
|
|
margin: 0.75rem 0 0;
|
|
}
|
|
|
|
.sidebar-logout .button {
|
|
width: 100%;
|
|
}
|
|
|
|
.collection-create {
|
|
display: grid;
|
|
gap: 0.6rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.app-main {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.settings-stack {
|
|
display: grid;
|
|
gap: 1rem;
|
|
max-width: 44rem;
|
|
}
|
|
|
|
.settings-panel {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.compact-upload .drop-zone {
|
|
min-height: 11rem;
|
|
}
|
|
|
|
.dashboard-options {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.collection-tabs,
|
|
.inline-controls {
|
|
display: flex;
|
|
align-items: end;
|
|
flex-wrap: wrap;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.inline-controls input,
|
|
.inline-controls select {
|
|
min-width: 15rem;
|
|
}
|
|
|
|
.compact-input {
|
|
width: 10rem;
|
|
}
|
|
|
|
.settings-form {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.settings-form-narrow {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.settings-form label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.settings-form .checkbox-field {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.settings-form button {
|
|
justify-self: start;
|
|
}
|
|
|
|
.drop-zone {
|
|
min-height: 19rem;
|
|
display: grid;
|
|
place-items: center;
|
|
align-content: center;
|
|
gap: 0.65rem;
|
|
padding: 2rem;
|
|
border: 2px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
background: rgba(39, 39, 42, 0.42);
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color 160ms ease, background 160ms ease;
|
|
}
|
|
|
|
.drop-zone:hover,
|
|
.drop-zone.is-dragging {
|
|
border-color: var(--primary);
|
|
background: rgba(39, 39, 42, 0.68);
|
|
}
|
|
|
|
.drop-zone input {
|
|
position: absolute;
|
|
inline-size: 1px;
|
|
block-size: 1px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.drop-icon {
|
|
width: 2.75rem;
|
|
height: 2.75rem;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.drop-icon svg {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
}
|
|
|
|
.drop-title {
|
|
font-size: 1rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.drop-copy,
|
|
.drop-meta {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.drop-meta {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.advanced-options {
|
|
margin-top: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: rgba(39, 39, 42, 0.28);
|
|
padding: 0.75rem 0.9rem;
|
|
}
|
|
|
|
.advanced-options summary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
color: var(--foreground);
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.option-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 0.9rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.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,
|
|
button {
|
|
font: inherit;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
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-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-primary {
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
}
|
|
|
|
.button-primary:hover {
|
|
background: #e4e4e7;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.upload-progress {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.progress-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.progress {
|
|
height: 0.4rem;
|
|
margin-top: 0.55rem;
|
|
overflow: hidden;
|
|
border-radius: 999px;
|
|
background: var(--muted);
|
|
}
|
|
|
|
.progress span {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--primary);
|
|
transform-origin: left center;
|
|
transform: scaleX(0);
|
|
transition: transform 180ms ease;
|
|
}
|
|
|
|
.upload-result {
|
|
border-color: rgba(244, 244, 245, 0.24);
|
|
background: rgba(244, 244, 245, 0.06);
|
|
}
|
|
|
|
.result-title {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.result-title svg {
|
|
color: var(--success);
|
|
}
|
|
|
|
.result-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.manage-link {
|
|
margin: 0.9rem 0 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.manage-link a {
|
|
color: var(--foreground);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.result-list,
|
|
.download-list {
|
|
display: grid;
|
|
gap: 0.6rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.upload-queue {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.result-item,
|
|
.download-item {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
background: var(--background);
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.result-item > span,
|
|
.download-item > span {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
flex: 1;
|
|
}
|
|
|
|
.result-item strong,
|
|
.download-item strong,
|
|
.result-item code,
|
|
.download-item code {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.file-progress-side {
|
|
width: min(10rem, 32vw);
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.file-progress-percent {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.75rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.file-progress {
|
|
height: 0.35rem;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.result-item small,
|
|
.download-item small,
|
|
.result-item code,
|
|
.download-item code {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
margin-top: 0.25rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
.download-view {
|
|
width: min(38rem, calc(100% - 2rem));
|
|
min-height: calc(100vh - 7.25rem);
|
|
margin: 0 auto;
|
|
padding: 2.5rem 0;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.download-view-wide {
|
|
width: min(58rem, calc(100% - 2rem));
|
|
}
|
|
|
|
.download-card {
|
|
text-align: center;
|
|
}
|
|
|
|
.file-emblem {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
margin: 0 auto 1rem;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: var(--radius);
|
|
background: var(--muted);
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
.file-emblem svg {
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
}
|
|
|
|
.badge-row {
|
|
margin-top: 1rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
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;
|
|
}
|
|
|
|
.download-item {
|
|
color: var(--foreground);
|
|
text-align: left;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.view-toolbar {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.button.is-active {
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
}
|
|
|
|
.file-browser {
|
|
transition: opacity 160ms ease;
|
|
}
|
|
|
|
.file-card {
|
|
position: relative;
|
|
}
|
|
|
|
.thumb-link {
|
|
display: block;
|
|
overflow: hidden;
|
|
flex: 0 0 4.75rem;
|
|
width: 4.75rem;
|
|
aspect-ratio: 16 / 10;
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
background: var(--muted);
|
|
}
|
|
|
|
.thumb-link img {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.file-main {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
flex: 1;
|
|
color: var(--foreground);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.file-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.preview-action [hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.file-browser.is-thumbs {
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
}
|
|
|
|
.file-browser.is-thumbs .file-card {
|
|
display: grid;
|
|
min-width: 0;
|
|
align-content: start;
|
|
gap: 0.7rem;
|
|
}
|
|
|
|
.file-browser.is-thumbs .file-main {
|
|
width: 100%;
|
|
}
|
|
|
|
.file-browser.is-thumbs .thumb-link {
|
|
width: 100%;
|
|
flex-basis: auto;
|
|
}
|
|
|
|
.file-browser.is-thumbs .button {
|
|
width: 100%;
|
|
}
|
|
|
|
.file-browser.is-thumbs .file-actions {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.file-browser.images-only .file-card:not([data-kind="image"]) {
|
|
display: none;
|
|
}
|
|
|
|
.context-menu {
|
|
position: fixed;
|
|
z-index: 30;
|
|
width: 10.75rem;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: calc(var(--radius) - 0.125rem);
|
|
background: color-mix(in srgb, var(--card) 96%, #000);
|
|
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
|
|
padding: 0.4rem;
|
|
}
|
|
|
|
.context-menu[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.context-menu button {
|
|
width: 100%;
|
|
min-height: 2.05rem;
|
|
justify-content: flex-start;
|
|
border-radius: calc(var(--radius) - 0.25rem);
|
|
padding: 0.42rem 0.5rem;
|
|
color: var(--foreground);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.context-menu button:hover,
|
|
.context-menu button:focus-visible,
|
|
.context-menu button.is-copied {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.context-menu-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
padding: 0.1rem 0.1rem 0.2rem 0.45rem;
|
|
}
|
|
|
|
.context-menu-top small {
|
|
color: color-mix(in srgb, var(--muted-foreground) 74%, transparent);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.context-menu-icons {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.context-menu-icons button {
|
|
width: 1.9rem;
|
|
min-height: 1.9rem;
|
|
padding: 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
.context-menu hr {
|
|
height: 1px;
|
|
margin: 0.35rem 0.2rem;
|
|
border: 0;
|
|
background: var(--border);
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.unlock-form {
|
|
margin: 1rem auto 0;
|
|
display: grid;
|
|
max-width: 22rem;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.manage-details {
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
margin: 1rem 0 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.manage-details div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 0.45rem 0;
|
|
}
|
|
|
|
.manage-details dt,
|
|
.manage-details dd {
|
|
margin: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.manage-details dt {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.manage-details dd {
|
|
color: var(--foreground);
|
|
font-size: 0.84rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.preview-stage {
|
|
overflow: hidden;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--background);
|
|
}
|
|
|
|
.preview-stage img,
|
|
.preview-stage video {
|
|
width: 100%;
|
|
max-height: 55vh;
|
|
display: block;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.preview-stage audio {
|
|
width: calc(100% - 2rem);
|
|
margin: 1rem;
|
|
}
|
|
|
|
.site-footer {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 1rem 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.footer-links a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.form-error {
|
|
margin: 1rem 0 0;
|
|
color: #fecaca;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.admin-view {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 2rem 0 3rem;
|
|
}
|
|
|
|
.docs-view {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 2rem 0 3rem;
|
|
}
|
|
|
|
.docs-header {
|
|
max-width: 44rem;
|
|
}
|
|
|
|
.docs-header p {
|
|
margin: 0.55rem 0 0;
|
|
color: var(--muted-foreground);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.docs-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.docs-card {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.docs-card h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.docs-card p {
|
|
margin: 0.65rem 0 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.88rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.docs-card-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.endpoint-list,
|
|
.field-grid {
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
.endpoint-list div,
|
|
.field-grid {
|
|
min-width: 0;
|
|
}
|
|
|
|
.endpoint-list div {
|
|
display: grid;
|
|
grid-template-columns: 7rem minmax(0, 1fr);
|
|
gap: 0.75rem;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.endpoint-list dt,
|
|
.endpoint-list dd {
|
|
margin: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.endpoint-list dt,
|
|
.field-grid span {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.endpoint-list dd code {
|
|
display: block;
|
|
}
|
|
|
|
.docs-steps {
|
|
margin: 0.85rem 0 0;
|
|
padding-left: 1.1rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.88rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.docs-steps li + li {
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.field-grid {
|
|
grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
|
|
}
|
|
|
|
.field-grid p {
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-header,
|
|
.table-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.kicker {
|
|
margin: 0 0 0.4rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 0.8rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.metric-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: rgba(24, 24, 27, 0.78);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.metric-card span,
|
|
.table-header p {
|
|
display: block;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.metric-card strong {
|
|
display: block;
|
|
margin-top: 0.4rem;
|
|
color: var(--foreground);
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.admin-table-card {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.table-header h2 {
|
|
margin: 0;
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.table-header p {
|
|
margin: 0.3rem 0 0;
|
|
}
|
|
|
|
.admin-table-wrap {
|
|
overflow-x: auto;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.admin-table th,
|
|
.admin-table td {
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.admin-table th {
|
|
color: var(--muted-foreground);
|
|
font-weight: 650;
|
|
}
|
|
|
|
.table-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.table-actions form {
|
|
margin: 0;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.nav-links {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.upload-view,
|
|
.download-view {
|
|
min-height: auto;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.option-grid,
|
|
.form-footer,
|
|
.result-header,
|
|
.site-footer {
|
|
grid-template-columns: 1fr;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.option-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.docs-grid,
|
|
.field-grid,
|
|
.app-shell,
|
|
.settings-form {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.app-sidebar {
|
|
position: static;
|
|
}
|
|
|
|
.endpoint-list div {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.result-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.file-progress-side {
|
|
width: 100%;
|
|
}
|
|
|
|
.result-actions .button {
|
|
flex: 1;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.65rem;
|
|
}
|
|
|
|
.drop-zone {
|
|
min-height: 15rem;
|
|
}
|
|
|
|
.admin-header,
|
|
.table-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.metric-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.tabs-bar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.settings-section {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.new-collection-body {
|
|
position: static;
|
|
width: 100%;
|
|
margin-top: 0.5rem;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
/* ── UX remaster ───────────────────────────────────────────── */
|
|
|
|
.button-sm {
|
|
min-height: 1.85rem;
|
|
padding: 0.3rem 0.65rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Tab navigation */
|
|
.tabs-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab-list {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 2rem;
|
|
padding: 0 0.75rem;
|
|
border-radius: 999px;
|
|
border: 1px solid transparent;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.84rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
transition: background 120ms, color 120ms, border-color 120ms;
|
|
}
|
|
|
|
.tab:hover {
|
|
background: var(--muted);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.tab.is-active {
|
|
border-color: var(--border);
|
|
background: var(--muted);
|
|
color: var(--foreground);
|
|
font-weight: 650;
|
|
}
|
|
|
|
/* Sidebar structure */
|
|
.sidebar-sep {
|
|
height: 1px;
|
|
border: 0;
|
|
background: var(--border);
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: grid;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
/* Inline row edit (details/summary in table cells) */
|
|
.row-edit {
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.row-edit > summary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.72rem;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
text-decoration: underline;
|
|
text-decoration-style: dotted;
|
|
text-underline-offset: 2px;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.row-edit > summary::-webkit-details-marker { display: none; }
|
|
|
|
.row-edit[open] > summary {
|
|
opacity: 1;
|
|
}
|
|
|
|
.row-edit-form {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
align-items: center;
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.row-edit-form input,
|
|
.row-edit-form select {
|
|
width: auto;
|
|
flex: 1;
|
|
min-width: 8rem;
|
|
min-height: 1.9rem;
|
|
font-size: 0.8rem;
|
|
padding: 0.25rem 0.55rem;
|
|
}
|
|
|
|
.storage-edit-form {
|
|
position: absolute;
|
|
right: 1.5rem;
|
|
z-index: 30;
|
|
width: min(26rem, calc(100vw - 2rem));
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
align-items: end;
|
|
gap: 0.6rem;
|
|
padding: 0.85rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--card);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.storage-edit-form label {
|
|
display: grid;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.storage-edit-form label span {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.storage-edit-form .checkbox-field,
|
|
.storage-edit-form button {
|
|
align-self: center;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.storage-edit-form {
|
|
position: static;
|
|
grid-template-columns: 1fr;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Collection create dropdown */
|
|
.new-collection-drop {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.new-collection-drop > summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.new-collection-drop > summary::-webkit-details-marker { display: none; }
|
|
|
|
.new-collection-body {
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(100% + 0.5rem);
|
|
z-index: 10;
|
|
width: 15rem;
|
|
padding: 1rem;
|
|
background: color-mix(in srgb, var(--card) 97%, #000);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.new-collection-body label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
/* Copyable URL field */
|
|
.copy-field {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.copy-field input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
font-size: 0.8rem;
|
|
color: var(--muted-foreground);
|
|
}
|
|
|
|
/* Settings sections */
|
|
.settings-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.settings-section-title {
|
|
grid-column: 1 / -1;
|
|
margin: 0;
|
|
padding-bottom: 0.6rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.875rem;
|
|
font-weight: 650;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.settings-section .checkbox-field {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.settings-section label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
/* Quota form in admin users table */
|
|
.quota-form {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
align-items: center;
|
|
margin: 0;
|
|
}
|
|
|
|
.quota-form input {
|
|
width: 6.5rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Nav username indicator in header */
|
|
.nav-username {
|
|
max-width: 8rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|