Moodle
  1. Moodle
  2. MDL-4050

Add support for media-specific stylesheets in themes

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor 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

          Activity

          Anonymous created issue -
          Michael Blake made changes -
          Field Original Value New Value
          Reporter anonymous [ anonymous ]
          Urs Hunkler made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Deferred [ 6 ]
          Luke Hudson made changes -
          Affects Version/s 1.9 [ 10190 ]
          Affects Version/s 1.5.2 [ 10107 ]
          Luke Hudson made changes -
          Resolution Deferred [ 6 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Luke Hudson made changes -
          Attachment tmp.patch [ 13493 ]
          Martin Dougiamas made changes -
          Workflow jira [ 14731 ] MDL Workflow [ 47665 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 47665 ] MDL Full Workflow [ 76739 ]
          Marina Glancy made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Assignee Urs Hunkler [ urshunkler ]
          Resolution Inactive [ 10000 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: