fix user/username error class

This commit is contained in:
Erick Guan 2014-05-26 14:17:25 +08:00
parent 570c4b6300
commit ecbda44be4
5 changed files with 22 additions and 24 deletions

View File

@ -9,7 +9,7 @@
{{#if error}}
<div class="control-group">
<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>
{{/if}}

View File

@ -17,7 +17,7 @@
{{#if error}}
<div class="control-group">
<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>
{{/if}}

View File

@ -10,7 +10,7 @@
{{#if error}}
<div class="control-group">
<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>
{{/if}}

View File

@ -13,7 +13,7 @@ blockquote {
border-left: 5px solid darken(scale-color-diff(), 10%);
}
a.no-href {
a.no-href {
cursor: pointer;
}

View File

@ -491,27 +491,12 @@ body {
margin-bottom: 18px;
background-color: scale-color($danger, $lightness: 75%);
color: #c09853;
}
.alert .close {
position: relative;
top: -2px;
right: -21px;
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 {
position: relative;
top: -2px;
right: -21px;
line-height: 18px;
float: right;
font-size: 20px;
font-weight: bold;
@ -534,7 +519,20 @@ body {
border: 0;
-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 {
.modal-footer {
a.btn-primary {