前端: - 「我的构建」列表「查看详情/查看进度」按钮补充与其他按钮同风格的眼睛小图标 - 顶部导航增加 768px 以下移动端适配: 顶栏纵向排列, 导航单行横向滑动, 修复手机端错位 Gitea Actions 工作流 (仅 .gitea, 不动 .github): - 5 个生成器工作流全部补充 /updategh 终态状态回调 (成功/取消/失败均回调), 修复无回调导致构建 6 小时后被误判为超时的 P0 缺陷 - Windows 两个工作流 job 级默认 shell 设为 pwsh, 兼容 act 在 Windows 默认 bash - 修复 VCPKG_BINARY_SOURCES 中 \v 的 YAML 非法转义 (双引号改单引号) - Flutter 补丁路径改为 .rdgen-src/.github/patches/, run-on-arch 容器内用 /workspace 前缀 - run-on-arch githubToken 置空, 避免 Gitea token 拉 ghcr.io 失败 - runs-on 标签对齐现场 runner: ubuntu-22.04 改为 ubuntu-24.04 - run-vcpkg/setup-ndk 钉到 node20 运行时 SHA, 规避 node24 action 不兼容 - decrypt-secrets 的 pip 安装增加三级回退; cleanzip 请求增加超时重试 - 所有产物上传 curl 增加 --fail/超时/重试参数 - macOS 动态定位 *.app 不再硬编码 RustDesk.app, DMG 路径改用 GITHUB_WORKSPACE - 修复签名条件判断、PowerShell 变量空格等小问题 - setup.md 更新 runner 标签表及 Windows/macOS host 准备要求
876 lines
27 KiB
CSS
876 lines
27 KiB
CSS
/* ==========================================================================
|
|
RustDesk 客户端定制平台 · 全局设计系统
|
|
设计原则:扁平化、留白充足、控件统一;所有页面共用同一套组件类。
|
|
========================================================================== */
|
|
:root {
|
|
--primary: #2563eb;
|
|
--primary-dark: #1d4ed8;
|
|
--primary-light: #eff4ff;
|
|
--primary-border: #9db8f5;
|
|
--success: #16a34a;
|
|
--success-bg: #dcfce7;
|
|
--warning: #b45309;
|
|
--warning-bg: #fef3c7;
|
|
--danger: #dc2626;
|
|
--danger-bg: #fee2e2;
|
|
--info: #0e7490;
|
|
--info-bg: #ecfeff;
|
|
--text: #1f2937;
|
|
--text-soft: #374151;
|
|
--text-muted: #6b7280;
|
|
--border: #e5e7eb;
|
|
--control-border: #d1d5db;
|
|
--bg: #f5f7fa;
|
|
--card: #ffffff;
|
|
--radius: 10px;
|
|
--radius-sm: 8px;
|
|
--shadow: 0 1px 2px rgba(16, 24, 40, .05);
|
|
--shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);
|
|
/* 统一节奏 */
|
|
--control-h: 38px;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
|
"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a { color: var(--primary); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
/* ===== 内联 SVG 图标(统一线性/扁平单色) ===== */
|
|
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
|
|
.icon {
|
|
width: 1em; height: 1em;
|
|
flex: none;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
vertical-align: -0.12em;
|
|
}
|
|
.brand-icon {
|
|
width: 1em; height: 1em;
|
|
flex: none;
|
|
fill: currentColor;
|
|
stroke: none;
|
|
}
|
|
.page-head .icon { font-size: 15px; }
|
|
|
|
/* ===== 顶部导航 ===== */
|
|
.topbar {
|
|
background: var(--card);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
.topbar-inner {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
}
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
}
|
|
.brand:hover { text-decoration: none; }
|
|
.brand-logo {
|
|
width: 32px; height: 32px;
|
|
border-radius: 8px;
|
|
background: var(--primary);
|
|
color: #fff;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
letter-spacing: .5px;
|
|
}
|
|
.topbar nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
.nav-link {
|
|
padding: 7px 13px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
font-size: 13.5px;
|
|
line-height: 1.4;
|
|
}
|
|
.nav-link:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
|
|
.nav-link.active { background: var(--primary-light); color: var(--primary); }
|
|
.nav-user { color: var(--text-muted); font-size: 13px; padding: 0 8px; white-space: nowrap; }
|
|
.btn-logout {
|
|
background: none;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 6px 13px;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
}
|
|
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }
|
|
|
|
/* ===== 顶部导航移动端适配:窄屏上下两行,导航单行横向滑动不折行 ===== */
|
|
@media (max-width: 768px) {
|
|
.topbar-inner {
|
|
height: auto;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
}
|
|
.topbar nav {
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
padding-bottom: 2px;
|
|
}
|
|
.topbar nav::-webkit-scrollbar { display: none; }
|
|
.nav-link, .nav-user, .btn-logout { flex: none; }
|
|
}
|
|
|
|
/* ===== 页面容器与标题 ===== */
|
|
.page {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 28px 24px 56px;
|
|
}
|
|
.page-narrow { max-width: 860px; }
|
|
.page-head { margin-bottom: 22px; }
|
|
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
|
|
.page-subtitle { color: var(--text-muted); margin: 0; font-size: 13.5px; line-height: 1.7; }
|
|
.breadcrumb { font-size: 13px; margin-bottom: 14px; color: var(--text-muted); }
|
|
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
|
|
.breadcrumb a:hover { color: var(--primary); }
|
|
.breadcrumb .sep { margin: 0 8px; color: #c0c6d0; }
|
|
|
|
.footer {
|
|
text-align: center;
|
|
color: #9aa3b2;
|
|
font-size: 12.5px;
|
|
padding: 20px;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--card);
|
|
}
|
|
|
|
/* ===== 卡片 ===== */
|
|
.card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
margin-bottom: 24px;
|
|
}
|
|
.card:last-child { margin-bottom: 0; }
|
|
.card-header {
|
|
padding: 16px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
.card-header .icon { color: #64748b; font-size: 17px; }
|
|
.card-body { padding: 22px 24px; }
|
|
.card-body.flush { padding: 0; }
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
.grid-2 .card { margin-bottom: 0; }
|
|
.form-narrow { max-width: 540px; }
|
|
@media (max-width: 920px) { .grid-2 { grid-template-columns: 1fr; } }
|
|
|
|
/* ===== 表单 ===== */
|
|
.field { margin-bottom: 18px; }
|
|
.field:last-child { margin-bottom: 0; }
|
|
/* 与左侧「label + 输入控件」并排的独立勾选项:下移到与控件(非 label)同一水平线 */
|
|
.field-check-control { margin-bottom: 0; }
|
|
.field-check-control .check-item { margin-top: 33px; }
|
|
@media (max-width: 920px) { .field-check-control .check-item { margin-top: 4px; } }
|
|
.field > label, .field-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
margin-bottom: 7px;
|
|
color: var(--text-soft);
|
|
}
|
|
.form-control {
|
|
width: 100%;
|
|
min-height: var(--control-h);
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--control-border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
background: #fff;
|
|
transition: border-color .15s, box-shadow .15s;
|
|
font-family: inherit;
|
|
line-height: 1.4;
|
|
}
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
|
|
}
|
|
.form-control::placeholder { color: #9ca3af; }
|
|
select.form-control {
|
|
cursor: pointer;
|
|
padding-right: 34px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 11px center;
|
|
background-size: 16px;
|
|
}
|
|
textarea.form-control {
|
|
resize: vertical;
|
|
min-height: 96px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
/* 文件选择框:浅灰底 + 统一内嵌按钮 */
|
|
input[type="file"].form-control {
|
|
min-height: 0;
|
|
padding: 7px 10px;
|
|
background: #fafbfd;
|
|
cursor: pointer;
|
|
}
|
|
input[type="file"].form-control::file-selector-button {
|
|
margin-right: 12px;
|
|
padding: 5px 13px;
|
|
border: 1px solid var(--control-border);
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: var(--text-soft);
|
|
font: 600 12.5px inherit;
|
|
cursor: pointer;
|
|
transition: border-color .15s, color .15s;
|
|
}
|
|
input[type="file"].form-control:hover::file-selector-button {
|
|
border-color: var(--primary-border);
|
|
color: var(--primary);
|
|
}
|
|
input[type="file"].form-control::-webkit-file-upload-button {
|
|
margin-right: 12px;
|
|
padding: 5px 13px;
|
|
border: 1px solid var(--control-border);
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: var(--text-soft);
|
|
font: 600 12.5px inherit;
|
|
cursor: pointer;
|
|
}
|
|
.field-hint { color: var(--text-muted); font-size: 12.5px; margin-top: 7px; line-height: 1.6; }
|
|
.help-text {
|
|
display: block;
|
|
background: var(--info-bg);
|
|
color: var(--info);
|
|
font-size: 12.5px;
|
|
line-height: 1.6;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
margin-top: 8px;
|
|
}
|
|
.inline-warning {
|
|
display: none;
|
|
color: var(--warning);
|
|
background: var(--warning-bg);
|
|
font-size: 12.5px;
|
|
line-height: 1.6;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
margin: 0 0 12px;
|
|
}
|
|
.inline-error { color: var(--danger); font-size: 12.5px; margin-left: 8px; }
|
|
.errorlist { list-style: none; padding: 0; margin: 7px 0 0; color: var(--danger); font-size: 12.5px; }
|
|
.errorlist li { margin-top: 3px; }
|
|
|
|
/* 输入框 + 按钮同一行(如令牌创建) */
|
|
.input-row { display: flex; gap: 10px; align-items: center; }
|
|
.input-row .form-control { flex: 1 1 auto; min-width: 0; width: auto; }
|
|
|
|
/* 复选 / 单选 */
|
|
.form-check-input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; flex: none; }
|
|
.check-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 13.5px;
|
|
cursor: pointer;
|
|
padding: 4px 0;
|
|
color: var(--text-soft);
|
|
}
|
|
.check-item:hover { color: var(--text); }
|
|
.check-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
|
|
gap: 4px 24px;
|
|
margin: 10px 0 4px;
|
|
}
|
|
.radio-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
|
|
.radio-group li { display: flex; align-items: center; gap: 9px; padding: 2px 0; }
|
|
.radio-group li label { font-weight: 400; margin: 0; font-size: 13.5px; cursor: pointer; }
|
|
.subsection-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-soft);
|
|
margin: 22px 0 10px;
|
|
}
|
|
.subsection-title:first-child { margin-top: 0; }
|
|
.subsection-title .icon { color: #64748b; font-size: 15px; }
|
|
.subsection-title::after {
|
|
content: "";
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border);
|
|
}
|
|
|
|
/* ===== 按钮 ===== */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
min-height: var(--control-h);
|
|
padding: 0 18px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid transparent;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
|
|
text-decoration: none !important;
|
|
line-height: 1.2;
|
|
}
|
|
.btn .icon { font-size: 15px; }
|
|
.btn-primary { background: var(--primary); color: #fff; }
|
|
.btn-primary:hover { background: var(--primary-dark); }
|
|
.btn-secondary { background: #fff; color: var(--text-soft); border-color: var(--control-border); }
|
|
.btn-secondary:hover { border-color: var(--primary-border); color: var(--primary); }
|
|
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c2c2; }
|
|
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
|
|
.btn-warning { background: #fff; color: var(--warning); border-color: #f3d9a6; }
|
|
.btn-warning:hover { background: var(--warning); color: #fff; border-color: var(--warning); }
|
|
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }
|
|
.btn-sm .icon { font-size: 13px; }
|
|
.btn-block { width: 100%; }
|
|
.btn:disabled { opacity: .6; cursor: not-allowed; }
|
|
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
|
|
.inline-form { display: inline-flex; vertical-align: middle; }
|
|
.table .btn + .btn, .table .btn + .inline-form { margin-left: 8px; }
|
|
|
|
/* ===== 平台选择卡 ===== */
|
|
.platform-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 14px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
.platform-card {
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: #fff;
|
|
padding: 18px 8px 16px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color .15s, background .15s, transform .1s;
|
|
user-select: none;
|
|
}
|
|
.platform-card:hover { border-color: var(--primary-border); }
|
|
.platform-card.active { border-color: var(--primary); background: var(--primary-light); }
|
|
.platform-card:active { transform: scale(.98); }
|
|
.platform-card .brand-icon { font-size: 30px; color: #6b728b; transition: color .15s; }
|
|
.platform-card.active .brand-icon { color: var(--primary); }
|
|
.platform-name { font-weight: 600; font-size: 13.5px; margin-top: 9px; color: var(--text); }
|
|
.platform-tag { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
|
|
@media (max-width: 920px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
|
|
@media (max-width: 560px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
|
|
|
|
/* ===== 后台构建平台选择卡(GitHub / Gitea 二选一) ===== */
|
|
.build-platform-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 14px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
.build-platform-grid .platform-card { padding: 20px 12px 18px; }
|
|
.build-platform-grid .platform-card .icon { font-size: 28px; }
|
|
.platform-desc { color: var(--text-muted); font-size: 12.5px; margin-top: 5px; line-height: 1.55; }
|
|
.panel-hidden { display: none !important; }
|
|
.settings-submit-card .settings-actions { margin-top: 0; padding: 22px 24px; border-top: none; }
|
|
@media (max-width: 560px) { .build-platform-grid { grid-template-columns: 1fr; } }
|
|
.visually-hidden {
|
|
position: absolute !important;
|
|
width: 1px; height: 1px;
|
|
padding: 0; margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* ===== 图片预览 ===== */
|
|
.image-preview { margin-top: 9px; }
|
|
.image-preview img {
|
|
max-width: 100%;
|
|
max-height: 64px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 5px;
|
|
background: #fff;
|
|
}
|
|
.image-preview.photo img { max-height: 120px; }
|
|
|
|
/* ===== 徽标 ===== */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
white-space: nowrap;
|
|
}
|
|
.badge-success { background: var(--success-bg); color: #15803d; }
|
|
.badge-info { background: var(--info-bg); color: var(--info); }
|
|
.badge-warning { background: var(--warning-bg); color: var(--warning); }
|
|
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
|
|
.badge-secondary { background: #f1f3f7; color: var(--text-muted); }
|
|
.badge-github { background: #24292f; color: #fff; }
|
|
.badge-gitea { background: #e6f4d7; color: #4a7a13; }
|
|
.badge-dot::before {
|
|
content: "";
|
|
display: inline-block;
|
|
width: 6px; height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
margin-right: 6px;
|
|
}
|
|
.badge-info.badge-dot::before { animation: pulse 1.2s infinite; }
|
|
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
|
|
|
|
/* ===== 提示消息 ===== */
|
|
.alerts { margin-bottom: 20px; display: grid; gap: 10px; }
|
|
.alert {
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid;
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
}
|
|
.alert-success { background: var(--success-bg); border-color: #bbf7d0; color: #15803d; }
|
|
.alert-error, .alert-danger { background: var(--danger-bg); border-color: #fecaca; color: #b91c1c; }
|
|
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }
|
|
.alert-info { background: var(--info-bg); border-color: #a5f3fc; color: var(--info); }
|
|
|
|
/* ===== 表格 ===== */
|
|
.table-wrap { overflow-x: auto; }
|
|
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
|
|
.table th, .table td {
|
|
padding: 13px 16px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
}
|
|
.table th {
|
|
background: #f9fafb;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
font-size: 12.5px;
|
|
white-space: nowrap;
|
|
}
|
|
.table tr:last-child td { border-bottom: none; }
|
|
.table tbody tr:hover td { background: #fafbfe; }
|
|
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
|
|
.text-muted { color: var(--text-muted); }
|
|
|
|
/* ===== 统计卡片 ===== */
|
|
.stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.stat-card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 18px 20px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.15; }
|
|
.stat-label { color: var(--text-muted); font-size: 12.5px; margin-top: 5px; }
|
|
.stat-card.is-primary .stat-value { color: var(--primary); }
|
|
.stat-card.is-success .stat-value { color: var(--success); }
|
|
.stat-card.is-info .stat-value { color: #0891b2; }
|
|
.stat-card.is-danger .stat-value { color: var(--danger); }
|
|
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
|
|
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
|
|
|
|
/* ===== 空状态 ===== */
|
|
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
|
|
.empty-state .empty-icon { font-size: 42px; color: #c3cad6; margin-bottom: 14px; }
|
|
.empty-state h3 { margin: 0 0 7px; color: var(--text); font-size: 16px; font-weight: 600; }
|
|
.empty-state p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.7; }
|
|
.empty-state .btn { margin: 0 auto; }
|
|
|
|
/* ===== 登录页 ===== */
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
background: var(--bg);
|
|
}
|
|
.login-card {
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
box-shadow: var(--shadow-lg);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 36px 34px 30px;
|
|
}
|
|
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
|
|
.login-brand .brand-logo { width: 42px; height: 42px; font-size: 15px; border-radius: 11px; }
|
|
.login-brand h1 { font-size: 18px; margin: 0; }
|
|
.login-brand p { margin: 0; color: var(--text-muted); font-size: 12.5px; }
|
|
.login-card form { margin-top: 24px; }
|
|
.login-card .field { margin-bottom: 16px; }
|
|
.login-card .btn { width: 100%; margin-top: 4px; }
|
|
|
|
/* ===== 等待 / 结果页 ===== */
|
|
.result-wrap { text-align: center; padding: 36px 20px; }
|
|
.result-icon { width: 64px; height: 64px; margin: 0 auto 16px; }
|
|
.result-icon .icon { width: 100%; height: 100%; stroke-width: 1.6; }
|
|
.result-icon.success { color: var(--success); }
|
|
.result-icon.warning { color: #d97706; }
|
|
.result-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
|
|
.result-desc { color: var(--text-muted); margin: 0 0 24px; line-height: 1.8; }
|
|
.spinner {
|
|
width: 42px; height: 42px;
|
|
border: 4px solid #dbe5f5;
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
margin: 0 auto 18px;
|
|
animation: spin .9s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.progress-bar {
|
|
width: 100%;
|
|
max-width: 380px;
|
|
height: 8px;
|
|
background: #e7ecf5;
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
margin: 0 auto 20px;
|
|
}
|
|
.progress-bar-fill {
|
|
width: 30%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #3b82f6, #0ea5e9);
|
|
border-radius: 999px;
|
|
animation: progress-slide 1.6s ease-in-out infinite;
|
|
}
|
|
@keyframes progress-slide {
|
|
0% { width: 8%; margin-left: 0; }
|
|
50% { width: 45%; margin-left: 20%; }
|
|
100% { width: 8%; margin-left: 92%; }
|
|
}
|
|
.download-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
|
|
gap: 10px;
|
|
text-align: left;
|
|
margin-top: 8px;
|
|
}
|
|
.download-list .btn { justify-content: flex-start; padding: 0 14px; font-weight: 500; }
|
|
.info-box {
|
|
background: #f9fafb;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px 18px;
|
|
max-width: 540px;
|
|
margin: 0 auto 20px;
|
|
font-size: 13.5px;
|
|
color: var(--text-muted);
|
|
text-align: left;
|
|
line-height: 1.9;
|
|
}
|
|
.info-box strong { color: var(--text); }
|
|
.info-box-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 4px;
|
|
}
|
|
.info-box-title .icon { color: #64748b; }
|
|
.info-box .icon { vertical-align: -0.15em; margin-right: 4px; }
|
|
.key-box {
|
|
background: #0f172a;
|
|
color: #a7f3d0;
|
|
border-radius: var(--radius-sm);
|
|
padding: 13px 16px;
|
|
font-family: ui-monospace, Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
word-break: break-all;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ===== 错误页 ===== */
|
|
.error-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg);
|
|
padding: 20px;
|
|
}
|
|
.error-box { text-align: center; max-width: 460px; }
|
|
.error-code { font-size: 72px; font-weight: 800; color: var(--primary); line-height: 1; }
|
|
.error-box h1 { font-size: 20px; margin: 14px 0 8px; }
|
|
.error-box p { color: var(--text-muted); margin: 0 0 24px; line-height: 1.7; }
|
|
|
|
/* ===== 全站 GitHub 未配置告警条 ===== */
|
|
.config-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
margin-bottom: 20px;
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
text-decoration: none;
|
|
}
|
|
a.config-banner:hover { text-decoration: none; filter: brightness(0.97); }
|
|
.config-banner .icon { flex-shrink: 0; }
|
|
|
|
/* ===== GitHub 构建配置页 ===== */
|
|
.brand-github { font-size: 1.15em; vertical-align: -0.18em; fill: currentColor; stroke: none; }
|
|
.card-desc {
|
|
margin: 0 0 18px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.7;
|
|
}
|
|
.config-ok {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
color: #15803d;
|
|
background: #f0fdf4;
|
|
border: 1px solid #bbf7d0;
|
|
border-radius: var(--radius-sm);
|
|
padding: 12px 16px;
|
|
font-size: 13.5px;
|
|
}
|
|
.config-ok .icon { color: #16a34a; flex-shrink: 0; }
|
|
.config-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
|
|
.config-check-list li {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 9px;
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
}
|
|
.config-check-list .icon { flex-shrink: 0; margin-top: 2px; }
|
|
.config-check-list .is-ok { color: #15803d; }
|
|
.config-check-list .is-ok .icon { color: #16a34a; }
|
|
.config-check-list .is-bad { color: #b91c1c; }
|
|
.config-check-list .is-bad .icon { color: var(--danger); }
|
|
.config-check-list .is-warn { color: var(--warning); }
|
|
.config-check-list .is-warn .icon { color: #d97706; }
|
|
|
|
.setting-row { max-width: 640px; }
|
|
.setting-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
margin-bottom: 7px;
|
|
}
|
|
.source-badge {
|
|
font-weight: 500;
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
padding: 3px 8px;
|
|
border-radius: 999px;
|
|
border: 1px solid transparent;
|
|
white-space: nowrap;
|
|
}
|
|
.source-db { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
|
|
.source-env { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
|
|
.source-default { background: #fefce8; color: #a16207; border-color: #fde68a; }
|
|
.secret-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px 14px;
|
|
margin-top: 7px;
|
|
}
|
|
.clear-check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12.5px;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
margin: 0;
|
|
}
|
|
.clear-check input { margin: 0; }
|
|
.secret-state {
|
|
font-size: 12px;
|
|
padding: 2px 9px;
|
|
border-radius: 999px;
|
|
}
|
|
.secret-state.is-set { background: #eff6ff; color: #1d4ed8; }
|
|
.secret-state.is-env { background: #f1f5f9; color: #475569; }
|
|
.secret-state.is-empty { background: #fef2f2; color: #b91c1c; }
|
|
|
|
/* 表单内最后一张分组卡命中 .card:last-child 被去掉下边距,
|
|
需由表单本身补回,避免与表单后的引导卡片紧贴 */
|
|
.settings-form { margin-bottom: 24px; }
|
|
|
|
.settings-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
|
|
.settings-actions .btn-row { margin-bottom: 0; }
|
|
|
|
/* 文件选择:隐藏原生控件,用统一按钮样式(与客户端定制页一致) */
|
|
.file-pick-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
.file-pick-name { font-size: 13px; color: var(--text-muted); }
|
|
.test-result {
|
|
font-size: 13px;
|
|
padding: 9px 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: #f9fafb;
|
|
color: var(--text-muted);
|
|
margin-top: 12px;
|
|
}
|
|
.test-result.is-loading { color: var(--text-muted); }
|
|
.test-result.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
|
|
.test-result.is-bad { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
|
|
|
|
/* 版本来源提示 */
|
|
.version-note {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 7px;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
.version-note .icon { font-size: 13px; flex-shrink: 0; }
|
|
.version-note.is-live { color: #1d4ed8; }
|
|
.version-note.is-fallback { color: #b45309; }
|
|
|
|
/* 定制页配置方案区 */
|
|
.profile-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.profile-row:last-child { margin-bottom: 0; }
|
|
.profile-row .form-control { width: auto; min-width: 220px; max-width: 420px; }
|
|
.profile-row #profileName { flex: 0 1 300px; }
|
|
.profile-msg { display: none; margin-top: 10px; font-size: 13px; line-height: 1.6; }
|
|
.profile-msg.is-ok { display: block; color: #15803d; }
|
|
.profile-msg.is-bad { display: block; color: #b91c1c; }
|
|
|
|
/* 配置引导教程 */
|
|
.guide-steps { list-style: none; padding: 0; margin: 0; counter-reset: guide; }
|
|
.guide-steps > li {
|
|
position: relative;
|
|
padding: 0 0 20px 42px;
|
|
counter-increment: guide;
|
|
}
|
|
.guide-steps > li:last-child { padding-bottom: 0; }
|
|
.guide-steps > li::before {
|
|
content: counter(guide);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 27px;
|
|
height: 27px;
|
|
border-radius: 50%;
|
|
background: var(--primary);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.guide-steps > li:not(:last-child)::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 13px;
|
|
top: 31px;
|
|
bottom: 2px;
|
|
width: 1.5px;
|
|
background: #dbe4f0;
|
|
}
|
|
.guide-title { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
|
|
.guide-steps p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.75; }
|
|
.guide-steps a { color: var(--primary); font-weight: 500; }
|
|
.icon-inline { width: 13px; height: 13px; vertical-align: -0.15em; }
|
|
.guide-sublist { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.85; }
|
|
.guide-sublist strong { color: var(--text); }
|
|
.guide-steps code {
|
|
background: #f1f5f9;
|
|
border-radius: 4px;
|
|
padding: 1px 6px;
|
|
font-size: 12px;
|
|
font-family: ui-monospace, Menlo, Consolas, monospace;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.setting-row { max-width: none; }
|
|
.test-result { width: 100%; }
|
|
}
|