Files
huskies/website/app/docs/docs.css
T

432 lines
7.7 KiB
CSS

/* Outer shell */
.shell {
max-width: 1100px;
margin: 0 auto;
padding: 0 2rem;
}
@media (max-width: 640px) {
.shell { padding: 0 1.25rem; }
}
/* Header (docs) */
.shell header {
padding: 2rem 0;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
margin-bottom: 0;
}
.shell header nav a.active { color: var(--cyan); }
/* Docs layout */
.docs-layout {
display: grid;
grid-template-columns: 220px 1fr;
gap: 0;
min-height: calc(100vh - 80px);
}
/* Sidebar */
.sidebar {
border-right: 1px solid var(--border);
padding: 2.5rem 0 2.5rem 0;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}
.sidebar-section {
margin-bottom: 2rem;
}
.sidebar-heading {
font-family: var(--display);
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-dim);
padding: 0 1.5rem;
margin-bottom: 0.5rem;
}
.sidebar nav a {
display: block;
padding: 0.4rem 1.5rem;
font-size: 0.83rem;
color: var(--text-secondary);
transition: color 0.15s, background 0.15s;
border-left: 2px solid transparent;
}
.sidebar nav a:hover {
color: var(--text);
opacity: 1;
}
.sidebar nav a.active {
color: var(--cyan);
border-left-color: var(--cyan);
background: var(--cyan-dim);
}
/* Main content */
.docs-main {
padding: 2.5rem 3rem 4rem;
max-width: 780px;
}
@media (max-width: 768px) {
.docs-layout { grid-template-columns: 1fr; }
.sidebar {
position: static;
height: auto;
border-right: none;
border-bottom: 1px solid var(--border);
padding: 1.5rem 0;
}
.docs-main { padding: 2rem 0 3rem; }
}
/* Typography */
.page-title {
font-family: var(--display);
font-size: 2rem;
font-weight: 800;
letter-spacing: -0.03em;
margin-bottom: 0.5rem;
line-height: 1.2;
}
.page-subtitle {
font-size: 1rem;
color: var(--text-secondary);
font-weight: 300;
margin-bottom: 3rem;
line-height: 1.7;
max-width: 560px;
}
h2 {
font-family: var(--display);
font-size: 1.25rem;
font-weight: 700;
letter-spacing: -0.02em;
margin: 3rem 0 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
scroll-margin-top: 2rem;
}
h2:first-of-type {
margin-top: 0;
padding-top: 0;
border-top: none;
}
h3 {
font-family: var(--display);
font-size: 0.95rem;
font-weight: 600;
margin: 1.8rem 0 0.5rem;
}
p {
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 1rem;
}
p strong {
color: var(--text);
font-weight: 600;
}
ul, ol {
padding-left: 1.4rem;
margin-bottom: 1rem;
}
li {
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 0.2rem;
}
li strong {
color: var(--text);
font-weight: 600;
}
/* Code */
code {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 0.8rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.1em 0.4em;
color: var(--cyan);
}
pre {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1.2rem 1.4rem;
overflow-x: auto;
margin: 1rem 0 1.5rem;
}
pre code {
background: none;
border: none;
padding: 0;
font-size: 0.82rem;
color: var(--text);
line-height: 1.7;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0 1.5rem;
font-size: 0.85rem;
}
th {
text-align: left;
font-family: var(--display);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-dim);
padding: 0.6rem 1rem;
border-bottom: 1px solid var(--border);
}
td {
padding: 0.65rem 1rem;
border-bottom: 1px solid var(--border);
color: var(--text-secondary);
vertical-align: top;
line-height: 1.6;
}
td:first-child {
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 0.8rem;
color: var(--cyan);
white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
/* Callout / note box */
.note {
background: var(--cyan-dim);
border: 1px solid rgba(34, 211, 238, 0.2);
border-radius: 6px;
padding: 1rem 1.2rem;
margin: 1.2rem 0;
font-size: 0.85rem;
color: var(--text-secondary);
line-height: 1.7;
}
.note strong {
color: var(--cyan);
font-weight: 600;
}
/* Step list */
.step-list {
list-style: none;
padding: 0;
counter-reset: steps;
}
.step-list li {
counter-increment: steps;
display: grid;
grid-template-columns: 40px 1fr;
gap: 1rem;
padding: 1.2rem 0;
border-bottom: 1px solid var(--border);
align-items: start;
}
.step-list li:first-child { border-top: 1px solid var(--border); }
.step-list li::before {
content: counter(steps, decimal-leading-zero);
font-family: var(--display);
font-size: 0.72rem;
font-weight: 700;
color: var(--text-dim);
padding-top: 0.15rem;
}
/* Command cards */
.cmd-grid {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
margin: 1rem 0 1.5rem;
}
.cmd-row {
display: grid;
grid-template-columns: 160px 1fr;
background: var(--surface);
transition: background 0.2s;
}
.cmd-row:hover { background: var(--surface-hover); }
.cmd-name {
padding: 0.9rem 1.1rem;
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 0.8rem;
color: var(--cyan);
border-right: 1px solid var(--border);
display: flex;
align-items: center;
}
.cmd-desc {
padding: 0.9rem 1.1rem;
font-size: 0.84rem;
color: var(--text-secondary);
line-height: 1.6;
display: flex;
align-items: center;
}
/* Docs index cards */
.doc-cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
margin-top: 2rem;
}
.doc-card {
background: var(--surface);
padding: 1.6rem;
transition: background 0.2s;
text-decoration: none;
display: block;
color: inherit;
}
.doc-card:hover { background: var(--surface-hover); opacity: 1; }
.doc-card-title {
font-family: var(--display);
font-size: 0.95rem;
font-weight: 600;
color: var(--text);
margin-bottom: 0.4rem;
}
.doc-card-desc {
font-size: 0.82rem;
color: var(--text-secondary);
line-height: 1.6;
}
@media (max-width: 600px) {
.doc-cards { grid-template-columns: 1fr; }
.cmd-row { grid-template-columns: 130px 1fr; }
}
/* Footer (docs) */
.shell footer {
padding: 2rem 0;
border-top: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: var(--text-dim);
margin-top: 0;
}
.shell footer a {
color: var(--text-dim);
font-size: 0.75rem;
}
.shell footer a:hover { color: var(--text-secondary); }
/* Pipeline stages (used in pipeline page) */
.pipeline-stages {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
margin: 1.5rem 0;
}
.stage-row {
display: grid;
grid-template-columns: 48px 140px 1fr;
gap: 0;
background: var(--surface);
transition: background 0.2s;
align-items: stretch;
}
.stage-row:hover { background: var(--surface-hover); }
.stage-num {
display: flex;
align-items: center;
justify-content: center;
font-family: var(--display);
font-size: 0.7rem;
font-weight: 700;
color: var(--text-dim);
border-right: 1px solid var(--border);
}
.stage-name {
display: flex;
align-items: center;
padding: 1rem 1.1rem;
font-family: var(--display);
font-size: 0.88rem;
font-weight: 600;
color: var(--text);
border-right: 1px solid var(--border);
}
.stage-desc {
padding: 1rem 1.2rem;
font-size: 0.85rem;
color: var(--text-secondary);
line-height: 1.6;
}
.stage-row.active .stage-name { color: var(--cyan); }