741 lines
12 KiB
CSS
741 lines
12 KiB
CSS
:host {
|
|
display: block;
|
|
min-height: 100vh;
|
|
background: #f8fafc;
|
|
color: #0f172a;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.learning-page {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.learning-header {
|
|
border-bottom: 1px solid #e2e8f0;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
|
|
linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
|
|
}
|
|
|
|
.learning-header__inner {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 40px 24px 28px;
|
|
}
|
|
|
|
.back-link {
|
|
display: inline-flex;
|
|
margin-bottom: 18px;
|
|
color: #2563eb;
|
|
text-decoration: none;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.course-kicker {
|
|
margin: 0 0 10px;
|
|
color: #2563eb;
|
|
font-size: 0.82rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.learning-header h1 {
|
|
margin: 0;
|
|
font-size: clamp(2.2rem, 4vw, 3.6rem);
|
|
line-height: 1.06;
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
.progress-card {
|
|
min-width: 260px;
|
|
padding: 18px 20px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 24px;
|
|
background: #ffffff;
|
|
box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.progress-card__label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #64748b;
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.progress-card strong {
|
|
display: block;
|
|
margin-bottom: 14px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: #e2e8f0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar span {
|
|
display: block;
|
|
width: 24%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
|
|
}
|
|
|
|
.learning-layout {
|
|
display: grid;
|
|
grid-template-columns: 320px minmax(0, 1fr);
|
|
gap: 28px;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 28px 24px 64px;
|
|
}
|
|
|
|
.learning-sidebar {
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-panel,
|
|
.content-panel,
|
|
.course-not-found__card {
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 28px;
|
|
background: #ffffff;
|
|
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.sidebar-panel {
|
|
position: sticky;
|
|
top: 24px;
|
|
padding: 22px;
|
|
}
|
|
|
|
.sidebar-panel__top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.sidebar-panel__eyebrow {
|
|
color: #2563eb;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.module-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.module-nav__item {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
padding: 0;
|
|
border: 1px solid #e5edf6;
|
|
border-radius: 20px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.module-nav__trigger {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
background: transparent;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.module-nav__item--active {
|
|
border-color: #bfdbfe;
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.module-nav__index {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 12px;
|
|
background: #ffffff;
|
|
color: #1d4ed8;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.module-nav__content h3 {
|
|
margin: 0 0 6px;
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
.module-nav__content p {
|
|
margin: 0;
|
|
color: #64748b;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.learning-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 22px;
|
|
}
|
|
|
|
.content-panel {
|
|
padding: 28px;
|
|
}
|
|
|
|
.content-panel__header {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.content-panel__eyebrow {
|
|
display: inline-flex;
|
|
margin-bottom: 10px;
|
|
color: #2563eb;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.content-panel__header h2 {
|
|
margin: 0;
|
|
font-size: 1.8rem;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.lesson-duration {
|
|
display: inline-flex;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
background: #eff6ff;
|
|
color: #1d4ed8;
|
|
font-size: 0.84rem;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.content-intro {
|
|
margin: 0 0 18px;
|
|
color: #475569;
|
|
line-height: 1.75;
|
|
white-space: pre-line;
|
|
text-align: justify
|
|
}
|
|
|
|
.resource-download-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin: 0 0 22px;
|
|
padding: 18px 20px;
|
|
border: 1px solid #bfdbfe;
|
|
border-radius: 22px;
|
|
background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.resource-download-card:hover {
|
|
transform: translateY(-1px);
|
|
border-color: #60a5fa;
|
|
box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
|
|
}
|
|
|
|
.resource-download-card__icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 56px;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 18px;
|
|
background: #dbeafe;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.resource-download-card__icon svg {
|
|
width: 28px;
|
|
height: 28px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 1.8;
|
|
}
|
|
|
|
.resource-download-card__content {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.resource-download-card__eyebrow {
|
|
color: #2563eb;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.resource-download-card__content strong {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.resource-download-card__content span:last-child {
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.resource-download-card__action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 42px;
|
|
padding: 0 16px;
|
|
border-radius: 999px;
|
|
background: #1d4ed8;
|
|
color: #ffffff;
|
|
font-size: 0.88rem;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.course-topics {
|
|
margin: 0 0 18px;
|
|
color: #475569;
|
|
line-height: 1.75;
|
|
text-align: justify;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.course-topics li {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.course-topics li::before {
|
|
content: "✓";
|
|
color: #475569;
|
|
margin: 0 0 18px;
|
|
|
|
}
|
|
|
|
.content-icons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 22px;
|
|
}
|
|
|
|
.content-icons__item {
|
|
width: auto;
|
|
height: 26px;
|
|
}
|
|
|
|
.lesson-section + .lesson-section {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e5edf6;
|
|
}
|
|
|
|
.module-sequence {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
.learning-module {
|
|
scroll-margin-top: 28px;
|
|
padding: 20px;
|
|
border: 1px solid #e5edf6;
|
|
border-radius: 24px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.learning-module__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.module-description {
|
|
margin: 0 0 14px;
|
|
color: #475569;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.lesson-section h3,
|
|
.question-card h3 {
|
|
margin: 0 0 10px;
|
|
font-size: 1.16rem;
|
|
}
|
|
|
|
.lesson-section p,
|
|
.question-note {
|
|
margin: 0;
|
|
color: #64748b;
|
|
line-height: 1.75;
|
|
text-align: justify;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.lesson-section p + p {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.lesson-image {
|
|
display: block;
|
|
width: min(100%, 860px);
|
|
margin: 18px auto;
|
|
border-radius: 18px;
|
|
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
|
|
cursor: zoom-in;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.lesson-image:hover {
|
|
transform: scale(1.01);
|
|
box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
|
|
}
|
|
|
|
.presentation-viewer {
|
|
margin-top: 24px;
|
|
padding: 22px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 24px;
|
|
background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
|
|
}
|
|
|
|
.presentation-viewer__header {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.presentation-viewer__header h3 {
|
|
margin: 0;
|
|
font-size: 1.12rem;
|
|
}
|
|
|
|
.presentation-viewer__counter,
|
|
.image-lightbox__counter {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border-radius: 999px;
|
|
background: #dbeafe;
|
|
color: #1d4ed8;
|
|
font-size: 0.82rem;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.presentation-viewer__stage {
|
|
overflow: hidden;
|
|
border-radius: 20px;
|
|
background: #0f172a;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.presentation-viewer__slide {
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
object-fit: contain;
|
|
background: #0f172a;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.presentation-viewer__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.presentation-viewer__button {
|
|
min-height: 44px;
|
|
padding: 0 18px;
|
|
border: 0;
|
|
border-radius: 14px;
|
|
background: #1d4ed8;
|
|
color: #ffffff;
|
|
font-size: 0.9rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.presentation-viewer__button:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.image-lightbox {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background: rgba(15, 23, 42, 0.82);
|
|
backdrop-filter: blur(6px);
|
|
}
|
|
|
|
.image-lightbox__dialog {
|
|
position: relative;
|
|
max-width: min(1200px, 100%);
|
|
max-height: 100%;
|
|
}
|
|
|
|
.image-lightbox__toolbar {
|
|
position: absolute;
|
|
top: -12px;
|
|
right: -12px;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.image-lightbox__action,
|
|
.image-lightbox__close {
|
|
min-width: 48px;
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: #ffffff;
|
|
color: #0f172a;
|
|
font-size: 0.86rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
|
|
}
|
|
|
|
.image-lightbox__close {
|
|
min-width: 96px;
|
|
}
|
|
|
|
.image-lightbox__viewport {
|
|
overflow: auto;
|
|
max-width: min(1200px, calc(100vw - 48px));
|
|
max-height: calc(100vh - 48px);
|
|
border-radius: 20px;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.image-lightbox__image {
|
|
display: block;
|
|
max-width: min(1200px, calc(100vw - 48px));
|
|
max-height: calc(100vh - 48px);
|
|
border-radius: 20px;
|
|
box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
|
|
transition: transform 0.18s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.question-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.question-card {
|
|
padding: 20px;
|
|
border: 1px solid #e5edf6;
|
|
border-radius: 24px;
|
|
background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
|
|
}
|
|
|
|
.question-card__number {
|
|
display: inline-flex;
|
|
margin-bottom: 12px;
|
|
color: #2563eb;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.question-options {
|
|
display: grid;
|
|
gap: 10px;
|
|
margin: 16px 0 14px;
|
|
}
|
|
|
|
.question-option {
|
|
min-height: 50px;
|
|
border: 1px solid #dbe4f0;
|
|
border-radius: 16px;
|
|
background: #ffffff;
|
|
color: #0f172a;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
text-align: left;
|
|
padding: 0 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.question-option:hover {
|
|
border-color: #93c5fd;
|
|
background: #f8fbff;
|
|
}
|
|
|
|
.question-option:disabled {
|
|
opacity: 1;
|
|
cursor: default;
|
|
}
|
|
|
|
.question-option.question-option--correct {
|
|
border-color: #16a34a;
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.question-option.question-option--incorrect {
|
|
border-color: #dc2626;
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.lesson-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 180px;
|
|
min-height: 50px;
|
|
padding: 0 20px;
|
|
border: 0;
|
|
border-radius: 18px;
|
|
background: #1d4ed8;
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
font-size: 0.96rem;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.button--secondary {
|
|
background: #eff6ff;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.course-not-found {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.course-not-found__card {
|
|
max-width: 520px;
|
|
padding: 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
.course-not-found__card h1 {
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.course-not-found__card p {
|
|
margin: 0 0 20px;
|
|
color: #64748b;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.learning-header__inner,
|
|
.learning-layout {
|
|
grid-template-columns: 1fr;
|
|
display: grid;
|
|
}
|
|
|
|
.progress-card,
|
|
.sidebar-panel {
|
|
position: static;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.learning-header__inner,
|
|
.learning-layout {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.learning-header__inner {
|
|
padding-top: 32px;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
.content-panel,
|
|
.sidebar-panel,
|
|
.course-not-found__card {
|
|
border-radius: 22px;
|
|
}
|
|
|
|
.content-panel {
|
|
padding: 22px;
|
|
}
|
|
|
|
.content-panel__header,
|
|
.lesson-actions,
|
|
.presentation-viewer__header,
|
|
.presentation-viewer__actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.resource-download-card {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.resource-download-card__action {
|
|
width: 100%;
|
|
}
|
|
}
|