by Joseph Rézeau.
Not sure whether this goes into the General developer or the Themes forum, so putting it here for the moment.
I am currently revising the Questionnaire stylesheet and cannot find a reference to recommendations for CSS in the Moodle Coding style docs. If it exists, please someone point me to it. In the meantime, here are a few questions...
- When should the "full" location/scope of a CSS rule be used? And what should that "full" scope look like?
- #page-mod-questionnaire-questions div.qcontainer div.qnums
- or .qcontainer .qnums is enough?
- When to specify table, div, etc.?
- div.qcontainer div.qnums
- or .qcontainer .qnums is enough?
- When and why to use "path" as in .path-mod-quiz .qnbutton ? It seems that, in the case of quiz, for intance, that "path" is only used by themes which want to override the default rule.
- Should an extra "rtl" rule be added each time we have a text-align or float rule (any other?), as e.g.
- .path-mod-quiz .qnbutton {float: left;}
- .path-mod-quiz.dir-rtl .qnbutton {float: right;}
Anything else I should consider?
Thanks!
Joseph