feat(works): 新增成品「开发文档中心 · 甄房」
- 回收 ZhenOS-SH/ruoyi-ui public/devdoc 静态站(16 文件 / 3.69 MB)到 works/devdoc - 目录页 5 分类 21 条文档 + 10 个子页(业务全流程流程图 mermaid / 菜单图标选型 / 头像素材规范等) - works.js 追加索引(文档类),works.html 版本 bump
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
/* 开发文档详情页通用样式(与目录页同一视觉体系) */
|
||||
:root {
|
||||
--ink: #1f2329;
|
||||
--ink-2: #5c6670;
|
||||
--ink-3: #8a939e;
|
||||
--line: #e6e9ee;
|
||||
--bg: #f6f7f9;
|
||||
--panel: #ffffff;
|
||||
--brand: #2b6de5;
|
||||
--brand-soft: #eef3fe;
|
||||
--ok: #12805c;
|
||||
--warn: #a16207;
|
||||
--danger: #b42318;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
|
||||
"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.78;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.topbar {
|
||||
position: sticky; top: 0; z-index: 20;
|
||||
display: flex; align-items: center; gap: 14px;
|
||||
padding: 10px 22px;
|
||||
background: rgba(255,255,255,.94);
|
||||
border-bottom: 1px solid var(--line);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.topbar a.back {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 5px 11px; border-radius: 7px;
|
||||
color: var(--brand); background: var(--brand-soft);
|
||||
font-size: 12.5px; text-decoration: none; white-space: nowrap;
|
||||
}
|
||||
.topbar a.back:hover { background: #e2ecff; }
|
||||
.topbar .crumb { color: var(--ink-3); font-size: 12.5px; }
|
||||
.topbar .crumb b { color: var(--ink-2); font-weight: 500; }
|
||||
|
||||
.page { max-width: 1020px; margin: 0 auto; padding: 30px 28px 80px; }
|
||||
.paper {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
padding: 34px 38px 44px;
|
||||
}
|
||||
h1 { margin: 0 0 8px; font-size: 25px; font-weight: 600; line-height: 1.4; }
|
||||
.subtitle { margin: 0 0 22px; color: var(--ink-2); font-size: 13px; }
|
||||
.subtitle code { background: #f2f4f7; border-radius: 3px; padding: 1px 5px; font-size: 12px; }
|
||||
h2 {
|
||||
margin: 38px 0 14px; padding-left: 11px;
|
||||
font-size: 19px; font-weight: 600;
|
||||
border-left: 4px solid var(--brand);
|
||||
line-height: 1.4;
|
||||
}
|
||||
h2:first-of-type { margin-top: 6px; }
|
||||
h3 { margin: 24px 0 8px; font-size: 15.5px; font-weight: 600; }
|
||||
p { margin: 10px 0; }
|
||||
ul, ol { margin: 8px 0; padding-left: 24px; }
|
||||
li { margin: 4px 0; }
|
||||
a { color: var(--brand); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
strong { font-weight: 600; }
|
||||
code {
|
||||
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||||
font-size: 12.3px; background: #f2f4f7; border-radius: 3px; padding: 1px 5px;
|
||||
}
|
||||
pre {
|
||||
margin: 12px 0; padding: 14px 16px; overflow: auto;
|
||||
background: #1f2430; border-radius: 8px; line-height: 1.65;
|
||||
}
|
||||
pre code { background: transparent; color: #e6e9ef; padding: 0; font-size: 12.3px; white-space: pre; }
|
||||
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
|
||||
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
|
||||
th { background: #f8f9fb; font-weight: 600; white-space: nowrap; }
|
||||
tbody tr:nth-child(even) { background: #fbfcfd; }
|
||||
.note {
|
||||
margin: 14px 0; padding: 11px 15px;
|
||||
color: var(--ink-2); background: var(--brand-soft);
|
||||
border-left: 3px solid var(--brand); border-radius: 5px; font-size: 13px;
|
||||
}
|
||||
.note p { margin: 3px 0; }
|
||||
.note.warn { background: #fff8e8; border-left-color: #d99a1a; }
|
||||
|
||||
/* 状态流 / 步骤链 */
|
||||
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
|
||||
.flow span {
|
||||
padding: 5px 12px; border-radius: 6px; font-size: 12.5px;
|
||||
background: #f3f5f8; border: 1px solid var(--line); color: var(--ink-2);
|
||||
}
|
||||
.flow span.on { background: var(--brand-soft); border-color: #c7d9fb; color: var(--brand); font-weight: 600; }
|
||||
.flow i { color: #c0c7d0; font-style: normal; }
|
||||
|
||||
/* 两列卡片 */
|
||||
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
|
||||
.card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
|
||||
.card h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; }
|
||||
.card p { margin: 0; font-size: 12.8px; color: var(--ink-2); }
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.page { padding: 16px 12px 50px; }
|
||||
.paper { padding: 22px 16px 30px; }
|
||||
.grid { grid-template-columns: 1fr; }
|
||||
.topbar { padding: 9px 12px; }
|
||||
.topbar .crumb { display: none; }
|
||||
}
|
||||
@media print {
|
||||
.topbar { display: none; }
|
||||
body { background: #fff; }
|
||||
.page { max-width: none; padding: 0; }
|
||||
.paper { border: 0; padding: 0; }
|
||||
}
|
||||
Reference in New Issue
Block a user