diff --git a/web/styles/settings.css b/web/styles/settings.css index ce19291fd4..36b3139e30 100644 --- a/web/styles/settings.css +++ b/web/styles/settings.css @@ -1166,59 +1166,58 @@ input[type="checkbox"] { flex: 0 0 100%; } - .modal_password_input { - /* The usual width of input is 206px, but we reduce - it by 30px to make way for the padding. */ - width: 176px; - padding-right: 30px; - } - - .password_visibility_toggle { - /* We're going to use flexbox, not - positioning, to get the clear button - over top of the input. This -2em - margin accomplishes that, in tandem - with the 2em width of this element, - which is shared with the ending - anchor element in left sidebar header - rows. We're using em instead of pixels - so the whitespace between the input box - and the icon doesn't decrease when the - icon's font-size increases when switching - from 14px info density to 16px info density - mode. */ - width: 2em; - margin-left: -2em; - - /* Make the button itself a flex container, - so we can perfectly center the X icon. */ + .password-input-row { display: flex; - justify-content: center; - align-items: center; - - opacity: 0.6; - - /* Make the bottom margin same as `.modal_password_input` - for proper centering, if the margin changes there, - it should also change here and vice versa. */ margin-bottom: 10px; - &:hover { - opacity: 1; + .modal_password_input { + /* The usual width of input is 206px, but we reduce + it by 30px to make way for the padding. */ + width: 176px; + padding-right: 30px; + /* Override the original 10px value so that we can + set the margin-bottom in the parent div instead. */ + margin-bottom: 0; } - } - .settings-forgot-password { - /* Make the link itself a flex container, - so we can perfectly center the text - in relation to the input box. */ - display: flex; - align-items: center; - margin-left: 10px; - /* Make the bottom margin same as `.modal_password_input` - for proper centering, if the margin changes there, - it should also change here and vice versa. */ - margin-bottom: 10px; + .password_visibility_toggle { + /* We're going to use flexbox, not + positioning, to get the clear button + over top of the input. This -2em + margin accomplishes that, in tandem + with the 2em width of this element, + which is shared with the ending + anchor element in left sidebar header + rows. We're using em instead of pixels + so the whitespace between the input box + and the icon doesn't decrease when the + icon's font-size increases when switching + from 14px info density to 16px info density + mode. */ + width: 2em; + margin-left: -2em; + + /* Make the button itself a flex container, + so we can perfectly center the X icon. */ + display: flex; + justify-content: center; + align-items: center; + + opacity: 0.6; + + &:hover { + opacity: 1; + } + } + + .settings-forgot-password { + /* Make the link itself a flex container, + so we can perfectly center the text + in relation to the input box. */ + display: flex; + align-items: center; + margin-left: 10px; + } } } } diff --git a/web/templates/dialog_change_password.hbs b/web/templates/dialog_change_password.hbs index 489e7e456d..2b4c0654ad 100644 --- a/web/templates/dialog_change_password.hbs +++ b/web/templates/dialog_change_password.hbs @@ -1,15 +1,19 @@