Skip to content

Commit cde2b19

Browse files
committed
Adapts styles of bars
1 parent dd91134 commit cde2b19

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function renderCourseTiles(modulesData, classesData) {
161161
for (let i = 0; i < 3; i++) {
162162
const bar = document.createElement('div');
163163
bar.classList.add('bar');
164-
// CSS handles filling based on .beginner, .intermediate, .expert class on tile
164+
// CSS handles filling based on .basic, .advanced, .expert class on tile
165165
skillLevelDiv.appendChild(bar);
166166
}
167167
tile.appendChild(skillLevelDiv);

styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ body {
207207
}
208208

209209
/* Different filling for skill levels */
210-
.course-tile.beginner .bar:nth-child(1) {
210+
.course-tile.basic .bar:nth-child(1) {
211211
background-color: #888;
212212
}
213213

214-
.course-tile.intermediate .bar:nth-child(1),
215-
.course-tile.intermediate .bar:nth-child(2) {
214+
.course-tile.advanced .bar:nth-child(1),
215+
.course-tile.advanced .bar:nth-child(2) {
216216
background-color: #888;
217217
}
218218

0 commit comments

Comments
 (0)