mirror of https://github.com/apache/cloudstack.git
Fix login form elements:
-Don't hide labels on focus -Fix lower brand logo size
This commit is contained in:
parent
360bf2c4f2
commit
ba0140da60
|
|
@ -53,33 +53,6 @@
|
|||
// Form validation
|
||||
$form.validate();
|
||||
|
||||
// Form label behavior
|
||||
$inputs.bind('keydown focus click blur', function(event) {
|
||||
var $target = $(event.target);
|
||||
var $label = $form.find('label').filter(function() {
|
||||
return $(this).attr('for') == $target.attr('name');
|
||||
});
|
||||
|
||||
if (event.type == 'keydown') {
|
||||
$label.hide();
|
||||
|
||||
return true;
|
||||
} else if (event.type == 'blur') {
|
||||
if ($target.hasClass('first-input')) {
|
||||
$target.removeClass('first-input');
|
||||
}
|
||||
if (!$(this).val()) {
|
||||
$label.show();
|
||||
}
|
||||
} else {
|
||||
if (!$target.hasClass('first-input')) {
|
||||
$label.hide();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
if (!args.hasLogo) $login.addClass('nologo');
|
||||
|
||||
// Labels cause related input to be focused
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
);
|
||||
|
||||
background-repeat: no-repeat, repeat-x, repeat, no-repeat;
|
||||
background-size: auto, auto, auto, cover;
|
||||
background-position: center bottom 25px, bottom, center, center;
|
||||
background-size: 300px, auto, auto, cover;
|
||||
background-position: center bottom 10px, bottom, center, center;
|
||||
|
||||
form {
|
||||
@include row;
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
background: url(csui/img/logo-main.png) no-repeat top center;
|
||||
background-size: contain;
|
||||
float: left;
|
||||
height: 500px;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.fields {
|
||||
|
|
|
|||
Loading…
Reference in New Issue