llm_host / static /style.css
eli02's picture
Add FastAPI application with WebSocket support and authentication
546720a
:root {
--primary-color: #4f46e5;
--secondary-color: #1e40af;
--text-color: #1f2937;
--code-bg: #1e1e1e;
--border-color: #e5e7eb;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: #f9fafb;
}
.container {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 280px;
background-color: white;
border-right: 1px solid var(--border-color);
padding: 2rem;
position: fixed;
height: 100vh;
overflow-y: auto;
}
.content {
flex: 1;
padding: 2rem;
margin-left: 280px;
max-width: 1200px;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-item {
margin: 0.5rem 0;
cursor: pointer;
padding: 0.5rem;
border-radius: 0.375rem;
transition: background-color 0.2s;
}
.nav-item:hover {
background-color: #f3f4f6;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: var(--primary-color);
}
h2 {
font-size: 1.8rem;
margin: 2rem 0 1rem;
padding-top: 2rem;
border-top: 1px solid var(--border-color);
}
h3 {
font-size: 1.4rem;
margin: 1.5rem 0 1rem;
color: var(--secondary-color);
}
p {
margin-bottom: 1rem;
}
pre {
margin: 1rem 0;
padding: 1rem;
border-radius: 0.5rem;
background-color: #2d2d2d !important;
overflow-x: auto;
border: 1px solid #3f3f3f;
}
code {
font-family: 'Fira Code', monospace;
font-size: 0.9rem;
color: #e6e6e6;
}
/* Specific syntax highlighting overrides */
.language-bash {
color: #e6e6e6 !important;
}
.language-bash .token.function {
color: #87ceeb !important;
}
.language-bash .token.operator {
color: #87ceeb !important;
}
.language-bash .token.string {
color: #98c379 !important;
}
.language-json {
color: #e6e6e6 !important;
}
.language-json .token.property {
color: #87ceeb !important;
}
.language-json .token.string {
color: #98c379 !important;
}
.language-json .token.number {
color: #d19a66 !important;
}
/* Add a subtle glow effect to code blocks */
pre code {
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.endpoint {
background-color: white;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 1.5rem;
margin: 1.5rem 0;
}
.method {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
background-color: var(--primary-color);
color: white;
font-weight: 500;
margin-right: 0.5rem;
}
.endpoint-url {
font-family: 'Fira Code', monospace;
color: var(--secondary-color);
}
@media (max-width: 768px) {
.sidebar {
display: none;
}
.content {
margin-left: 0;
}
}