:root {
--sidebar-bg: #f8f9fa;
--accent-orange: #e67e22;
--accent-teal: #4a919e;
--primary-text: #2c3e50;
--secondary-text: #7f8c8d;
--primary-color: #2980b9;
--text-color: #333333;
--border-color: #e5e5e5;
--code-bg: #2d2d2d;
--code-text: #f8f8f2;
--nav-width: 280px;
}
body {
display: grid;
grid-template-rows: 1fr auto;
grid-template-columns: var(--nav-width) 1fr;
grid-template-areas:
"sidebar main"
"footer footer";
margin: 0;
font-family: 'Inter', sans-serif;
line-height: 1.7;
color: var(--text-color);
background-color: #FCFCFC;
}
.container {
display: flex;
width: 100%;
}
.main-container {
grid-area: main;
display: contents;
}
.search-bar {
position: relative;
color: var(--secondary-text);
}
.nav-category {
margin-bottom: 20px;
}
.nav-category-title {
font-size: 0.8em;
font-weight: 700;
text-transform: uppercase;
color: var(--secondary-text);
padding: 0 25px;
margin-bottom: 10px;
}
.sidebar-header {
display: flex;
align-items: center;
gap: 15px;
margin: 20px;
padding: 15px;
background-color: white;
border: 1px solid var(--accent-teal);
border-radius: 8px;
}
.sidebar-header img {
height: 83.6833px;
width: 200px;
}
.sidebar-header h1 {
font-size: 1.8em;
margin: 0;
font-weight: 700;
color: var(--primary-text);
}
.sidebar-logo {
text-align: center;
padding: 10px 15px;
margin-bottom: 20px;
}
.sidebar-logo img {
max-width: 75%;
height: auto;
}
.sidebar {
background-color: var(--sidebar-bg);
color: var(--primary-text);
border-right: 1px solid var(--border-color);
box-shadow: none;
height: 100vh;
grid-area: sidebar;
background-color: var(--sidebar-bg);
border-right: 1px solid var(--border-color);
padding: 25px 0;
position: sticky;
top: 0;
box-sizing: border-box;
overflow-y: auto;
}
.sidebar nav ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar nav ul li a {
color: var(--primary-text);
text-decoration: none;
display: block;
padding: 8px 25px;
font-weight: 500;
transition: all 0.2s ease;
}
.sidebar nav ul li a:hover {
background-color: var(--border-color);
color: var(--primary-text);
}
.sidebar nav ul li a.active {
background-color: var(--accent-teal);
color: white;
font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
color: var(--primary-text);
}
a {
color: var(--accent-teal);
}
.sidebar.hidden {
transform: translateX(-100%);
}
.main-content {
grid-area: main;
padding: 40px;
max-width: 900px;
flex-grow: 1;
padding: 40px;
max-width: 1024px;
box-sizing: border-box;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.header h1 {
color: var(--primary-color);
font-size: 2.5em;
margin: 0;
}
.hamburger {
display: none;
cursor: pointer;
padding: 10px;
z-index: 1001;
}
.hamburger .bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
background-color: var(--primary-text);
transition: all 0.3s ease-in-out;
}
pre {
background-color: #f6f8fa;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 16px;
overflow-x: auto;
margin-bottom: 1.5em;
}
code {
font-family: 'Fira Code', monospace;
background-color: rgba(65, 132, 146, 0.1);
color: var(--accent-teal);
padding: 3px 6px;
border-radius: 6px;
font-size: 0.9em;
}
pre code {
background: none;
color: inherit;
padding: 0;
font-size: 1em;
}
.site-footer {
grid-area: footer;
width: 100%;
padding: 40px 0;
margin-top: 60px;
text-align: center;
border-top: 1px solid var(--border-color);
color: var(--secondary-text);
font-size: 0.9em;
}
.footer-links {
display: flex;
justify-content: center;
gap: 30px;
margin-bottom: 20px;
}
.footer-links a {
color: var(--secondary-text);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: color 0.2s ease;
}
.footer-links a:hover {
color: var(--primary-text);
text-decoration: none;
}
@media (max-width: 768px) {
body {
grid-template-columns: 1fr;
grid-template-areas:
"main"
"footer";
}
.header-content {
margin-left: 0;
}
.search-bar {
display: none;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
padding: 60px 20px 20px 20px;
box-sizing: border-box;
overflow-y: auto;
transform: translateX(-100%);
z-index: 1002;
}
.sidebar.active {
transform: translateX(0);
}
.header-content {
justify-content: flex-end;
}
.main-content {
max-width: 100%;
padding: 30px 20px;
width: 100%;
box-sizing: border-box;
}
.hamburger {
display: block;
position: fixed;
top: 5px;
left: 5px;
z-index: 1003;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
body.sidebar-open .main-content {
margin-left: 250px;
}
}