Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37264 META: Standardize classnames and layout to facilitate theming
  3. MDL-37272

Establish universal label classes and consolidate existing label applications to use these new classes

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.5
    • Themes
    • MOODLE_25_STABLE

      These elements were identified and organized by David Scotson, and their first listing can be found here: https://moodle.org/mod/forum/discuss.php?d=216519 The content types are based on components in Twitter Bootstrap. In each case, we should implement a single class, and if possible eliminate unnecessary extra classes and IDs.

      Important Label
      The following elements all present an error-type element. DS chose to associate them with Bootstrap's label-important class, which can be viewed here: http://twitter.github.com/bootstrap/components.html#labels-badges

      div.felement.error span.error,
      span.error,
      span.patherror,
      tr.rolecap td.risk.xss a,
      div.form-warning

      Warning Label
      The following elements all present warning-type elements. DS chose to associate them with Bootstrap's label-warning class, which can be viewed here: http://twitter.github.com/bootstrap/components.html#labels-badges

      span.warn,
      p.warn,
      span.editinstructions,
      #page-admin-report-security-index span.statuswarning,
      span.statuswarning,
      tr.rolecap td.risk.spam a,
      .form-overridden

      Success Label
      The following elements all present warning-type elements. DS chose to associate them with Bootstrap's label-success class, which can be viewed here: http://twitter.github.com/bootstrap/components.html#labels-badges

      span.ok,
      span.pathok,
      span.statusok,
      font[color="green"],
      tr.rolecap td.risk.config a

      We should probably establish some universal classes for these three types of label, and then modify HTML markup as identified by DS to utilize these universal calsses

            Unassigned Unassigned
            agroshek Amy Groshek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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