120 lines
2.1 KiB
CSS
120 lines
2.1 KiB
CSS
/* Right-hand lesson content pane (learn.html) */
|
|
.lesson-pane {
|
|
min-width: 0;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
padding: 2rem 3rem;
|
|
}
|
|
|
|
.lesson-pane .lesson-placeholder {
|
|
color: var(--bs-secondary-color);
|
|
}
|
|
|
|
.lesson-content h1:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.lesson-content h1 {
|
|
font-weight: 700;
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.lesson-content h2 {
|
|
font-weight: 600;
|
|
margin-top: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.lesson-content h3 {
|
|
font-weight: 600;
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.lesson-content p {
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.lesson-content table {
|
|
width: 100%;
|
|
margin-bottom: 1.5rem;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.lesson-content th,
|
|
.lesson-content td {
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--bs-border-color);
|
|
}
|
|
|
|
.lesson-content th {
|
|
background-color: var(--bs-tertiary-bg);
|
|
text-align: left;
|
|
}
|
|
|
|
.lesson-content code:not(pre code) {
|
|
background-color: var(--bs-tertiary-bg);
|
|
border-radius: 0.25rem;
|
|
padding: 0.15em 0.4em;
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
.lesson-content .code-block {
|
|
position: relative;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.lesson-content .code-block pre {
|
|
margin: 0;
|
|
padding: 1rem 3rem 1rem 1rem;
|
|
border-radius: 0.5rem;
|
|
overflow-x: auto;
|
|
background-color: #1e1e2e;
|
|
}
|
|
|
|
.lesson-content .code-block pre code {
|
|
background: none;
|
|
padding: 0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.lesson-content .code-copy-btn {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
right: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0.375rem;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
color: #cdd6f4;
|
|
transition:
|
|
background-color 0.15s ease,
|
|
color 0.15s ease;
|
|
}
|
|
|
|
.lesson-content .code-copy-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.18);
|
|
}
|
|
|
|
.lesson-content .code-copy-btn.copied {
|
|
color: #a6e3a1;
|
|
}
|
|
|
|
.lesson-content .code-copy-btn svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
fill: currentColor;
|
|
}
|
|
|
|
#dsa-sidebar-nav a.active {
|
|
background-color: var(--bs-tertiary-bg);
|
|
color: var(--bs-emphasis-color);
|
|
font-weight: 600;
|
|
}
|