This commit is contained in:
ddrwode
2026-02-10 11:07:04 +08:00
parent 5fe60fdd57
commit 742b1286c9
30 changed files with 5264 additions and 301 deletions

View File

@@ -306,6 +306,19 @@
color: var(--text);
}
.admin-form textarea {
width: 100%;
min-height: 120px;
resize: vertical;
padding: 0.6rem 0.75rem;
font-size: 0.95rem;
line-height: 1.55;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
}
.admin-form .hint {
display: block;
margin-top: 0.25rem;
@@ -351,6 +364,76 @@
color: var(--text-muted);
}
.admin-filter-form {
margin: 0 0 1rem 0;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-elevated);
}
.filter-row {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: flex-end;
}
.filter-item {
flex: 1;
min-width: 160px;
}
.filter-item label {
display: block;
margin-bottom: 0.35rem;
color: var(--text-muted);
font-size: 0.82rem;
}
.filter-item input,
.filter-item select {
width: 100%;
padding: 0.45rem 0.6rem;
font-size: 0.88rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
}
.filter-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.filter-actions button {
border: 1px solid var(--accent);
background: var(--accent);
color: #fff;
border-radius: 6px;
padding: 0.45rem 0.7rem;
cursor: pointer;
}
.filter-actions a {
text-decoration: none;
color: var(--text-muted);
font-size: 0.85rem;
}
.table-title {
font-weight: 600;
}
.line-clamp-2 {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.country-tags {
display: flex;
flex-wrap: wrap;
@@ -440,6 +523,31 @@
margin-left: auto;
}
.quick-link-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 0.6rem;
margin-top: 0.75rem;
}
.quick-link-grid a {
display: inline-block;
text-decoration: none;
text-align: center;
padding: 0.55rem 0.65rem;
border-radius: 8px;
border: 1px solid var(--border);
color: var(--text);
background: var(--bg-elevated);
transition: var(--transition);
}
.quick-link-grid a:hover {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-glow);
}
.hint {
color: var(--text-muted);
font-size: 0.9rem;
@@ -458,6 +566,161 @@
font-weight: 500;
}
.error-msg {
padding: 0.75rem 1rem;
background: rgba(220, 38, 38, 0.1);
border: 1px solid rgba(220, 38, 38, 0.45);
border-radius: 6px;
color: var(--red);
margin-bottom: 1rem;
}
.admin-topline {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
}
.admin-topline h2 {
margin-bottom: 0;
}
.admin-btn-link {
display: inline-block;
text-decoration: none;
font-size: 0.85rem;
font-weight: 600;
color: #fff;
background: var(--accent);
border: 1px solid var(--accent);
border-radius: 6px;
padding: 0.45rem 0.75rem;
transition: var(--transition);
}
.admin-btn-link:hover {
background: var(--accent-dim);
border-color: var(--accent-dim);
}
.status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 44px;
padding: 0.15rem 0.45rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
}
.status-pill.active {
color: var(--green-dim);
background: rgba(5, 150, 105, 0.14);
border: 1px solid rgba(5, 150, 105, 0.35);
}
.status-pill.inactive {
color: var(--text-muted);
background: rgba(100, 116, 139, 0.12);
border: 1px solid rgba(100, 116, 139, 0.25);
}
.checkline {
display: inline-flex;
align-items: center;
gap: 0.45rem;
cursor: pointer;
}
.admin-form .checkline input[type="checkbox"] {
width: auto;
}
.admin-note {
margin: 0;
font-size: 0.86rem;
color: var(--text-muted);
}
.admin-table .btn-delete:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.report-tabs {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.report-tabs a {
text-decoration: none;
font-size: 0.8rem;
color: var(--text-muted);
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.25rem 0.6rem;
transition: var(--transition);
}
.report-tabs a.active,
.report-tabs a:hover {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-glow);
}
.muted-text {
color: var(--text-muted);
font-size: 0.8rem;
margin-top: 0.2rem;
line-height: 1.45;
}
.report-target-title {
font-weight: 600;
color: var(--text);
}
.report-action-form {
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.report-action-form input[type="text"] {
width: 100%;
min-width: 180px;
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.4rem 0.55rem;
font-size: 0.82rem;
color: var(--text);
background: var(--bg-card);
}
.report-action-buttons {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
.btn-danger {
border: 1px solid rgba(220, 38, 38, 0.45);
background: rgba(220, 38, 38, 0.08);
color: var(--red);
border-radius: 6px;
padding: 0.35rem 0.55rem;
cursor: pointer;
}
.btn-danger:hover {
background: rgba(220, 38, 38, 0.16);
}
@keyframes slideDown {
from {
opacity: 0;
@@ -485,6 +748,14 @@
padding: 1rem;
}
.filter-item {
min-width: 100%;
}
.filter-actions {
width: 100%;
}
.admin-table {
font-size: 0.85rem;
}