Port original CSS/JS/assets, rebuild home as four sections with feed fragments, expand schema (boards/notices/rooms/topics), and add page.chrome HTML overrides plus invoke html returns so Marqdo can render Django-class chrome without json glue. Co-authored-by: Cursor <cursoragent@cursor.com>
200 lines
3.4 KiB
CSS
200 lines
3.4 KiB
CSS
/* API 自动化指南页 */
|
|
.api-guide-page {
|
|
max-width: 52rem;
|
|
align-items: stretch;
|
|
text-align: left;
|
|
padding-bottom: 3rem;
|
|
}
|
|
|
|
.api-guide-hero {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.api-guide-hero .api-guide-title {
|
|
margin-top: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.api-guide-hero .anlian-page-lead {
|
|
margin-bottom: 0;
|
|
text-align: left;
|
|
max-width: none;
|
|
}
|
|
|
|
.api-guide-toc {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.api-guide-toc-title {
|
|
margin: 0 0 0.65rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
color: var(--anlian-text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.api-guide-toc ol {
|
|
margin: 0;
|
|
padding-left: 1.25rem;
|
|
line-height: 1.85;
|
|
}
|
|
|
|
.api-guide-toc a {
|
|
color: var(--anlian-accent-text);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.api-guide-toc a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.api-guide-section {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.api-guide-section h2 {
|
|
margin: 0 0 0.85rem;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--anlian-text);
|
|
border-bottom: 1px solid rgba(253, 189, 219, 0.45);
|
|
padding-bottom: 0.4rem;
|
|
}
|
|
|
|
.api-guide-section h3 {
|
|
margin: 1.1rem 0 0.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--anlian-text);
|
|
}
|
|
|
|
.api-guide-section p,
|
|
.api-guide-section li {
|
|
font-size: 0.9375rem;
|
|
line-height: 1.65;
|
|
color: var(--anlian-text);
|
|
}
|
|
|
|
.api-guide-steps {
|
|
margin: 0 0 1rem;
|
|
padding-left: 1.35rem;
|
|
}
|
|
|
|
.api-guide-steps li {
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.api-guide-list {
|
|
margin: 0;
|
|
padding-left: 1.25rem;
|
|
}
|
|
|
|
.api-guide-list li {
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.api-guide-note {
|
|
margin: 0.75rem 0 0;
|
|
padding: 0.65rem 0.85rem;
|
|
font-size: 0.8125rem;
|
|
color: var(--anlian-text-muted);
|
|
background: rgba(255, 255, 255, 0.35);
|
|
border-radius: 10px;
|
|
border-left: 3px solid var(--anlian-accent);
|
|
}
|
|
|
|
.api-guide-warn {
|
|
margin: 0.75rem 0 0;
|
|
font-size: 0.875rem;
|
|
color: #a85858;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.api-guide-code {
|
|
margin: 0.5rem 0 1rem;
|
|
padding: 0.85rem 1rem;
|
|
overflow-x: auto;
|
|
font-size: 0.8125rem;
|
|
line-height: 1.55;
|
|
background: rgba(30, 30, 40, 0.06);
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.api-guide-code code {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
color: #333;
|
|
white-space: pre;
|
|
}
|
|
|
|
.api-guide-table {
|
|
width: 100%;
|
|
margin: 0.75rem 0 1rem;
|
|
border-collapse: collapse;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.api-guide-table th,
|
|
.api-guide-table td {
|
|
padding: 0.5rem 0.65rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.api-guide-table th {
|
|
background: rgba(253, 189, 219, 0.2);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.api-guide-table code {
|
|
font-size: 0.75rem;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.api-guide-section a:not(.api-guide-btn) {
|
|
color: var(--anlian-accent-text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.api-guide-btn {
|
|
display: inline-block;
|
|
margin-top: 0.75rem;
|
|
padding: 0.45rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #fff !important;
|
|
text-decoration: none !important;
|
|
background: var(--anlian-accent-text);
|
|
border-radius: var(--anlian-radius-pill);
|
|
}
|
|
|
|
.api-guide-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.api-guide-back {
|
|
margin: 0.5rem 0 0;
|
|
text-align: center;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.api-guide-back a {
|
|
color: var(--anlian-text-muted);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.api-guide-back a:hover {
|
|
color: var(--anlian-accent-text);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
@media (max-width: 575.98px) {
|
|
.api-guide-table {
|
|
display: block;
|
|
overflow-x: auto;
|
|
}
|
|
}
|