music-encoding / music-encoding.github.io

The MEI website
http://music-encoding.org
Educational Community License v2.0
16 stars 38 forks source link

Tutorials: fix tutorials classes #616

Closed musicEnfanthen closed 4 months ago

musicEnfanthen commented 5 months ago

Thanks to @annakijas1 , we identified some strings in the tutorials that had been prepended by CSS ::before rule which needed translation.

Instead of having the translations in the CSS, this PR moves the creation of these strings into the js file where we have already a translation string map which makes modification much easier.

Also, it removes the need to recreate the same class rules for every translated language, but instead reuses the same classes for all languages.

In addition, it unifies the class names to tutorialGoal and tutorialTask.

Fixes #615