Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33037

Course format styles.css are global

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • None
    • 2.2.3
    • Course, Themes
    • None
    • MOODLE_22_STABLE

      When editing 'styles.css' in a course format, the styles are applied globally, they should only be applied when the format is being used. Using Moodle 2.2.3 (Build: 20120514).

      As an example, attached is a course format I've developed for iMoot 2012, which admittedly has css designed to affect the whole page, but it cleanly illustrates the point as is applied on the whole site. To test, place the extracted 'imootopics' folder in '/course/format' and click on 'Notifications'. There are no database modifications. The course format appears as 'iMoot Topics' in the list of formats.

      The workaround to this is a separate css file that is included by adding appropriate css sytle html tags to 'format.php'.

            marina Marina Glancy
            gb2048 Gareth J Barnard
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.