open-navigator / website /src /css /custom.css
jcbowyer's picture
Clean HuggingFace deployment without binary files
61d29fc
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #354F52;
--ifm-color-primary-dark: #2e4346;
--ifm-color-primary-darker: #27383a;
--ifm-color-primary-darkest: #202d2f;
--ifm-color-primary-light: #496466;
--ifm-color-primary-lighter: #5d797a;
--ifm-color-primary-lightest: #8a9d9e;
--ifm-button-background-color: #354F52;
--ifm-button-color: #ffffff;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(53, 79, 82, 0.1);
--ifm-background-color: #ffffff;
--ifm-navbar-link-color: #354F52;
--ifm-navbar-link-hover-color: #2e4346;
--ifm-navbar-sidebar-link-color: #354F52;
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #5d797a;
--ifm-color-primary-dark: #496466;
--ifm-color-primary-darker: #354F52;
--ifm-color-primary-darkest: #2e4346;
--ifm-color-primary-light: #8a9d9e;
--ifm-color-primary-lighter: #a7b7b8;
--ifm-color-primary-lightest: #c4d1d2;
--docusaurus-highlighted-code-line-bg: rgba(53, 79, 82, 0.2);
--ifm-background-color: #1E293B;
--ifm-navbar-link-color: #5d797a;
--ifm-navbar-link-hover-color: #8a9d9e;
--ifm-navbar-sidebar-link-color: #5d797a;
}
/* Additional background color overrides */
html[data-theme='light'] {
--ifm-background-color: #ffffff;
--ifm-background-surface-color: #ffffff;
}
html[data-theme='dark'] {
--ifm-background-color: #1E293B;
--ifm-background-surface-color: #1E293B;
}
body {
background-color: #ffffff !important;
}
[data-theme='dark'] body {
background-color: #1E293B !important;
}
/* Logo styling */
.navbar__logo img {
height: 40px !important;
max-height: 40px !important;
}
/* Sidebar backgrounds */
.theme-doc-sidebar-container {
background-color: #F1F5F9 !important;
}
aside.theme-doc-sidebar-container {
background-color: #F1F5F9 !important;
}
/* Sidebar navigation link colors - lighter and less bold */
.theme-doc-sidebar-item-link,
.menu__link,
.theme-doc-sidebar-item-category > .menu__list-item-collapsible > .menu__link {
color: #64748b !important; /* Lighter slate color */
font-weight: 400 !important; /* Regular weight for better readability */
}
.menu__link:hover,
.menu__link--active {
color: #354F52 !important;
}
/* Category labels - lighter text */
.menu__list-item-collapsible {
color: #475569 !important; /* Lighter slate color */
}
/* Table of Contents (right sidebar) background */
.theme-doc-toc-desktop,
.table-of-contents {
background-color: #F1F5F9 !important;
padding: 1rem;
border-radius: 8px;
}
/* Active navigation link underline (matches main React app) */
.navbar__link--active {
position: relative;
padding-bottom: 4px !important;
}
.navbar__link--active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80%;
height: 2px;
background-color: var(--ifm-color-primary);
}
.navbar__link:hover {
position: relative;
padding-bottom: 4px;
}
.navbar__link:hover:not(.navbar__link--active)::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80%;
height: 2px;
background-color: rgba(53, 79, 82, 0.3);
transition: background-color 0.2s ease;
}
/* Active sidebar link underline - lighter emphasis */
.menu__link--active {
border-left: 3px solid var(--ifm-color-primary) !important;
background-color: rgba(53, 79, 82, 0.05) !important;
font-weight: 500 !important; /* Medium weight, was 600 */
color: #354F52 !important; /* Slightly darker when active */
}
/* Table of contents active link underline */
.table-of-contents__link--active {
border-left: 2px solid var(--ifm-color-primary) !important;
font-weight: 600 !important;
color: var(--ifm-color-primary) !important;
}
/* Table of contents - increase spacing between vertical line and text */
.table-of-contents__link {
padding-left: 1rem !important; /* Increased from default 0.5rem */
line-height: 1.6 !important;
margin-bottom: 0.25rem !important;
}
.table-of-contents__link--active {
padding-left: calc(1rem - 2px) !important; /* Account for border width */
}
/* Professional navbar styling - clean without emojis */
.navbar__item.navbar__link {
font-weight: 600;
letter-spacing: 0.025em;
transition: all 0.2s ease;
}
.navbar__item.navbar__link:hover {
transform: translateY(-1px);
}
/* Sidebar category labels - lighter and more readable */
.menu__list-item-collapsible > .menu__link {
font-weight: 600; /* Medium bold, was 700 */
font-size: 1.02em; /* Slightly smaller, was 1.05em */
text-transform: none;
padding: 0.5rem 0.75rem;
border-left: 3px solid transparent;
transition: all 0.2s ease;
color: #475569 !important; /* Lighter than regular links */
}
.menu__list-item-collapsible > .menu__link:hover {
border-left-color: #354F52;
background-color: rgba(53, 79, 82, 0.05);
}
/* Active sidebar section - lighter */
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link {
color: #475569 !important; /* Lighter slate */
font-size: 1.05em; /* Slightly smaller, was 1.1em */
}
/* Main content area - keep white */
.theme-doc-markdown,
article {
background-color: #ffffff !important;
}
/* Content headers color */
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #354F52 !important;
}
article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
color: #354F52 !important;
}
/* Dark mode overrides */
[data-theme='dark'] .theme-doc-sidebar-container,
[data-theme='dark'] aside.theme-doc-sidebar-container {
background-color: #1E293B !important;
}
[data-theme='dark'] .theme-doc-toc-desktop,
[data-theme='dark'] .table-of-contents {
background-color: #1E293B !important;
}
/* Mermaid diagrams - ensure they render large and readable */
.mermaid {
font-size: 18px !important;
line-height: 1.4 !important;
}
.mermaid svg {
max-width: 100% !important;
height: auto !important;
}
/* ERD entity boxes should be larger */
.er.entityBox {
min-width: 200px !important;
min-height: 140px !important;
}
.er .entityLabel {
font-size: 20px !important;
font-weight: 700 !important;
}
.er .attributeBoxEven,
.er .attributeBoxOdd {
font-size: 16px !important;
padding: 8px 12px !important;
}