gamoteca / moodle-mod_gamoteca

Other
0 stars 1 forks source link

styles.css not really specific enough. #7

Closed danmarsden closed 7 months ago

danmarsden commented 2 years ago

in your styles.css you define some relatively generic styles.

Moodle helpfully adds a number of classes to the body tag based on the path that you can use such as: eg if you are have a file in mod/assign you would see the following class added to the body tag path-mod-assign so if you have an item with the class "filething" on the page you would target it like:

.path-mod-assign .filething {
   color: red;
}

Please make sure your css classes in styles.css are specific enough so they cannot clash with other core code.

Tunyesz commented 2 years ago

Changed the css classes related to specific pages in #9