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

Course format styles.css are global

    XMLWordPrintable

Details

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

    Description

      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'.

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              gb2048 Gareth J Barnard
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Huong Nguyen, Bas Brands, Mathew May
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: