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

Add support for media-specific stylesheets in themes

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      After discussion with Urs, we came up with a scheme for adding media support.

      If we add this to config.php in the themes:

      $THEME->mediasheets['handheld'] = array(...);

      $THEME->mediasheets['screen'] = array(...);

      etc

      and if mediasheets is defined, then add an additional stylesheet link to a composite stylesheet which will be CSS just for that media type.

      In addition, we should add the parameter

      media=all

      to the existing stylesheets that we already have. This is assumed anyway but it's nice to make it explicit.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: