Input icon checkmark on signup page (username field) for live check if username is available
This commit is contained in:
@ -244,6 +244,7 @@ you can use the generic selector below, but it's slower:
|
|||||||
@gray: #95a5a6;
|
@gray: #95a5a6;
|
||||||
@gray-light: #b4bcc2;
|
@gray-light: #b4bcc2;
|
||||||
@gray-lighter: #ecf0f1;
|
@gray-lighter: #ecf0f1;
|
||||||
|
@inverse: white;
|
||||||
|
|
||||||
// Brand colors
|
// Brand colors
|
||||||
// -------------------------
|
// -------------------------
|
||||||
@ -293,6 +294,9 @@ you can use the generic selector below, but it's slower:
|
|||||||
@headings-line-height: 1.1;
|
@headings-line-height: 1.1;
|
||||||
@headings-color: inherit;
|
@headings-color: inherit;
|
||||||
|
|
||||||
|
@input-font-size-base: @font-size-base;
|
||||||
|
|
||||||
|
@input-icon-font-size: ceil(@font-size-base * 1.333); // ~20px
|
||||||
|
|
||||||
// Iconography
|
// Iconography
|
||||||
// -------------------------
|
// -------------------------
|
||||||
@ -1189,4 +1193,76 @@ input[type="color"],
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Input Icons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
& + .input-icon {
|
||||||
|
position: absolute;
|
||||||
|
top: 2px;
|
||||||
|
right: 2px;
|
||||||
|
line-height: 37px;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: @input-icon-font-size;
|
||||||
|
color: desaturate(lighten(@brand-primary, 45%), 15%);
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0 25px 0 0;
|
||||||
|
border-radius: @input-border-radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Icons sizing
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
// Huge
|
||||||
|
.input-hg + .input-icon {
|
||||||
|
line-height: 49px;
|
||||||
|
padding: 0 16px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Large
|
||||||
|
.input-lg + .input-icon {
|
||||||
|
line-height: 41px;
|
||||||
|
padding: 0 15px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small
|
||||||
|
.input-sm + .input-icon {
|
||||||
|
font-size: @font-size-base;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Icons states
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
.has-success {
|
||||||
|
.input-icon {
|
||||||
|
color: @brand-success;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.has-warning {
|
||||||
|
.input-icon {
|
||||||
|
color: @brand-warning;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.has-error {
|
||||||
|
.input-icon {
|
||||||
|
color: @brand-danger;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.form-control[disabled] + .input-icon,
|
||||||
|
.form-control[readonly] + .input-icon,
|
||||||
|
fieldset[disabled] .form-control + .input-icon,
|
||||||
|
.form-control.disabled + .input-icon {
|
||||||
|
color: mix(@gray, white, 40%);
|
||||||
|
background-color: mix(@gray, white, 10%);
|
||||||
}
|
}
|
@ -12,6 +12,7 @@ block content
|
|||||||
label.col-sm-3.control-label(for='username') Email
|
label.col-sm-3.control-label(for='username') Email
|
||||||
.col-sm-7
|
.col-sm-7
|
||||||
input.form-control(type='email', name='username', id='username', placeholder='Email', autofocus='')
|
input.form-control(type='email', name='username', id='username', placeholder='Email', autofocus='')
|
||||||
|
span.input-icon.fui-check-inverted
|
||||||
.form-group
|
.form-group
|
||||||
label.col-sm-3.control-label(for='username') Password
|
label.col-sm-3.control-label(for='username') Password
|
||||||
.col-sm-7
|
.col-sm-7
|
||||||
|
Reference in New Issue
Block a user