2025-12-20 11:18:59 +00:00
|
|
|
|
.project-docs-page {
|
|
|
|
|
|
height: calc(100vh - 64px);
|
|
|
|
|
|
overflow: hidden;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--bg-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-layout {
|
|
|
|
|
|
height: 100%;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--bg-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-right: 1px solid var(--border-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
height: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--sider-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-01 01:14:02 +00:00
|
|
|
|
/* 修复 Sider 内部 flex 布局 */
|
|
|
|
|
|
.docs-sider .ant-layout-sider-children {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-20 11:18:59 +00:00
|
|
|
|
.docs-sider-header {
|
2026-05-09 02:45:30 +00:00
|
|
|
|
padding: 12px 10px 12px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-05-09 02:45:30 +00:00
|
|
|
|
gap: 10px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--header-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider-header h2 {
|
|
|
|
|
|
margin: 0;
|
2026-05-09 02:45:30 +00:00
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
letter-spacing: 0;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2026-05-09 02:45:30 +00:00
|
|
|
|
line-height: 1.1;
|
|
|
|
|
|
text-transform: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider-title-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 14px;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider-title-row h2 {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.project-back-button {
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #707480;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.project-back-button:hover {
|
|
|
|
|
|
background: rgba(17, 24, 39, 0.06);
|
|
|
|
|
|
color: #2f3440;
|
|
|
|
|
|
transform: translateX(-1px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.project-back-button:focus-visible {
|
|
|
|
|
|
outline: 2px solid rgba(22, 119, 255, 0.35);
|
|
|
|
|
|
outline-offset: 2px;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider-actions {
|
|
|
|
|
|
display: flex;
|
2026-01-01 14:41:10 +00:00
|
|
|
|
align-items: center;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-11 07:27:52 +00:00
|
|
|
|
.mode-actions-row {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mode-actions-group {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-sider-actions .mode-actions-group .ant-btn {
|
2026-01-01 14:41:10 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color-secondary);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-11 07:27:52 +00:00
|
|
|
|
.docs-sider-actions .mode-actions-group .ant-btn:hover {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--item-hover-bg);
|
|
|
|
|
|
border-color: var(--border-color);
|
|
|
|
|
|
color: var(--link-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-menu {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
2026-04-01 01:14:02 +00:00
|
|
|
|
overflow-x: hidden;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
border-right: none;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--sider-bg);
|
|
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-09 02:45:30 +00:00
|
|
|
|
.docs-menu .ant-menu-item,
|
|
|
|
|
|
.docs-menu .ant-menu-submenu-title {
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-31 05:44:03 +00:00
|
|
|
|
.docs-menu .ant-menu-title-content {
|
2026-05-09 02:45:30 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
min-width: 0;
|
2025-12-31 05:44:03 +00:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-09 02:45:30 +00:00
|
|
|
|
.docs-menu-label {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-menu-label-text {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
white-space: nowrap;
|
2025-12-31 05:44:03 +00:00
|
|
|
|
overflow: hidden;
|
2026-05-09 02:45:30 +00:00
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-menu-share-icon {
|
|
|
|
|
|
color: var(--link-color);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
flex: none;
|
|
|
|
|
|
opacity: 0.9;
|
2025-12-31 05:44:03 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-20 11:18:59 +00:00
|
|
|
|
.docs-content-layout {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
height: 100%;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--bg-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-toc-sider {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-left: 1px solid var(--border-color);
|
|
|
|
|
|
background: var(--bg-color-secondary) !important;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
height: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-09 06:20:38 +00:00
|
|
|
|
.docs-toc-sider .ant-layout-sider-children {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-20 11:18:59 +00:00
|
|
|
|
.toc-header {
|
|
|
|
|
|
padding: 16px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--header-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-header h3 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 600;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-content {
|
|
|
|
|
|
flex: 1;
|
2026-05-09 06:20:38 +00:00
|
|
|
|
min-height: 0;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-content .ant-anchor {
|
2026-05-09 06:20:38 +00:00
|
|
|
|
display: block;
|
|
|
|
|
|
min-height: max-content;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
padding-left: 0;
|
2026-01-01 14:41:10 +00:00
|
|
|
|
padding-bottom: 65px;
|
|
|
|
|
|
/* 给Anchor组件添加底部内边距,避免最后一项被遮挡 */
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-content .ant-anchor-link {
|
|
|
|
|
|
padding: 6px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-content .ant-anchor-link-title {
|
|
|
|
|
|
font-size: 13px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color-secondary);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-01 14:41:10 +00:00
|
|
|
|
.toc-content .ant-anchor-link-active>.ant-anchor-link-title {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--link-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-empty {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color-secondary);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
margin-top: 40px;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toc-toggle-btn {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
right: 24px;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-content {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
overflow-y: auto;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background: var(--bg-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-11 07:27:52 +00:00
|
|
|
|
.docs-content-header {
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 5;
|
|
|
|
|
|
min-height: 57px;
|
|
|
|
|
|
padding: 16px 24px;
|
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
|
background: var(--header-bg);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-content-header h3 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text-color);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-12-20 11:18:59 +00:00
|
|
|
|
.docs-content-wrapper {
|
|
|
|
|
|
max-width: 900px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
padding: 24px;
|
2025-12-31 05:44:03 +00:00
|
|
|
|
min-height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* PDF模式下使用全宽 */
|
|
|
|
|
|
.docs-content-wrapper.pdf-mode {
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.docs-loading {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
min-height: 400px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body {
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
line-height: 1.6;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
|
|
|
|
|
background-color: var(--bg-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
padding-bottom: 8px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
padding-bottom: 8px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-31 03:41:20 +00:00
|
|
|
|
.markdown-body h3,
|
|
|
|
|
|
.markdown-body h4,
|
|
|
|
|
|
.markdown-body h5,
|
|
|
|
|
|
.markdown-body h6 {
|
2025-12-20 11:18:59 +00:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
margin-bottom: 12px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-31 03:41:20 +00:00
|
|
|
|
.markdown-body h3 { font-size: 20px; }
|
|
|
|
|
|
|
2025-12-20 11:18:59 +00:00
|
|
|
|
.markdown-body p {
|
|
|
|
|
|
margin-bottom: 16px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body code {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background-color: var(--code-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
|
|
|
|
font-size: 14px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body pre {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background-color: var(--code-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
padding: 16px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
padding: 0;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: inherit;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
|
|
|
padding: 0 16px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border-left: 4px solid var(--blockquote-border-color);
|
|
|
|
|
|
color: var(--blockquote-text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body table {
|
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-bottom: 16px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
display: block;
|
|
|
|
|
|
overflow-x: auto;
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body th,
|
|
|
|
|
|
.markdown-body td {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
border: 1px solid var(--table-border-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
padding: 8px 13px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body th {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
background-color: var(--table-header-bg);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body img {
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body a {
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--link-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body a:hover {
|
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body ul,
|
|
|
|
|
|
.markdown-body ol {
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
padding-left: 2em;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
color: var(--text-color);
|
2025-12-20 11:18:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.markdown-body li {
|
|
|
|
|
|
margin-bottom: 4px;
|
2026-01-31 03:41:20 +00:00
|
|
|
|
}
|