litellm/docs/my-website/src/css/custom.css

916 lines
26 KiB
CSS

/**
* Global CSS overrides for LiteLLM docs.
* Infima (Docusaurus CSS framework) variables + custom styling.
*/
/* =========================================
FONTS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* =========================================
ROOT — Light Mode Variables
========================================= */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 85%;
--ifm-menu-color: #6b7280;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.08);
--ifm-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--ifm-heading-font-weight: 600;
--ifm-font-size-base: 15px;
--ifm-line-height-base: 1.65;
--ifm-border-radius: 6px;
/* Wider reading column — reduces excessive whitespace on large monitors */
--ifm-container-width: 1380px;
--ifm-container-width-xl: 1560px;
}
/* =========================================
DARK MODE Variables
========================================= */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--ifm-background-color: #0d1117;
--ifm-background-surface-color: #161b22;
--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.07);
}
/* =========================================
TYPOGRAPHY
========================================= */
.theme-doc-markdown h1 {
font-size: 2.2rem;
letter-spacing: -0.02em;
line-height: 1.2;
}
.theme-doc-markdown h2 {
font-size: 1.6rem;
letter-spacing: -0.01em;
line-height: 1.3;
}
.theme-doc-markdown h3 {
font-size: 1.25rem;
line-height: 1.4;
}
.theme-doc-markdown p,
.theme-doc-markdown ul,
.theme-doc-markdown ol {
font-size: 0.9rem;
}
.theme-doc-markdown table {
font-size: 0.875rem;
}
.theme-doc-markdown td {
font-size: 0.85rem;
}
/* =========================================
NAVBAR
========================================= */
[data-theme='light'] .navbar {
background-color: #ffffff;
box-shadow: 0 1px 0 0 #e5e7eb;
}
[data-theme='dark'] .navbar {
background-color: var(--ifm-background-color);
border-bottom: 1px solid #21262d;
box-shadow: none;
}
.navbar__link {
font-weight: 400 !important;
font-size: 14px !important;
border-bottom: 2px solid transparent !important;
padding-bottom: 2px;
}
.navbar__link--active {
font-weight: 500 !important;
border-bottom: 2px solid var(--ifm-color-primary) !important;
}
@media (max-width: 1330px) {
.navbar__link {
font-size: 13px !important;
}
}
/* Three-column navbar: logo | center nav | right icons */
@media (min-width: 997px) {
.navbar__inner {
display: flex !important;
align-items: center;
justify-content: space-between;
}
.navbar__brand-col {
display: flex;
align-items: center;
flex: 0 0 auto;
margin-left: 1rem;
}
.navbar__brand-col .navbar__brand {
font-size: 1.25rem;
}
.navbar__brand-col .navbar__logo {
height: 2rem;
width: auto;
}
.navbar__center-col {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
}
.navbar__right-col {
display: flex;
align-items: center;
flex: 0 0 auto;
gap: 0.25rem;
margin-right: 2rem;
}
}
/* =========================================
ALERTS / ADMONITIONS
========================================= */
.alert {
padding: 0.75rem 1rem;
font-size: 14px;
border-radius: var(--ifm-border-radius);
border-left-width: 3px;
}
/* Light mode */
.alert--info {
--ifm-alert-background-color: #f0f7ff !important;
--ifm-alert-border-color: #2264ab !important;
}
.alert--success {
--ifm-alert-background-color: #f0fff8 !important;
--ifm-alert-border-color: #09bda8 !important;
}
.alert--secondary {
--ifm-alert-background-color: #f8fafc !important;
--ifm-alert-border-color: #64748b !important;
}
.alert--danger {
--ifm-alert-background-color: #fff0f5 !important;
--ifm-alert-border-color: #e11d48 !important;
}
.alert--warning {
--ifm-alert-background-color: #fffbeb !important;
--ifm-alert-border-color: #d97706 !important;
}
/* Dark mode */
[data-theme='dark'] .alert--info {
--ifm-alert-background-color: #0c1e30 !important;
--ifm-alert-border-color: #3b82f6 !important;
color: #bfdbfe !important;
}
[data-theme='dark'] .alert--success {
--ifm-alert-background-color: #022c22 !important;
--ifm-alert-border-color: #10b981 !important;
}
[data-theme='dark'] .alert--secondary {
--ifm-alert-background-color: #0f172a !important;
--ifm-alert-border-color: #475569 !important;
}
[data-theme='dark'] .alert--danger {
--ifm-alert-background-color: #2d0a14 !important;
--ifm-alert-border-color: #f43f5e !important;
}
[data-theme='dark'] .alert--warning {
--ifm-alert-background-color: #1c1200 !important;
--ifm-alert-border-color: #f59e0b !important;
}
/* =========================================
COLLAPSIBLE / DETAILS
========================================= */
details {
color: #1d232e;
background-color: #ffffff;
border: 1px solid #e9eef2 !important;
border-radius: var(--ifm-border-radius) !important;
padding: 0.75rem !important;
margin-bottom: 1rem !important;
margin-top: 1.5rem !important;
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05) !important;
}
details summary {
font-weight: 600 !important;
}
details [class*='collapsibleContent'] {
border-top: 1px solid #e2e8f0 !important;
}
details [class*='collapsibleContent'] p,
details [class*='collapsibleContent'] ul {
font-size: 13px !important;
line-height: 1.75;
}
[data-theme='dark'] details {
background-color: #1c2130 !important;
color: #e5e7eb !important;
border: 1px solid #2d3748 !important;
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.3) !important;
}
[data-theme='dark'] details summary {
color: #f3f4f6 !important;
}
[data-theme='dark'] details [class*='collapsibleContent'] {
border-top: 1px solid #2d3748 !important;
}
/* =========================================
TABS
========================================= */
.tabs-container > div {
padding: 1rem;
border: 1px solid #e2e8f0;
border-radius: var(--ifm-border-radius);
}
/* Remove styling from nested tabs containers */
.tabs-container .tabs-container > div {
padding: 0;
border: none;
border-radius: 0;
}
[data-theme='dark'] .tabs-container > div {
border-color: #2d3748;
}
ul.tabs {
border-bottom: 1px solid #e2e8f0 !important;
column-gap: 0.5rem !important;
}
[data-theme='dark'] ul.tabs {
border-bottom-color: #2d3748 !important;
}
li.tabs__item {
padding: 0.5rem !important;
font-weight: 500 !important;
font-size: 14px !important;
border-bottom: 2px solid transparent !important;
}
li.tabs__item--active {
border-bottom: 2px solid var(--ifm-color-primary) !important;
}
/* =========================================
CODE BLOCKS
========================================= */
.prism-code {
border-radius: var(--ifm-border-radius);
font-size: 12.5px !important;
line-height: 1.6;
}
[data-theme='dark'] .prism-code {
border: 1px solid #21262d;
}
[class*='codeLineNumber']::before {
font-size: 12px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
[class*='codeBlockTitle'] {
font-size: 13px !important;
font-weight: 500 !important;
padding: 0.5rem 1rem !important;
border-bottom: 1px solid #334155 !important;
}
.theme-code-block-highlighted-line {
background-color: rgba(0, 0, 0, 0.1) !important;
}
[data-theme='dark'] .theme-code-block-highlighted-line {
background-color: rgba(255, 255, 255, 0.06) !important;
}
.theme-code-block-highlighted-line > span {
background-color: transparent !important;
}
/* =========================================
SIDEBAR / MENU
========================================= */
.menu {
font-weight: 400;
padding: 0.5rem 0.25rem !important;
background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px);
background-size: 24px 24px;
}
[data-theme='dark'] .menu {
background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
background-size: 24px 24px;
}
.menu__link {
font-size: 14px;
padding: 0.22rem 0.75rem !important;
border-radius: 4px;
}
.menu__link--active {
font-weight: 600 !important;
background-color: rgba(46, 133, 85, 0.08) !important;
}
[data-theme='dark'] .menu__link--active {
background-color: rgba(37, 194, 160, 0.1) !important;
}
/* ─── Sidebar collapse arrows — uniform size & alignment ────── */
/* 1. Categories WITHOUT a link prop:
The button itself holds the text + ::after arrow.
Make it flex so the arrow never wraps to a new line. */
.menu__link--sublist-caret {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 0.5rem;
padding-right: 0.625rem !important;
}
.menu__link--sublist-caret::after {
content: '' !important;
display: block !important;
flex-shrink: 0 !important;
width: 1.25rem !important;
height: 1.25rem !important;
min-width: 1.25rem !important;
background: var(--ifm-menu-link-sublist-icon) center / 1.25rem 1.25rem no-repeat !important;
margin: 0 !important;
}
/* 2. Categories WITH a link prop:
A separate <a> + <button class="menu__caret"> sit in a flex row. */
.menu__list-item-collapsible {
display: flex !important;
align-items: center !important;
border-radius: 4px;
}
.menu__list-item-collapsible > .menu__link {
flex: 1 1 auto;
min-width: 0; /* allow text to shrink/wrap without pushing arrow */
}
.menu__caret {
flex-shrink: 0 !important;
width: 2rem !important;
height: 2rem !important;
padding: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
.menu__caret::before {
content: '' !important;
display: block !important;
width: 1.25rem !important;
height: 1.25rem !important;
min-width: 1.25rem !important;
background: var(--ifm-menu-link-sublist-icon) center / 1.25rem 1.25rem no-repeat !important;
}
/* Top-level sidebar category labels */
.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link:first-of-type {
color: #111827;
font-weight: 600 !important;
font-size: 14px;
}
[data-theme='dark']
.theme-doc-sidebar-item-category-level-1
> .menu__list-item-collapsible
> .menu__link:first-of-type {
color: #f9fafb;
font-weight: 600 !important;
font-size: 14px;
}
.theme-doc-sidebar-item-category-level-1 {
margin-bottom: 0.25rem !important;
}
/* Consistent row height for all top-level items */
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible,
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible--active {
min-height: 2.5rem;
padding: 0 0.25rem !important;
background-color: transparent !important;
border-radius: 6px;
}
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible:hover {
background-color: var(--ifm-menu-color-background-hover) !important;
}
/* Suppress the auto active-state background so all items look the same height */
.menu__list-item-collapsible--active {
background-color: transparent !important;
}
.menu__list-item-collapsible--active:hover {
background-color: var(--ifm-menu-color-background-hover) !important;
}
/* Nested menu list */
.menu__list .menu__list {
padding-left: 4px !important;
}
/* Nested sidebar border line */
[class*='sidebar-item-'] ul:not(:first-child) {
margin-left: 16px !important;
border-left: 1px solid #e5e7eb;
}
[data-theme='dark'] [class*='sidebar-item-'] ul:not(:first-child) {
border-left-color: #2d3748;
}
/* ─── Sidebar link colour & hover fixes ─────────────────────── */
/* Doc links: ensure a visible colour in both themes */
.menu__link {
color: var(--ifm-menu-color);
}
.menu__link:hover {
color: var(--ifm-color-primary);
background-color: var(--ifm-menu-color-background-hover);
text-decoration: none;
}
/* External / type:"link" items — subtle right-arrow hint */
.menu__list-item--collapsed ~ .menu__link[href^="http"],
.menu__link[href^="http"] {
color: var(--ifm-menu-color);
}
[data-theme='dark'] .menu__link {
color: #9ca3af;
}
[data-theme='dark'] .menu__link:hover {
color: var(--ifm-color-primary);
}
/* =========================================
TABLE OF CONTENTS
========================================= */
.table-of-contents {
font-size: 13px;
}
.table-of-contents__link {
color: #6b7280;
line-height: 1.5;
}
.table-of-contents__link:hover {
color: var(--ifm-color-primary);
}
.table-of-contents__link--active {
font-weight: 600;
color: var(--ifm-color-primary);
}
[data-theme='dark'] .table-of-contents__link {
color: #9ca3af;
}
/* =========================================
IMAGES & MEDIA
========================================= */
img,
video {
border-radius: var(--ifm-border-radius);
}
/* Prevent video iframes (Loom, YouTube, etc.) from overflowing the
content column and overlapping the right-hand TOC sidebar. */
.theme-doc-markdown iframe {
max-width: 100%;
}
/* =========================================
FOOTER
========================================= */
.footer {
background: #0d1117;
}
.footer__copyright {
font-size: 13px;
color: #6b7280;
}
.footer__link-item {
color: #8b949e;
font-size: 14px;
}
.footer__link-item:hover {
text-decoration: none;
color: #c9d1d9;
}
.footer__title {
color: #f0f6fc;
font-size: 14px;
font-weight: 600;
}
.footer__bottom {
margin: 40px auto 10px auto;
}
/* =========================================
AVATAR
========================================= */
.avatar__name > a {
color: inherit;
}
/* =========================================
NAVBAR ICON LINKS (GitHub, Discord)
========================================= */
.header-github-link,
.header-discord-link {
display: flex;
align-items: center;
}
.header-github-link:hover,
.header-discord-link:hover {
opacity: 0.65;
}
/* Hide text label, show only the icon */
.header-github-link::before,
.header-discord-link::before {
content: '';
width: 22px;
height: 22px;
display: flex;
}
.header-github-link::before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat center / contain;
}
[data-theme='dark'] .header-github-link::before {
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat center / contain;
}
/* Discord icon */
.header-discord-link::before {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E")
no-repeat center / contain;
}
[data-theme='dark'] .header-discord-link::before {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E")
no-repeat center / contain;
}
/* =========================================
SEARCH BAR — hide from navbar (it lives in sidebar)
========================================= */
[class^='navbarSearchContainer'],
[class*='navbarSearchContainer'] {
display: none !important;
}
/* =========================================
INKEEP AI CHAT BUTTON — minimal floating style
========================================= */
.ikp-chat-button__button {
width: 42px !important;
height: 42px !important;
border-radius: 50% !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
margin-right: 1rem !important;
margin-bottom: 1rem !important;
}
/* =========================================
NAVBAR — mobile fixes
========================================= */
/* On small screens: hide icon links (GitHub, Discord) and text links
from the right section. Keep only the color mode toggle.
All nav items remain accessible inside the hamburger drawer. */
@media (max-width: 996px) {
/* Hide GitHub and Discord icon links */
.header-github-link,
.header-discord-link {
display: none !important;
}
/* Hide anchor links in the right section (e.g. Cost Map) */
.navbar__items--right > a.navbar__link {
display: none !important;
}
/* Keep the right section visible (color mode toggle lives here) */
.navbar__items--right {
display: flex !important;
flex: 0 0 auto;
}
/* Force navbar to stay on a single row, no wrapping */
.navbar__inner {
flex-wrap: nowrap !important;
align-items: center;
}
/* Keep hamburger and logo side by side (not stacked) */
.navbar__brand-col {
display: flex !important;
align-items: center;
gap: 0.5rem;
}
/* Ensure hamburger is always shown */
.navbar__toggle {
display: flex !important;
}
}
/* Hide theme toggle in mobile sidebar (slide-out drawer) */
.navbar-sidebar .navbar-sidebar__brand [class*="toggle"] {
display: none !important;
}
/* =========================================
BASH / SHELL CODE BLOCKS
========================================= */
/* Subtle grey bash/shell blocks — light mode */
[data-theme='light'] [class*='language-bash'] .prism-code,
[data-theme='light'] [class*='language-sh'] .prism-code,
[data-theme='light'] [class*='language-shell'] .prism-code,
[data-theme='light'] [class*='language-zsh'] .prism-code {
background-color: #f3f4f6 !important;
border: 1px solid #d1d5db !important;
border-left: 3px solid #6b7280 !important;
color: #1f2937 !important;
}
[data-theme='light'] [class*='language-bash'] .prism-code span,
[data-theme='light'] [class*='language-sh'] .prism-code span,
[data-theme='light'] [class*='language-shell'] .prism-code span,
[data-theme='light'] [class*='language-zsh'] .prism-code span {
color: #1f2937 !important;
}
/* Dark mode — slightly lighter than the default near-black */
[data-theme='dark'] [class*='language-bash'] .prism-code,
[data-theme='dark'] [class*='language-sh'] .prism-code,
[data-theme='dark'] [class*='language-shell'] .prism-code,
[data-theme='dark'] [class*='language-zsh'] .prism-code {
background-color: #1c2130 !important;
border: 1px solid #2d3748 !important;
border-left: 3px solid #4b5563 !important;
}
/* "$ " terminal prompt prefix on bash title bar */
[class*='language-bash'] [class*='codeBlockTitle']::before,
[class*='language-sh'] [class*='codeBlockTitle']::before,
[class*='language-shell'] [class*='codeBlockTitle']::before,
[class*='language-zsh'] [class*='codeBlockTitle']::before {
content: '$ ';
color: #6b7280;
font-weight: 700;
}
/* =========================================
LOGO (existing logo toggle logic)
========================================= */
.levo-logo-container {
position: relative;
}
.levo-logo-container img,
.levo-logo-container picture,
.levo-logo-container .ideal-image {
max-width: 200px !important;
width: 200px !important;
height: auto !important;
}
.levo-logo-dark {
display: none !important;
}
.levo-logo-light {
display: block !important;
}
[data-theme='dark'] .levo-logo-light {
display: none !important;
}
[data-theme='dark'] .levo-logo-dark {
display: block !important;
}
/* =========================================
DOC CONTENT — wider reading column
========================================= */
/* On large screens the default col--7 grid leaves too much dead space.
Expand the content column; the TOC column fills the remainder via flex. */
@media (min-width: 1200px) {
.docItemCol {
--ifm-col-width: calc(8 / 12 * 100%) !important;
max-width: calc(8 / 12 * 100%) !important;
}
}
@media (min-width: 1600px) {
.docItemCol {
--ifm-col-width: calc(9 / 12 * 100%) !important;
max-width: calc(9 / 12 * 100%) !important;
}
}
/* =========================================
BLOG — Ramp-style aesthetic
========================================= */
/* Hide blog sidebar on post pages */
.blog-post-page aside.col {
display: none !important;
}
/* Make blog post content full-width + constrained */
.blog-post-page main.col--7 {
--ifm-col-width: 100% !important;
max-width: 820px !important;
margin: 0 auto !important;
flex: 0 0 100% !important;
}
/* Clean post header */
.blog-wrapper article header h1 {
font-size: 2rem;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.25;
color: #111827;
margin-bottom: 0.75rem;
}
/* Author / date line */
.blog-wrapper article header .avatar,
.blog-wrapper article header [class*='blogPostData'] {
margin-top: 0.75rem;
}
/* Clean prose body */
.blog-wrapper article .markdown {
font-size: 0.95rem;
line-height: 1.7;
color: #374151;
}
.blog-wrapper article .markdown h2 {
font-size: 1.35rem;
font-weight: 600;
letter-spacing: -0.01em;
margin-top: 2.5rem;
margin-bottom: 0.75rem;
color: #111827;
}
.blog-wrapper article .markdown h3 {
font-size: 1.1rem;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 0.5rem;
color: #111827;
}
.blog-wrapper article .markdown p {
margin-bottom: 1.25rem;
}
.blog-wrapper article .markdown a {
color: #0ea5e9;
text-decoration: none;
}
.blog-wrapper article .markdown a:hover {
text-decoration: underline;
}
.blog-wrapper article .markdown code {
font-size: 0.85em;
background: #f3f4f6;
border: 1px solid #e5e7eb;
border-radius: 4px;
padding: 0.15em 0.4em;
color: #111827;
}
.blog-wrapper article .markdown pre {
background: #ffffff !important;
border: 1px solid #e5e7eb !important;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.blog-wrapper article .markdown pre code {
background: transparent;
border: none;
padding: 0;
color: inherit;
}
/* Hide tags section at bottom of blog posts */
.blog-wrapper footer [class*='blogPostTags'],
.blog-wrapper footer [class*='tags'] {
display: none;
}
/* Nav buttons (prev/next) at bottom - keep clean */
.blog-wrapper .pagination-nav__label {
font-size: 0.85rem;
}
[data-theme='dark'] .blog-wrapper article header h1,
[data-theme='dark'] .blog-wrapper article .markdown h2,
[data-theme='dark'] .blog-wrapper article .markdown h3 {
color: #f9fafb;
}
[data-theme='dark'] .blog-wrapper article .markdown {
color: #d1d5db;
}
[data-theme='dark'] .blog-wrapper article .markdown code {
background: #1f2937;
border-color: #374151;
color: #f9fafb;
}