Files
terminal-portfolio-site/src/docs.css
2026-04-13 20:07:02 -05:00

252 lines
3.8 KiB
CSS

:root {
--base: #000000;
--text: #cdd6f4;
--subtext0: #a6adc8;
--surface0: #1a1a1a;
--surface1: #2a2a2a;
--green: #a6e3a1;
--blue: #89b4fa;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "JetBrains Mono", monospace;
background-color: var(--base);
color: var(--text);
min-height: 100vh;
padding: 2rem 1.5rem;
line-height: 1.7;
}
.container {
max-width: 650px;
margin: 0 auto;
}
.header {
margin-bottom: 3rem;
}
.back-link {
color: var(--subtext0);
text-decoration: none;
font-size: 0.85rem;
margin-bottom: 2rem;
display: inline-block;
transition: color 0.2s ease;
}
.back-link:hover {
color: var(--green);
}
.back-link:hover {
color: var(--green);
}
h1 {
color: var(--text);
font-size: 2.5rem;
margin: 1rem 0 0.5rem 0;
font-weight: 600;
}
.subtitle {
color: var(--subtext0);
font-size: 1rem;
}
.command-reference {
margin: 2rem 0 3rem 0;
}
.command-box {
background: rgba(26, 26, 26, 0.8);
border: 1px solid var(--green);
padding: 1.25rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
transition: border-color 0.2s ease;
}
.command-box:hover {
border-color: var(--blue);
}
.command-box code {
color: var(--green);
font-size: 1.1rem;
flex: 1;
}
.copy-btn {
background: none;
border: none;
color: var(--subtext0);
cursor: pointer;
padding: 0.5rem;
border-radius: 4px;
transition: all 0.2s ease;
display: flex;
align-items: center;
position: relative;
}
.copy-btn:hover {
color: var(--green);
background-color: var(--surface0);
}
.copy-btn .check-icon {
display: none;
color: var(--green);
}
.copy-btn.copied .copy-icon {
display: none;
}
.copy-btn.copied .check-icon {
display: block;
}
.sections {
display: flex;
flex-direction: column;
gap: 3rem;
}
.section {
}
h2 {
color: var(--green);
font-size: 1.5rem;
margin-bottom: 1.25rem;
font-weight: 600;
}
p {
color: var(--subtext0);
margin-bottom: 1rem;
font-size: 0.95rem;
}
strong {
color: var(--text);
font-weight: 600;
}
.breakdown-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.breakdown-item {
padding: 1rem;
border-bottom: 1px solid rgba(166, 227, 161, 0.1);
}
.breakdown-item:last-child {
border-bottom: none;
}
.breakdown-item h3 {
color: var(--blue);
font-size: 1rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.breakdown-item p {
font-size: 0.9rem;
line-height: 1.6;
}
.steps {
list-style: none;
counter-reset: step;
margin-top: 1rem;
}
.steps li {
counter-increment: step;
margin-bottom: 1.25rem;
display: flex;
gap: 1rem;
color: var(--subtext0);
font-size: 0.95rem;
}
.steps li::before {
content: counter(step, decimal-leading-zero);
color: var(--green);
font-weight: 600;
min-width: 2rem;
}
kbd {
background-color: var(--surface0);
border: 1px solid var(--surface1);
padding: 0.2rem 0.5rem;
border-radius: 4px;
color: var(--text);
font-size: 0.9em;
font-family: inherit;
}
.resources-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}
.resource-card {
display: block;
padding: 0.75rem 1rem;
background: rgba(26, 26, 26, 0.5);
border: 1px solid rgba(166, 227, 161, 0.15);
text-decoration: none;
color: var(--text);
margin: 0.5rem 0;
transition: border-color 0.2s ease, background-color 0.2s ease;
}
.resource-card:hover {
border-color: var(--green);
background: rgba(26, 26, 26, 0.7);
}
.resource-card span {
font-size: 0.9rem;
}
@media (max-width: 768px) {
body {
padding: 1.5rem 1rem;
}
h1 {
font-size: 1.8rem;
}
h2 {
font-size: 1.1rem;
}
.breakdown-grid,
.resources-grid {
grid-template-columns: 1fr;
}
}