Ajout des fonctionnalités de gestion de progression des cours : vue dédiée pour le toggle des leçons, mise à jour des templates pour afficher la progression, intégration des routes Ajax, styles associés, et ajustements des vues et modèles pour gérer les données utilisateur.
This commit is contained in:
parent
609745a723
commit
ac8ef6894d
8 changed files with 261 additions and 9 deletions
|
|
@ -247,9 +247,9 @@ html { box-sizing: border-box; }
|
|||
gap: 6px;
|
||||
padding: 2px 8px;
|
||||
margin-left: 8px;
|
||||
border-radius: 999px;
|
||||
border-radius: 2px;
|
||||
background: var(--accent);
|
||||
color: var(--warning-contrast);
|
||||
color: var(--text);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .3px;
|
||||
|
|
@ -259,6 +259,40 @@ html { box-sizing: border-box; }
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.current-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 2px;
|
||||
background: var(--primary);
|
||||
color: var(--primary-contrast);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .3px;
|
||||
line-height: 1.2;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.completed-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 2px;
|
||||
background: var(--success);
|
||||
color: var(--success-contrast);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .3px;
|
||||
line-height: 1.2;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.courseToc .tocLink.disabled {
|
||||
color: var(--text-muted);
|
||||
background: transparent;
|
||||
|
|
@ -269,6 +303,70 @@ html { box-sizing: border-box; }
|
|||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Progression des cours */
|
||||
|
||||
.progress-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
display: flex;
|
||||
border-radius: var(--r-2);
|
||||
border: 1px solid var(--border);
|
||||
height: 20px;
|
||||
background: var(--neutral-900);
|
||||
}
|
||||
|
||||
.progress-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
background: var(--success);
|
||||
height: 100%;
|
||||
border-radius: var(--r-2) 0 0 var(--r-2);
|
||||
}
|
||||
|
||||
.course-completed {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-radius: var(--r-2);
|
||||
border: 1px solid var(--border);
|
||||
margin: var(--space-2) 0;
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
.course-completed .container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: var(--space-2);
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.course-completed .container .icon {
|
||||
color: var(--success-contrast);
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
.course-completed .container .title {
|
||||
color: var(--success-contrast);
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.course-completed .container .content {
|
||||
color: var(--success-contrast);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
[data-theme='light'] {
|
||||
/* Palette: plus nuancé, moins "blanc" */
|
||||
--bg: #eef3f7; /* fond légèrement teinté bleu-gris */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue