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:
@@ -1,5 +1,5 @@
|
||||
<div class="ui-corner-all ui-state-error" id="ban-notice">
|
||||
<h1>Your account has been temporarily banned</h1>
|
||||
<p>Reason: <span class="prose"><%= format_text CurrentUser.user.recent_ban.reason, inline: true %></span></p>
|
||||
<p>Your ban will expire in <%= time_ago_in_words(CurrentUser.user.recent_ban.expires_at) %></p>
|
||||
<div class="notice notice-error notice-large" id="ban-notice">
|
||||
<h2>Your account has been temporarily banned</h2>
|
||||
<div>Reason: <span class="prose"><%= format_text CurrentUser.user.recent_ban.reason, inline: true %></span></div>
|
||||
<div>Your ban will expire in <%= time_ago_in_words(CurrentUser.user.recent_ban.expires_at) %></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user