diff --git a/core/modules/user/user.css b/core/modules/user/user.css index 42ca431f798c..ae46dbc6525d 100644 --- a/core/modules/user/user.css +++ b/core/modules/user/user.css @@ -19,7 +19,6 @@ .password-strength { width: 17em; float: right; /* LTR */ - margin-top: 1.4em; } .password-strength-title { display: inline; @@ -45,7 +44,6 @@ input.password-field { } div.password-confirm { float: right; /* LTR */ - margin-top: 1.5em; visibility: hidden; width: 17em; } diff --git a/core/modules/user/user.js b/core/modules/user/user.js index 8e0e13547310..e5f6142b863d 100644 --- a/core/modules/user/user.js +++ b/core/modules/user/user.js @@ -18,7 +18,7 @@ Drupal.behaviors.password = { innerWrapper.addClass('password-parent'); // Add the password confirmation layer. - outerWrapper.find('input.password-confirm').parent().prepend('
' + translate.confirmTitle + '
').addClass('confirm-parent'); + outerWrapper.find('input.password-confirm').parent().append('
' + translate.confirmTitle + '
').addClass('confirm-parent'); var confirmInput = outerWrapper.find('input.password-confirm'); var confirmResult = outerWrapper.find('div.password-confirm'); var confirmChild = confirmResult.find('span'); @@ -26,7 +26,7 @@ Drupal.behaviors.password = { // Add the description box. var passwordMeter = '
' + translate.strengthTitle + '
'; confirmInput.parent().after('
'); - innerWrapper.prepend(passwordMeter); + innerWrapper.append(passwordMeter); var passwordDescription = outerWrapper.find('div.password-suggestions').hide(); // Check the password strength. diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css index a72d686e9fad..83d52931d469 100644 --- a/core/themes/seven/style.css +++ b/core/themes/seven/style.css @@ -816,6 +816,14 @@ select.form-select:focus { float: none; padding: 0; } + div.password-confirm, + .password-strength { + float: none; + } + .confirm-parent, + .password-parent { + width: 100%; + } } /* Exceptions */