Files
mlkj-website-admin/app/assets/admin-app.css
T
wlx 471bbec94e feat:官网内容管理:站点配置、首页区块列表/编辑/保存。
赛道内容管理:赛道基础信息、赛程列表/编辑/保存。
素材库:本地上传、文件登记、文件列表、OSS 配置状态提示。当前本地 .env 还是占位 OSS 密钥,所以会显示 local-fallback,上云配置真实 OSS 后再接直传。
作品评选:评选概览、作品排名、按投票重算、手动维护专家分/公众分/最终分/排名/奖项/状态。
后端新增上传与评选接口,并重启了本地 mlkj-website-api 容器让 3001 生效。
已清理上传冒烟测试文件,并忽略 backend/public/uploads/,避免误提交本地素材。
2026-06-29 20:32:59 +08:00

526 lines
8.0 KiB
CSS

:root {
color-scheme: light;
--bg: #f5f7fb;
--panel: #ffffff;
--panel-soft: #f8fafc;
--text: #152033;
--muted: #687386;
--line: #dbe3ee;
--brand: #1b7f79;
--brand-strong: #0f5f5a;
--accent: #c9861b;
--danger: #c2413a;
--warning: #b7791f;
--success: #16835f;
--shadow: 0 14px 36px rgba(27, 39, 62, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 1120px;
background: var(--bg);
color: var(--text);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
font-size: 14px;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
.login-page {
min-height: 100vh;
display: grid;
place-items: center;
padding: 48px;
background:
linear-gradient(135deg, rgba(27, 127, 121, 0.12), transparent 38%),
linear-gradient(315deg, rgba(201, 134, 27, 0.12), transparent 42%),
var(--bg);
}
.login-panel {
width: 420px;
padding: 32px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
box-shadow: var(--shadow);
}
.login-panel h1 {
margin: 0;
font-size: 24px;
line-height: 1.2;
}
.login-panel p {
margin: 10px 0 24px;
color: var(--muted);
line-height: 1.7;
}
.field-stack {
display: grid;
gap: 16px;
}
.field {
display: grid;
gap: 7px;
}
.field label {
color: #364257;
font-weight: 650;
}
.field input,
.field select,
.field textarea {
width: 100%;
min-height: 40px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 9px 11px;
color: var(--text);
background: #fff;
outline: none;
}
.field textarea {
min-height: 98px;
resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
border-color: var(--brand);
box-shadow: 0 0 0 3px rgba(27, 127, 121, 0.12);
}
.btn {
min-height: 38px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px 13px;
background: #fff;
color: var(--text);
font-weight: 650;
}
.btn:hover {
border-color: #b8c6d9;
}
.btn.primary {
border-color: var(--brand);
background: var(--brand);
color: #fff;
}
.btn.primary:hover {
border-color: var(--brand-strong);
background: var(--brand-strong);
}
.btn.danger {
border-color: rgba(194, 65, 58, 0.24);
color: var(--danger);
}
.btn.small {
min-height: 32px;
padding: 5px 10px;
font-size: 13px;
}
.shell {
min-height: 100vh;
display: grid;
grid-template-columns: 244px 1fr;
}
.sidebar {
position: sticky;
top: 0;
height: 100vh;
display: flex;
flex-direction: column;
border-right: 1px solid var(--line);
background: #101827;
color: #eef5ff;
}
.brand {
padding: 22px 20px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand h1 {
margin: 0;
font-size: 20px;
line-height: 1.2;
}
.brand p {
margin: 7px 0 0;
color: rgba(238, 245, 255, 0.62);
line-height: 1.5;
}
.nav {
flex: 1;
padding: 14px 10px;
overflow-y: auto;
}
.nav-section {
margin: 13px 10px 7px;
color: rgba(238, 245, 255, 0.48);
font-size: 12px;
font-weight: 700;
}
.nav button {
width: 100%;
min-height: 38px;
border: 0;
border-radius: 6px;
margin: 2px 0;
padding: 8px 11px;
background: transparent;
color: rgba(238, 245, 255, 0.78);
text-align: left;
font-weight: 650;
}
.nav button:hover,
.nav button.active {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.sidebar-footer {
padding: 14px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer .btn {
width: 100%;
border-color: rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.main {
min-width: 0;
padding: 24px;
}
.topbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
margin-bottom: 18px;
}
.topbar h2 {
margin: 0;
font-size: 24px;
line-height: 1.2;
}
.topbar p {
margin: 7px 0 0;
color: var(--muted);
}
.user-chip {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
.avatar {
width: 30px;
height: 30px;
display: grid;
place-items: center;
border-radius: 50%;
background: rgba(27, 127, 121, 0.12);
color: var(--brand-strong);
font-weight: 800;
}
.status-line {
min-height: 22px;
margin-top: 12px;
color: var(--muted);
line-height: 1.6;
}
.status-line.error {
color: var(--danger);
}
.status-line.success {
color: var(--success);
}
.kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
margin-bottom: 18px;
}
.kpi {
min-height: 104px;
padding: 18px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
box-shadow: 0 8px 18px rgba(27, 39, 62, 0.04);
}
.kpi .label {
color: var(--muted);
font-weight: 650;
}
.kpi .value {
margin-top: 13px;
font-size: 32px;
line-height: 1;
font-weight: 820;
}
.grid-two {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
gap: 16px;
align-items: start;
}
.panel {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
box-shadow: 0 8px 18px rgba(27, 39, 62, 0.04);
}
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 18px;
border-bottom: 1px solid var(--line);
}
.panel-header h3 {
margin: 0;
font-size: 17px;
}
.panel-body {
padding: 18px;
}
.stack {
display: grid;
gap: 18px;
}
.subhead,
.inline-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.subhead h4 {
margin: 0;
color: #364257;
font-size: 15px;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.filters {
display: flex;
align-items: center;
gap: 8px;
}
.filters input,
.filters select {
min-height: 36px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 7px 10px;
background: #fff;
}
.table-wrap {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
border-bottom: 1px solid var(--line);
padding: 11px 10px;
text-align: left;
vertical-align: top;
}
.table th {
color: #4b586f;
font-size: 12px;
background: var(--panel-soft);
white-space: nowrap;
}
.table td {
line-height: 1.5;
}
.table tr:hover td {
background: #fbfcfe;
}
.muted {
color: var(--muted);
}
.badge {
display: inline-flex;
align-items: center;
min-height: 24px;
border-radius: 999px;
padding: 3px 9px;
background: #edf2f7;
color: #42526b;
font-size: 12px;
font-weight: 760;
white-space: nowrap;
}
.badge.published,
.badge.contacted {
background: rgba(22, 131, 95, 0.11);
color: var(--success);
}
.badge.draft,
.badge.pending {
background: rgba(183, 121, 31, 0.12);
color: var(--warning);
}
.badge.disabled,
.badge.closed,
.badge.archived {
background: rgba(104, 115, 134, 0.13);
color: #526071;
}
.empty {
padding: 34px 20px;
color: var(--muted);
text-align: center;
}
.form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 18px;
}
.section-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.content-card {
min-height: 132px;
padding: 16px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
}
.content-card h3 {
margin: 0 0 8px;
font-size: 16px;
}
.content-card p {
margin: 0;
color: var(--muted);
line-height: 1.6;
}
.notice {
padding: 12px 14px;
border: 1px solid rgba(27, 127, 121, 0.24);
border-radius: 8px;
background: rgba(27, 127, 121, 0.07);
color: #245d5a;
line-height: 1.7;
}
.upload-status {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.upload-status > div {
min-height: 70px;
display: grid;
gap: 6px;
align-content: center;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-soft);
}
.upload-status strong {
word-break: break-word;
}