css: refactor notice box css.
* Remove .ui-corner-all, .ui-state-highlight, .ui-state-error classes from notice boxes. * Use .notice, .notice-info, .notice-error classes instead. * Replace <p> elements in notices with <div>'s so that we don't have to work around the `margin-bottom: 1em` from <p> elements. * Replace <h1> elements in notices with <h2>. * Standardize info notices to use the same shade of light yellow in the light theme.
This commit is contained in:
@@ -19,7 +19,7 @@ Utility.test_max_width = function(width) {
|
||||
Utility.notice_timeout_id = undefined;
|
||||
|
||||
Utility.notice = function(msg, permanent) {
|
||||
$('#notice').addClass("ui-state-highlight").removeClass("ui-state-error").fadeIn("fast").children("span").html(msg);
|
||||
$('#notice').addClass("notice-info").removeClass("notice-error").fadeIn("fast").children("span").html(msg);
|
||||
|
||||
if (Utility.notice_timeout_id !== undefined) {
|
||||
clearTimeout(Utility.notice_timeout_id)
|
||||
@@ -33,7 +33,7 @@ Utility.notice = function(msg, permanent) {
|
||||
}
|
||||
|
||||
Utility.error = function(msg) {
|
||||
$('#notice').removeClass("ui-state-highlight").addClass("ui-state-error").fadeIn("fast").children("span").html(msg);
|
||||
$('#notice').removeClass("notice-info").addClass("notice-error").fadeIn("fast").children("span").html(msg);
|
||||
|
||||
if (Utility.notice_timeout_id !== undefined) {
|
||||
clearTimeout(Utility.notice_timeout_id)
|
||||
|
||||
Reference in New Issue
Block a user