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