mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-06 15:07:58 +00:00
1058 lines
22 KiB
CSS
1058 lines
22 KiB
CSS
/* ===== Reset & Base ===== */
|
||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||
|
||
:root {
|
||
/* Docker brand palette */
|
||
--docker-blue: #1D63ED;
|
||
--docker-blue-hover: #1854D1;
|
||
--docker-blue-light: #4A8AF4;
|
||
--docker-navy: #09101F;
|
||
--docker-navy-light: #111827;
|
||
|
||
/* Colors – dark theme (default, docker-branded) */
|
||
--bg: #09101F;
|
||
--bg-sidebar: #0D1525;
|
||
--bg-code: rgba(255,255,255,0.05);
|
||
--bg-code-block: #0B1120;
|
||
--bg-card: rgba(255,255,255,0.03);
|
||
--bg-hover: rgba(255,255,255,0.06);
|
||
|
||
--text: #E8ECF2;
|
||
--text-secondary: #94A3B8;
|
||
--text-muted: #64748B;
|
||
--text-sidebar: #94A3B8;
|
||
--text-sidebar-active: #E8ECF2;
|
||
--text-code: #7DD3FC;
|
||
--text-on-hero: #ffffff;
|
||
|
||
--border: rgba(255,255,255,0.08);
|
||
--border-light: rgba(255,255,255,0.05);
|
||
|
||
--accent: #1D63ED;
|
||
--accent-hover: #4A8AF4;
|
||
--accent-light: rgba(29,99,237,0.12);
|
||
|
||
--success: #34D399;
|
||
--warning: #FBBF24;
|
||
--error: #F87171;
|
||
--info: #60A5FA;
|
||
|
||
--shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
|
||
--shadow-md: 0 4px 16px rgba(0,0,0,0.4);
|
||
--shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
|
||
|
||
--radius: 8px;
|
||
--radius-lg: 12px;
|
||
|
||
--sidebar-width: 260px;
|
||
--header-height: 56px;
|
||
--toc-width: 220px;
|
||
|
||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
--font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
|
||
}
|
||
|
||
/* Light theme override */
|
||
[data-theme="light"] {
|
||
--bg: #FAFBFC;
|
||
--bg-sidebar: #F3F4F6;
|
||
--bg-code: #F1F5F9;
|
||
--bg-code-block: #0F172A;
|
||
--bg-card: #FFFFFF;
|
||
--bg-hover: #E5E7EB;
|
||
|
||
--text: #0F172A;
|
||
--text-secondary: #475569;
|
||
--text-muted: #94A3B8;
|
||
--text-sidebar: #475569;
|
||
--text-sidebar-active: #0F172A;
|
||
--text-code: #1D63ED;
|
||
|
||
--border: #E2E8F0;
|
||
--border-light: #F1F5F9;
|
||
|
||
--accent: #1D63ED;
|
||
--accent-hover: #1854D1;
|
||
--accent-light: #EFF6FF;
|
||
}
|
||
|
||
/* ===== Skip link (accessibility) ===== */
|
||
.skip-link {
|
||
position: absolute;
|
||
top: -100%;
|
||
left: 16px;
|
||
background: var(--accent);
|
||
color: white;
|
||
padding: 8px 16px;
|
||
border-radius: var(--radius);
|
||
z-index: 9999;
|
||
font-weight: 600;
|
||
font-size: 0.875rem;
|
||
text-decoration: none;
|
||
transition: top 0.2s;
|
||
}
|
||
.skip-link:focus {
|
||
top: 8px;
|
||
}
|
||
|
||
/* ===== Typography ===== */
|
||
html { font-size: 16px; scroll-behavior: smooth; }
|
||
|
||
body {
|
||
font-family: var(--font-sans);
|
||
color: var(--text);
|
||
background: var(--bg);
|
||
line-height: 1.7;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
/* ===== Header ===== */
|
||
.header {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: var(--header-height);
|
||
border-bottom: 1px solid var(--border);
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 24px;
|
||
z-index: 100;
|
||
backdrop-filter: blur(16px) saturate(180%);
|
||
background: rgba(9,16,31,0.8);
|
||
}
|
||
[data-theme="light"] .header {
|
||
background: rgba(250,251,252,0.85);
|
||
}
|
||
|
||
.header-inner {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
width: 100%;
|
||
max-width: 1600px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.header-logo {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
text-decoration: none;
|
||
font-weight: 700;
|
||
font-size: 1.05rem;
|
||
color: var(--text);
|
||
letter-spacing: -0.01em;
|
||
}
|
||
.header-logo:hover {
|
||
text-decoration: none;
|
||
}
|
||
.header-logo svg {
|
||
width: 32px;
|
||
height: 32px;
|
||
flex-shrink: 0;
|
||
}
|
||
.header-logo .logo-divider {
|
||
width: 1px;
|
||
height: 20px;
|
||
background: var(--border);
|
||
margin: 0 2px;
|
||
}
|
||
.header-logo .logo-label {
|
||
font-weight: 400;
|
||
color: var(--text-muted);
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.header-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.header-search {
|
||
position: relative;
|
||
}
|
||
.header-search input {
|
||
width: 220px;
|
||
padding: 7px 12px 7px 34px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
background: var(--bg-hover);
|
||
color: var(--text);
|
||
font-size: 0.8rem;
|
||
outline: none;
|
||
transition: border-color 0.2s, box-shadow 0.2s, width 0.2s;
|
||
}
|
||
.header-search input:focus {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 3px var(--accent-light);
|
||
width: 280px;
|
||
}
|
||
.header-search .search-icon {
|
||
position: absolute;
|
||
left: 10px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
color: var(--text-muted);
|
||
width: 15px;
|
||
height: 15px;
|
||
}
|
||
|
||
.btn-icon {
|
||
background: none;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 7px;
|
||
cursor: pointer;
|
||
color: var(--text-muted);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: all 0.2s;
|
||
}
|
||
.btn-icon:hover {
|
||
background: var(--bg-hover);
|
||
color: var(--text);
|
||
border-color: var(--text-muted);
|
||
}
|
||
.btn-icon svg { width: 16px; height: 16px; }
|
||
|
||
.github-link {
|
||
text-decoration: none;
|
||
color: var(--text-muted);
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 7px;
|
||
border-radius: var(--radius);
|
||
border: 1px solid var(--border);
|
||
transition: all 0.2s;
|
||
}
|
||
.github-link:hover {
|
||
color: var(--text);
|
||
background: var(--bg-hover);
|
||
border-color: var(--text-muted);
|
||
}
|
||
.github-link svg { width: 16px; height: 16px; }
|
||
|
||
/* ===== Sidebar ===== */
|
||
.sidebar {
|
||
position: fixed;
|
||
top: var(--header-height);
|
||
left: 0;
|
||
bottom: 0;
|
||
width: var(--sidebar-width);
|
||
background: var(--bg-sidebar);
|
||
border-right: 1px solid var(--border);
|
||
overflow-y: auto;
|
||
padding: 16px 0;
|
||
z-index: 50;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: var(--border) transparent;
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
.sidebar-section {
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.sidebar-heading {
|
||
padding: 10px 20px 6px;
|
||
font-size: 0.65rem;
|
||
font-weight: 700;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.1em;
|
||
color: var(--text-muted);
|
||
user-select: none;
|
||
}
|
||
|
||
.sidebar-link {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 5px 20px 5px 24px;
|
||
font-size: 0.825rem;
|
||
color: var(--text-sidebar);
|
||
text-decoration: none;
|
||
transition: all 0.12s;
|
||
border-left: 2px solid transparent;
|
||
cursor: pointer;
|
||
}
|
||
.sidebar-link:hover {
|
||
background: var(--bg-hover);
|
||
color: var(--text);
|
||
}
|
||
.sidebar-link:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: -2px;
|
||
}
|
||
.sidebar-link.active {
|
||
color: var(--text-sidebar-active);
|
||
background: var(--accent-light);
|
||
border-left-color: var(--accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* Mobile sidebar toggle */
|
||
.sidebar-toggle {
|
||
display: none;
|
||
position: fixed;
|
||
bottom: 20px;
|
||
left: 20px;
|
||
z-index: 200;
|
||
background: var(--accent);
|
||
color: white;
|
||
border: none;
|
||
border-radius: 50%;
|
||
width: 44px;
|
||
height: 44px;
|
||
cursor: pointer;
|
||
box-shadow: var(--shadow-lg);
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.sidebar-toggle svg { width: 20px; height: 20px; }
|
||
|
||
/* ===== Main Content ===== */
|
||
.main {
|
||
margin-left: var(--sidebar-width);
|
||
margin-top: var(--header-height);
|
||
flex: 1;
|
||
min-width: 0;
|
||
position: relative;
|
||
}
|
||
|
||
.content {
|
||
max-width: 800px;
|
||
margin: 0 auto;
|
||
padding: 40px 48px 80px;
|
||
}
|
||
|
||
/* ===== Table of Contents (right sidebar) ===== */
|
||
.toc-aside {
|
||
position: fixed;
|
||
top: var(--header-height);
|
||
right: 0;
|
||
width: var(--toc-width);
|
||
height: calc(100vh - var(--header-height));
|
||
padding: 32px 16px 32px 0;
|
||
overflow-y: auto;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: var(--border) transparent;
|
||
}
|
||
|
||
.toc-inner {
|
||
border-left: 1px solid var(--border);
|
||
padding-left: 16px;
|
||
}
|
||
|
||
.toc-title {
|
||
font-size: 0.65rem;
|
||
font-weight: 700;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.1em;
|
||
color: var(--text-muted);
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.toc-nav {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.toc-link {
|
||
font-size: 0.78rem;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
padding: 3px 0;
|
||
line-height: 1.4;
|
||
transition: color 0.12s;
|
||
border-left: 2px solid transparent;
|
||
margin-left: -17px;
|
||
padding-left: 15px;
|
||
}
|
||
.toc-link:hover {
|
||
color: var(--text);
|
||
}
|
||
.toc-link:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.toc-link.active {
|
||
color: var(--accent);
|
||
border-left-color: var(--accent);
|
||
}
|
||
.toc-link.toc-h3 {
|
||
padding-left: 27px;
|
||
font-size: 0.72rem;
|
||
}
|
||
|
||
@media (min-width: 1280px) {
|
||
.content {
|
||
margin-left: 48px;
|
||
margin-right: calc(var(--toc-width) + 48px);
|
||
}
|
||
}
|
||
|
||
/* ===== Content Styles ===== */
|
||
.content h1 {
|
||
font-size: 2.25rem;
|
||
font-weight: 800;
|
||
line-height: 1.15;
|
||
margin-bottom: 12px;
|
||
letter-spacing: -0.03em;
|
||
color: var(--text);
|
||
}
|
||
.content h2 {
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
margin-top: 48px;
|
||
margin-bottom: 16px;
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid var(--border);
|
||
letter-spacing: -0.02em;
|
||
scroll-margin-top: calc(var(--header-height) + 16px);
|
||
}
|
||
.content h3 {
|
||
font-size: 1.15rem;
|
||
font-weight: 600;
|
||
margin-top: 32px;
|
||
margin-bottom: 12px;
|
||
scroll-margin-top: calc(var(--header-height) + 16px);
|
||
}
|
||
.content h4 {
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
margin-top: 24px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.content p {
|
||
margin-bottom: 16px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.content a {
|
||
color: var(--accent-hover);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
transition: color 0.12s;
|
||
}
|
||
[data-theme="light"] .content a {
|
||
color: var(--accent);
|
||
}
|
||
.content a:hover {
|
||
color: var(--docker-blue-light);
|
||
text-decoration: underline;
|
||
}
|
||
.content a:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.content ul, .content ol {
|
||
margin-bottom: 16px;
|
||
padding-left: 24px;
|
||
}
|
||
.content li {
|
||
margin-bottom: 6px;
|
||
color: var(--text-secondary);
|
||
}
|
||
.content li strong {
|
||
color: var(--text);
|
||
}
|
||
|
||
.content > .subtitle {
|
||
font-size: 1.1rem;
|
||
color: var(--text-muted);
|
||
margin-bottom: 32px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
/* Inline code */
|
||
.content code {
|
||
font-family: var(--font-mono);
|
||
font-size: 0.85em;
|
||
background: var(--bg-code);
|
||
color: var(--text-code);
|
||
padding: 2px 7px;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
/* Code blocks */
|
||
.content pre {
|
||
background: var(--bg-code-block);
|
||
border-radius: var(--radius);
|
||
padding: 20px 24px;
|
||
margin-bottom: 20px;
|
||
overflow-x: auto;
|
||
border: 1px solid var(--border);
|
||
position: relative;
|
||
}
|
||
.content pre code {
|
||
background: none;
|
||
color: #CBD5E1;
|
||
padding: 0;
|
||
font-size: 0.84rem;
|
||
line-height: 1.65;
|
||
border: none;
|
||
}
|
||
|
||
/* Rouge / highlighter-rouge overrides */
|
||
.content pre[class*="language-"],
|
||
.content code[class*="language-"],
|
||
.content .highlighter-rouge pre.highlight,
|
||
.content .highlighter-rouge pre.highlight code {
|
||
background: var(--bg-code-block);
|
||
color: #CBD5E1;
|
||
text-shadow: none;
|
||
}
|
||
|
||
.content .highlighter-rouge {
|
||
margin-bottom: 20px;
|
||
}
|
||
.content .highlighter-rouge .highlight {
|
||
margin: 0;
|
||
}
|
||
.content .highlighter-rouge pre.highlight {
|
||
margin: 0;
|
||
border-radius: var(--radius);
|
||
padding: 20px 24px;
|
||
border: 1px solid var(--border);
|
||
overflow-x: auto;
|
||
position: relative;
|
||
}
|
||
.content .highlighter-rouge pre.highlight code {
|
||
padding: 0;
|
||
font-size: 0.84rem;
|
||
line-height: 1.65;
|
||
background: none;
|
||
border: none;
|
||
}
|
||
|
||
.content .highlighter-rouge code {
|
||
background: none;
|
||
color: #CBD5E1;
|
||
padding: 0;
|
||
border: none;
|
||
}
|
||
|
||
/* Rouge syntax token colors – Docker-blue-tinted dark theme */
|
||
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #4A5568; font-style: italic; }
|
||
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr { color: #A78BFA; }
|
||
.highlight .kc { color: #F59E0B; }
|
||
.highlight .kt { color: #FBBF24; }
|
||
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sh { color: #34D399; }
|
||
.highlight .na { color: #7DD3FC; }
|
||
.highlight .nb, .highlight .bp { color: #60A5FA; }
|
||
.highlight .nc, .highlight .nn { color: #FBBF24; }
|
||
.highlight .nf, .highlight .fm { color: #60A5FA; }
|
||
.highlight .no { color: #F59E0B; }
|
||
.highlight .ni { color: #CBD5E1; }
|
||
.highlight .ne { color: #F87171; }
|
||
.highlight .nv, .highlight .vi, .highlight .vc, .highlight .vg { color: #F87171; }
|
||
.highlight .o, .highlight .ow { color: #22D3EE; }
|
||
.highlight .p, .highlight .pi { color: #CBD5E1; }
|
||
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #F59E0B; }
|
||
.highlight .sr { color: #34D399; }
|
||
.highlight .ss { color: #22D3EE; }
|
||
.highlight .nt { color: #F87171; }
|
||
.highlight .err { color: #F87171; }
|
||
.highlight .gh { color: #CBD5E1; font-weight: bold; }
|
||
.highlight .gd { color: #F87171; }
|
||
.highlight .gi { color: #34D399; }
|
||
.highlight .w { color: #CBD5E1; }
|
||
|
||
/* ===== Tables ===== */
|
||
.content table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
margin-bottom: 24px;
|
||
font-size: 0.875rem;
|
||
}
|
||
.content th {
|
||
text-align: left;
|
||
padding: 10px 14px;
|
||
background: var(--bg-code);
|
||
border: 1px solid var(--border);
|
||
font-weight: 600;
|
||
font-size: 0.825rem;
|
||
color: var(--text);
|
||
}
|
||
.content td {
|
||
padding: 10px 14px;
|
||
border: 1px solid var(--border);
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
/* ===== Callouts / Admonitions ===== */
|
||
.callout {
|
||
padding: 16px 20px;
|
||
border-radius: var(--radius);
|
||
margin-bottom: 20px;
|
||
border-left: 3px solid;
|
||
font-size: 0.875rem;
|
||
background: var(--bg-card);
|
||
}
|
||
.callout p { margin-bottom: 0; }
|
||
.callout-title {
|
||
font-weight: 700;
|
||
font-size: 0.75rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.callout-info {
|
||
border-color: var(--info);
|
||
color: var(--info);
|
||
}
|
||
.callout-info p { color: var(--text-secondary); }
|
||
|
||
.callout-tip {
|
||
border-color: var(--success);
|
||
color: var(--success);
|
||
}
|
||
.callout-tip p { color: var(--text-secondary); }
|
||
|
||
.callout-warning {
|
||
border-color: var(--warning);
|
||
color: var(--warning);
|
||
}
|
||
.callout-warning p { color: var(--text-secondary); }
|
||
|
||
[data-theme="light"] .callout-info {
|
||
background: #EFF6FF;
|
||
border-color: var(--accent);
|
||
color: #1E40AF;
|
||
}
|
||
[data-theme="light"] .callout-info p { color: #1E40AF; }
|
||
[data-theme="light"] .callout-tip {
|
||
background: #ECFDF5;
|
||
border-color: #10B981;
|
||
color: #065F46;
|
||
}
|
||
[data-theme="light"] .callout-tip p { color: #065F46; }
|
||
[data-theme="light"] .callout-warning {
|
||
background: #FFFBEB;
|
||
border-color: #F59E0B;
|
||
color: #92400E;
|
||
}
|
||
[data-theme="light"] .callout-warning p { color: #92400E; }
|
||
|
||
/* ===== Cards Grid ===== */
|
||
.cards {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||
gap: 12px;
|
||
margin-bottom: 24px;
|
||
}
|
||
.card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
text-decoration: none;
|
||
color: var(--text);
|
||
transition: all 0.2s;
|
||
cursor: pointer;
|
||
}
|
||
.card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 20px rgba(29,99,237,0.1);
|
||
transform: translateY(-2px);
|
||
text-decoration: none;
|
||
}
|
||
.card:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
.card-icon {
|
||
font-size: 1.4rem;
|
||
margin-bottom: 10px;
|
||
}
|
||
.card h3 {
|
||
font-size: 0.95rem;
|
||
margin-top: 0;
|
||
margin-bottom: 6px;
|
||
font-weight: 600;
|
||
}
|
||
.card p {
|
||
font-size: 0.825rem;
|
||
margin-bottom: 0;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ===== Hero section (home page) ===== */
|
||
.hero {
|
||
background: linear-gradient(145deg, #09101F 0%, #0D1D3A 40%, #1D63ED 100%);
|
||
color: var(--text-on-hero);
|
||
padding: 64px 48px;
|
||
border-radius: var(--radius-lg);
|
||
margin-bottom: 48px;
|
||
text-align: center;
|
||
position: relative;
|
||
overflow: hidden;
|
||
border: 1px solid rgba(29,99,237,0.2);
|
||
}
|
||
[data-theme="light"] .hero {
|
||
background: linear-gradient(145deg, #0F172A 0%, #1E3A5F 40%, #1D63ED 100%);
|
||
}
|
||
.hero::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: radial-gradient(ellipse at 70% 20%, rgba(29,99,237,0.3) 0%, transparent 60%);
|
||
pointer-events: none;
|
||
}
|
||
.hero h1 {
|
||
font-size: 2.75rem;
|
||
font-weight: 800;
|
||
margin-bottom: 16px;
|
||
color: white;
|
||
letter-spacing: -0.03em;
|
||
position: relative;
|
||
}
|
||
.hero p {
|
||
font-size: 1.1rem;
|
||
opacity: 0.85;
|
||
max-width: 600px;
|
||
margin: 0 auto 32px;
|
||
color: rgba(255,255,255,0.85);
|
||
position: relative;
|
||
line-height: 1.6;
|
||
}
|
||
.hero-buttons {
|
||
display: flex;
|
||
gap: 12px;
|
||
justify-content: center;
|
||
flex-wrap: wrap;
|
||
position: relative;
|
||
}
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 10px 22px;
|
||
border-radius: var(--radius);
|
||
font-weight: 600;
|
||
font-size: 0.9rem;
|
||
text-decoration: none;
|
||
transition: all 0.2s;
|
||
cursor: pointer;
|
||
border: none;
|
||
}
|
||
.btn-primary {
|
||
background: white;
|
||
color: #1D63ED;
|
||
}
|
||
.btn-primary:hover {
|
||
background: #F0F4FF;
|
||
text-decoration: none;
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
||
}
|
||
.btn-secondary {
|
||
background: rgba(255,255,255,0.1);
|
||
color: white;
|
||
border: 1px solid rgba(255,255,255,0.2);
|
||
backdrop-filter: blur(8px);
|
||
}
|
||
.btn-secondary:hover {
|
||
background: rgba(255,255,255,0.18);
|
||
text-decoration: none;
|
||
}
|
||
|
||
/* Feature grid on home */
|
||
.features-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||
gap: 16px;
|
||
margin-bottom: 40px;
|
||
}
|
||
.feature {
|
||
padding: 24px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
background: var(--bg-card);
|
||
transition: border-color 0.2s;
|
||
}
|
||
.feature:hover {
|
||
border-color: rgba(29,99,237,0.3);
|
||
}
|
||
.feature-icon {
|
||
font-size: 1.5rem;
|
||
margin-bottom: 10px;
|
||
}
|
||
.feature h3 {
|
||
font-size: 1rem;
|
||
margin-top: 0;
|
||
margin-bottom: 8px;
|
||
}
|
||
.feature p {
|
||
font-size: 0.85rem;
|
||
color: var(--text-muted);
|
||
margin: 0;
|
||
line-height: 1.55;
|
||
}
|
||
|
||
/* ===== Demo GIF ===== */
|
||
.demo-container {
|
||
margin: 32px 0;
|
||
border-radius: var(--radius-lg);
|
||
overflow: hidden;
|
||
border: 1px solid var(--border);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
.demo-container img {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
}
|
||
|
||
/* ===== Page navigation (prev/next) ===== */
|
||
.page-nav {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
margin-top: 64px;
|
||
padding-top: 24px;
|
||
border-top: 1px solid var(--border);
|
||
gap: 16px;
|
||
}
|
||
.page-nav a {
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 14px 18px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
text-decoration: none;
|
||
transition: all 0.2s;
|
||
flex: 1;
|
||
max-width: 50%;
|
||
}
|
||
.page-nav a:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 16px rgba(29,99,237,0.08);
|
||
text-decoration: none;
|
||
}
|
||
.page-nav .nav-label {
|
||
font-size: 0.7rem;
|
||
color: var(--text-muted);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
margin-bottom: 4px;
|
||
}
|
||
.page-nav .nav-title {
|
||
font-weight: 600;
|
||
color: var(--accent);
|
||
font-size: 0.9rem;
|
||
}
|
||
.page-nav .next { text-align: right; margin-left: auto; }
|
||
|
||
/* ===== Search overlay ===== */
|
||
.search-overlay {
|
||
display: none;
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0,0,0,0.6);
|
||
backdrop-filter: blur(4px);
|
||
z-index: 1000;
|
||
align-items: flex-start;
|
||
justify-content: center;
|
||
padding-top: 100px;
|
||
}
|
||
.search-overlay.active { display: flex; }
|
||
.search-modal {
|
||
background: var(--bg-sidebar);
|
||
border-radius: var(--radius-lg);
|
||
width: 90%;
|
||
max-width: 560px;
|
||
max-height: 70vh;
|
||
overflow: hidden;
|
||
box-shadow: var(--shadow-lg);
|
||
border: 1px solid var(--border);
|
||
}
|
||
.search-modal input {
|
||
width: 100%;
|
||
padding: 14px 20px;
|
||
border: none;
|
||
border-bottom: 1px solid var(--border);
|
||
background: transparent;
|
||
color: var(--text);
|
||
font-size: 0.95rem;
|
||
outline: none;
|
||
font-family: var(--font-sans);
|
||
}
|
||
.search-results {
|
||
overflow-y: auto;
|
||
max-height: calc(70vh - 56px);
|
||
padding: 8px;
|
||
}
|
||
.search-result {
|
||
display: block;
|
||
padding: 8px 14px;
|
||
border-radius: var(--radius);
|
||
cursor: pointer;
|
||
transition: background 0.12s;
|
||
text-decoration: none;
|
||
color: var(--text);
|
||
}
|
||
.search-result:hover,
|
||
.search-result:focus {
|
||
background: var(--bg-hover);
|
||
outline: none;
|
||
text-decoration: none;
|
||
}
|
||
.search-result-title {
|
||
font-weight: 500;
|
||
font-size: 0.85rem;
|
||
color: var(--text);
|
||
}
|
||
.search-result-group {
|
||
padding: 10px 14px 4px;
|
||
font-size: 0.65rem;
|
||
font-weight: 700;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.1em;
|
||
color: var(--text-muted);
|
||
user-select: none;
|
||
}
|
||
.search-result-group:not(:first-child) {
|
||
margin-top: 4px;
|
||
border-top: 1px solid var(--border);
|
||
padding-top: 10px;
|
||
}
|
||
.search-result-match {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
margin-top: 2px;
|
||
font-style: italic;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.search-empty {
|
||
padding: 24px;
|
||
text-align: center;
|
||
color: var(--text-muted);
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
/* ===== Responsive ===== */
|
||
@media (max-width: 1280px) {
|
||
.toc-aside { display: none; }
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.sidebar {
|
||
transform: translateX(-100%);
|
||
}
|
||
.sidebar.open {
|
||
transform: translateX(0);
|
||
}
|
||
.sidebar-toggle {
|
||
display: flex;
|
||
}
|
||
.main {
|
||
margin-left: 0;
|
||
}
|
||
.content {
|
||
padding: 32px 24px 80px;
|
||
}
|
||
.hero {
|
||
padding: 40px 24px;
|
||
}
|
||
.hero h1 { font-size: 2rem; }
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.header-search input { width: 140px; }
|
||
.content h1 { font-size: 1.75rem; }
|
||
.cards { grid-template-columns: 1fr; }
|
||
.features-grid { grid-template-columns: 1fr; }
|
||
.page-nav { flex-direction: column; }
|
||
.page-nav a { max-width: 100%; }
|
||
}
|
||
|
||
/* ===== Scrollbar ===== */
|
||
::-webkit-scrollbar { width: 6px; }
|
||
::-webkit-scrollbar-track { background: transparent; }
|
||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
||
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
|
||
|
||
/* ===== Transitions ===== */
|
||
.content { animation: fadeIn 0.15s ease; }
|
||
@keyframes fadeIn {
|
||
from { opacity: 0; transform: translateY(6px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
/* ===== Keyboard shortcut badge ===== */
|
||
kbd {
|
||
display: inline-block;
|
||
padding: 2px 6px;
|
||
font-family: var(--font-mono);
|
||
font-size: 0.72rem;
|
||
color: var(--text-muted);
|
||
background: var(--bg-code);
|
||
border: 1px solid var(--border);
|
||
border-radius: 4px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
/* ===== Copy button on code blocks ===== */
|
||
.copy-btn {
|
||
position: absolute;
|
||
top: 8px;
|
||
right: 8px;
|
||
background: rgba(255,255,255,0.06);
|
||
border: 1px solid rgba(255,255,255,0.1);
|
||
border-radius: 4px;
|
||
color: #64748B;
|
||
cursor: pointer;
|
||
padding: 3px 8px;
|
||
font-size: 0.7rem;
|
||
font-family: var(--font-mono);
|
||
opacity: 0;
|
||
transition: opacity 0.2s, background 0.2s;
|
||
}
|
||
pre:hover .copy-btn { opacity: 1; }
|
||
.copy-btn:hover { background: rgba(255,255,255,0.12); color: #94A3B8; }
|
||
.copy-btn.copied { color: var(--success); border-color: var(--success); }
|
||
|
||
/* ===== Print stylesheet ===== */
|
||
@media print {
|
||
.header, .sidebar, .sidebar-toggle, .toc-aside,
|
||
.search-overlay, .page-nav, .copy-btn, .hero-buttons {
|
||
display: none !important;
|
||
}
|
||
.main {
|
||
margin-left: 0 !important;
|
||
margin-top: 0 !important;
|
||
}
|
||
.content {
|
||
max-width: 100% !important;
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
}
|
||
.content pre {
|
||
border: 1px solid #ccc;
|
||
background: #f8f8f8 !important;
|
||
}
|
||
.content pre code { color: #333 !important; }
|
||
.callout { break-inside: avoid; }
|
||
a[href]::after {
|
||
content: " (" attr(href) ")";
|
||
font-size: 0.8em;
|
||
color: #666;
|
||
}
|
||
a[href^="#"]::after,
|
||
a[href^="javascript:"]::after {
|
||
content: "";
|
||
}
|
||
}
|