File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,8 +319,10 @@ function updateProgressDisplay() {
319319 const stats = lessonEngine . getProgressStats ( ) ;
320320
321321 // Update progress bar - shows progress towards next milestone
322+ // CSS variable scales gradient so only first X% of colors show
322323 const progressPercent = stats . progressToNext || 1 ;
323324 elements . progressFill . style . width = `${ progressPercent } %` ;
325+ elements . progressFill . style . setProperty ( '--progress-percent' , progressPercent ) ;
324326
325327 // Update progress current - show progress towards next milestone
326328 elements . progressCurrent . textContent = `${ stats . totalCompleted } /${ stats . nextMilestone } ` ;
Original file line number Diff line number Diff line change @@ -1191,15 +1191,15 @@ nav.sidebar-section:not(.sidebar-nav-mobile) {
11911191 color : white;
11921192}
11931193
1194- /* Each milestone gets a color based on its position in 0-100 scale
1194+ /* Each milestone gets a color evenly distributed across the gradient
11951195 Gradient: #9163b8 (0%) → #d45aa0 (33%) → #1aafb8 (67%) → #7c4dff (100%) */
1196- .milestone .reached : nth-child (1 ) { background : # 9263b7 ; } /* 1 % */
1197- .milestone .reached : nth-child (2 ) { background : # 9a60b2 ; } /* 5 % */
1198- .milestone .reached : nth-child (3 ) { background : # a85dac ; } /* 10% */
1199- .milestone .reached : nth-child (4 ) { background : # c159a4 ; } /* 20 % */
1200- .milestone .reached : nth-child (5 ) { background : # d45aa0 ; } /* 30 % */
1201- .milestone .reached : nth-child (6 ) { background : # 7785ac ; } /* 50 % */
1202- .milestone .reached : nth-child (7 ) { background : # 3a9bd2 ; } /* 75 % */
1196+ .milestone .reached : nth-child (1 ) { background : # a55eac ; } /* ~14 % */
1197+ .milestone .reached : nth-child (2 ) { background : # c459a2 ; } /* ~28 % */
1198+ .milestone .reached : nth-child (3 ) { background : # d45aa0 ; } /* ~33% pink */
1199+ .milestone .reached : nth-child (4 ) { background : # a874a8 ; } /* ~43 % */
1200+ .milestone .reached : nth-child (5 ) { background : # 7785ac ; } /* ~50 % */
1201+ .milestone .reached : nth-child (6 ) { background : # 33a3b6 ; } /* ~62 % */
1202+ .milestone .reached : nth-child (7 ) { background : # 4889d8 ; } /* ~80 % */
12031203.milestone .reached : nth-child (8 ) { background : # 7c4dff ; } /* 100% */
12041204
12051205.milestone .current {
You can’t perform that action at this time.
0 commit comments