iconnewmedia-de / moodle-block_thi_learning_companions_mygroups

Block Plugin for Moodle that allows users to create groups and chat with eachother to discuss their topics. Requires local_learnincompanions
Other
0 stars 0 forks source link

styles.css not specific enough #1

Open danmarsden opened 6 months ago

danmarsden commented 6 months ago

https://github.com/iconnewmedia-de/thi_block_learningcompanions_mygroups/blob/master/styles.css#L59

in your styles.css you define a number of generic styles that could clash with core moodle code or other locations where simliar names are used.

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.

note this is a blocker for plugins db approval.