This commit is contained in:
despiegk 2025-01-12 20:40:03 +01:00
parent 39397a5af7
commit 7e8be26f7b

View File

@ -1,76 +1,247 @@
/* Base styles (keeping all the existing styles up to mobile navigation) */ /**
* Global CSS styles
* Combines Infima (Docusaurus default) and custom styles
*/
/* Mobile Navigation */ /* Typography - Inter font configuration */
@media (max-width: 996px) { @font-face {
.navbar__toggle { font-family: 'Inter';
display: block; font-weight: 400;
font-style: normal;
src: url('/fonts/Inter_28pt-Light.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-weight: 500;
font-style: normal;
src: url('/fonts/Inter_28pt-Regular.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'Inter';
font-weight: 600;
font-style: normal;
src: url('/fonts/Inter_28pt-Medium.ttf') format('truetype');
font-display: swap;
}
/* Custom animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(10px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* Navigation styles */
.navbar__logo {
display: flex;
align-items: center;
height: 100%;
transition: opacity var(--transition-fast);
}
.navbar__logo:hover {
opacity: 0.9;
}
.navbar__logo img {
max-width: 150px;
height: auto;
}
.navbar__item {
display: flex;
align-items: center;
}
.navbar__link {
padding: 0.75rem 1rem;
transition: color var(--transition-fast);
position: relative; position: relative;
} }
.navbar-sidebar { .navbar__link::after {
position: fixed; content: '';
top: 0; position: absolute;
left: 0;
bottom: 0; bottom: 0;
width: 300px; left: 50%;
background: #131213; width: 0;
z-index: 9998; height: 2px;
padding-top: 60px; background: var(--ifm-color-primary);
transition: all var(--transition-normal);
transform: translateX(-50%);
} }
.navbar-sidebar__items { .navbar__link:hover::after {
width: 100%;
}
/* Global typography and spacing */
body {
font-family: 'Inter', sans-serif;
font-size: clamp(16px, 1.2vw, 18px);
line-height: 1.6;
background-color: #131213;
color: #ffffff;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Modern heading styles with fluid typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
font-family: 'Inter', sans-serif;
color: #ffffff;
letter-spacing: -0.02em;
line-height: 1.2;
margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
/* Enhanced paragraph styles */
p {
font-weight: 400;
font-family: 'Inter', sans-serif;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 1.5em;
}
/* Enhanced theme variables with modern color palette */
:root {
--ifm-color-primary: #2e83ff;
--ifm-color-primary-dark: #1a75ff;
--ifm-color-primary-darker: #0066ff;
--ifm-color-primary-darkest: #0052cc;
--ifm-color-primary-light: #4791ff;
--ifm-color-primary-lighter: #61a0ff;
--ifm-color-primary-lightest: #7ab3ff;
--ifm-background-color: #131213;
--ifm-navbar-background-color: rgba(19, 18, 19, 0.8);
--ifm-footer-background-color: #131213;
--ifm-color-content: #ffffff;
--ifm-menu-color: #ffffff;
--ifm-toc-link-color: #ffffff;
--ifm-breadcrumb-color-active: #2e83ff;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
/* Custom shadow variables */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
/* Custom transition variables */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Dark mode overrides */
[data-theme='dark'] {
--ifm-background-color: #131213;
--ifm-navbar-background-color: rgba(19, 18, 19, 0.8);
--ifm-footer-background-color: #131213;
--ifm-color-content: #ffffff;
--ifm-menu-color: #ffffff;
--ifm-toc-link-color: #ffffff;
--ifm-link-color: #2e83ff;
--ifm-breadcrumb-color-active: #2e83ff;
}
/* Enhanced layout elements with modern styling */
.footer {
background-color: #131213;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 3rem 0;
}
.footer a,
.footer p,
.footer span,
.footer div {
color: rgba(255, 255, 255, 0.8);
transition: color var(--transition-fast);
}
.footer a:hover {
color: var(--ifm-color-primary);
text-decoration: none;
}
.navbar {
background-color: var(--ifm-navbar-background-color);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
transition: background-color var(--transition-normal);
}
.navbar__link {
color: #ffffff;
}
.menu {
background-color: #131213;
padding: 1rem; padding: 1rem;
} }
.navbar-sidebar__items .navbar__items { .menu__link {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.navbar-sidebar__items .navbar__link {
display: block;
padding: 0.75rem;
color: #ffffff; color: #ffffff;
font-size: 1.1rem; transition: all var(--transition-fast);
border-radius: 6px;
} }
.navbar-sidebar__brand { .menu__link:hover {
display: none; color: #2e83ff;
background-color: rgba(46, 131, 255, 0.1);
} }
.navbar-sidebar__backdrop { .menu__link--active {
position: fixed; color: #2e83ff;
top: 0; background-color: rgba(46, 131, 255, 0.15);
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 9997;
} }
.navbar-sidebar__close { .table-of-contents {
position: absolute; background-color: #131213;
top: 1rem; padding: 1rem;
right: 1rem;
} }
/* Ensure menu items are visible */ .table-of-contents__link {
.navbar-sidebar .menu { color: rgba(255, 255, 255, 0.8);
margin-top: 1rem; transition: all var(--transition-fast);
} }
.navbar-sidebar .menu__list { .table-of-contents__link:hover,
list-style: none; .table-of-contents__link--active {
padding: 0; color: #2e83ff;
}
.navbar-sidebar .menu__link {
display: block;
padding: 0.75rem;
color: #ffffff;
text-decoration: none; text-decoration: none;
} }
/* Main content area */
.main-wrapper {
background-color: #131213;
} }
/* Rest of the existing styles */ aside.theme-doc-sidebar-container {
background-color: #131213;
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-doc-sidebar-menu {
background-color: #131213;
}
.theme-doc-toc-desktop {
background-color: #131213;
border-left: 1px solid rgba(255, 255, 255, 0.1);