Merge pull request #2385 from fantasticfears/css_modal

fix user/username error class
This commit is contained in:
Jeff Atwood 2014-05-26 11:00:41 -07:00
commit 13ff9980ac
5 changed files with 22 additions and 24 deletions

View File

@ -9,7 +9,7 @@
{{#if error}} {{#if error}}
<div class="control-group"> <div class="control-group">
<div class="instructions"> <div class="instructions">
<div class='alert error'>{{i18n user.change_about.error}}</div> <div class='alert alert-error'>{{i18n user.change_about.error}}</div>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View File

@ -17,7 +17,7 @@
{{#if error}} {{#if error}}
<div class="control-group"> <div class="control-group">
<div class="instructions"> <div class="instructions">
<div class='alert error'>{{i18n user.change_email.error}}</div> <div class='alert alert-error'>{{i18n user.change_email.error}}</div>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View File

@ -10,7 +10,7 @@
{{#if error}} {{#if error}}
<div class="control-group"> <div class="control-group">
<div class="instructions"> <div class="instructions">
<div class='alert error'>{{i18n user.change_username.error}}</div> <div class='alert alert-error'>{{i18n user.change_username.error}}</div>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View File

@ -491,27 +491,12 @@ body {
margin-bottom: 18px; margin-bottom: 18px;
background-color: scale-color($danger, $lightness: 75%); background-color: scale-color($danger, $lightness: 75%);
color: #c09853; color: #c09853;
}
.alert .close { .close {
position: relative; position: relative;
top: -2px; top: -2px;
right: -21px; right: -21px;
line-height: 18px; line-height: 18px;
}
.alert-success {
background-color: scale-color($success, $lightness: 90%);
color: $success;
}
.alert-error {
background-color: scale-color($danger, $lightness: 75%);
color: $danger;
}
.alert-info {
background-color: scale-color($tertiary, $lightness: 90%);
color: $primary;
}
.alert {
.close {
float: right; float: right;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
@ -534,7 +519,20 @@ body {
border: 0; border: 0;
-webkit-appearance: none; -webkit-appearance: none;
} }
&.alert-success {
background-color: scale-color($success, $lightness: 90%);
color: $success;
} }
&.alert-error {
background-color: scale-color($danger, $lightness: 75%);
color: $danger;
}
&.alert-info {
background-color: scale-color($tertiary, $lightness: 90%);
color: $primary;
}
}
.bootbox.modal { .bootbox.modal {
.modal-footer { .modal-footer {
a.btn-primary { a.btn-primary {