Fix login form elements:

-Don't hide labels on focus

-Fix lower brand logo size
This commit is contained in:
Brian Federle 2013-09-23 11:39:15 -07:00
parent 360bf2c4f2
commit ba0140da60
2 changed files with 3 additions and 30 deletions

View File

@ -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

View File

@ -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 {