
Some checks failed
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Build Docker Image (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Cleanup (push) Has been cancelled
180 lines
3.0 KiB
CSS
180 lines
3.0 KiB
CSS
/* Rustelo Documentation Custom Styles */
|
|
|
|
:root {
|
|
--rustelo-primary: #e53e3e;
|
|
--rustelo-secondary: #3182ce;
|
|
--rustelo-accent: #38a169;
|
|
--rustelo-dark: #2d3748;
|
|
--rustelo-light: #f7fafc;
|
|
}
|
|
|
|
/* Custom header styling */
|
|
.menu-title {
|
|
color: var(--rustelo-primary);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Code block improvements */
|
|
pre {
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Improved table styling */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
table th,
|
|
table td {
|
|
border: 1px solid #e2e8f0;
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
}
|
|
|
|
table th {
|
|
background-color: var(--rustelo-light);
|
|
font-weight: 600;
|
|
}
|
|
|
|
table tr:nth-child(even) {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
/* Feature badge styling */
|
|
.feature-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin: 0.125rem;
|
|
}
|
|
|
|
.feature-badge.enabled {
|
|
background-color: #c6f6d5;
|
|
color: #22543d;
|
|
}
|
|
|
|
.feature-badge.disabled {
|
|
background-color: #fed7d7;
|
|
color: #742a2a;
|
|
}
|
|
|
|
.feature-badge.optional {
|
|
background-color: #fef5e7;
|
|
color: #744210;
|
|
}
|
|
|
|
/* Callout boxes */
|
|
.callout {
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
border-left: 4px solid;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
.callout.note {
|
|
border-left-color: var(--rustelo-secondary);
|
|
background-color: #ebf8ff;
|
|
}
|
|
|
|
.callout.warning {
|
|
border-left-color: #ed8936;
|
|
background-color: #fffaf0;
|
|
}
|
|
|
|
.callout.tip {
|
|
border-left-color: var(--rustelo-accent);
|
|
background-color: #f0fff4;
|
|
}
|
|
|
|
.callout.danger {
|
|
border-left-color: var(--rustelo-primary);
|
|
background-color: #fff5f5;
|
|
}
|
|
|
|
/* Command line styling */
|
|
.command-line {
|
|
background-color: #1a202c;
|
|
color: #e2e8f0;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.command-line::before {
|
|
content: "$ ";
|
|
color: #48bb78;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Navigation improvements */
|
|
.chapter li.part-title {
|
|
color: var(--rustelo-primary);
|
|
font-weight: bold;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Search improvements */
|
|
#searchresults mark {
|
|
background-color: #fef5e7;
|
|
color: #744210;
|
|
}
|
|
|
|
/* Mobile improvements */
|
|
@media (max-width: 768px) {
|
|
.content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
table {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.command-line {
|
|
font-size: 0.8rem;
|
|
padding: 0.75rem;
|
|
}
|
|
}
|
|
|
|
/* Dark theme overrides */
|
|
.navy .callout.note {
|
|
background-color: #1e3a8a;
|
|
}
|
|
|
|
.navy .callout.warning {
|
|
background-color: #92400e;
|
|
}
|
|
|
|
.navy .callout.tip {
|
|
background-color: #14532d;
|
|
}
|
|
|
|
.navy .callout.danger {
|
|
background-color: #991b1b;
|
|
}
|
|
|
|
/* Print styles */
|
|
@media print {
|
|
.nav-wrapper,
|
|
.page-wrapper > .page > .menu,
|
|
.mobile-nav-chapters,
|
|
.nav-chapters,
|
|
.sidebar-scrollbox {
|
|
display: none !important;
|
|
}
|
|
|
|
.page-wrapper > .page {
|
|
left: 0 !important;
|
|
}
|
|
|
|
.content {
|
|
margin-left: 0 !important;
|
|
max-width: none !important;
|
|
}
|
|
}
|