Skip to content

Tweak the password field #1384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions assets/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,22 @@ body#login #login-users-help p .console {
padding: 10px
}

body#login .form-group-password {
position: relative;

input { padding-right: 48px; }
button {
background: transparent;
border: 0;
color: #2C3E50;
height: 45px;
outline: 0;
position: absolute;
bottom: 0;
right: 0;
}
}

/* Common Blog page elements
------------------------------------------------------------------------- */
.post-metadata {
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/build/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"css": [
"/build/523.af638d6a.css",
"/build/app.fd6de4a2.css"
"/build/app.041f0894.css"
]
},
"admin": {
Expand Down Expand Up @@ -41,7 +41,7 @@
"/build/523.4e56168f.js": "sha384-RhWg+IG69qzBiXWLeR1y4zDAUKShELmPhW/ljLkM6dvDAAAZ8G53S8eSfJCD2ysh",
"/build/app.6d6d5305.js": "sha384-66G5BXqY9YPdbY6X74e9zhtxcrcsuI+ZNgwcalqQZjApTspsa6tttO/m6/5Q9qeH",
"/build/523.af638d6a.css": "sha384-v8JR3eGGaAt4v00TVoQw8eXVP3VII6ELEb0ICEiZiWCQAjSLBhTjjvJI3OD6dM8l",
"/build/app.fd6de4a2.css": "sha384-kEXfKrysXeUZF5tX/t9lBCeEcxwnMDPu3uRzDpt9R+nWzOc/7Ee/9NpqcqUlMf4C",
"/build/app.041f0894.css": "sha384-OSx4GHdlkv4D/Zum3kIF+q8gdjuBkPD9rZfVN8PYGvr3hXjbYkkcstKDpePPLv2v",
"/build/919.08dbe796.js": "sha384-dzi3OjmstJUAQWj6dVwXZ9S9bOiSC65gm5bBaUjl3cpEPNNjo0m6SW14cdB0+Xma",
"/build/admin.01a1ae56.js": "sha384-LOSDVRmGz+4BPOMk0InaJfGREPO4tBFmPzWApnJ4uvuiAxf4BfnDh43JkIewAm8T",
"/build/admin.4e2dcc67.css": "sha384-ijpylu55+5LEOVSzTnWBeA7JuRKZ1HWi4TiJBM6Uil3h7FjmwVjUK8hN86UU1nOj",
Expand Down
2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"build/app.css": "/build/app.fd6de4a2.css",
"build/app.css": "/build/app.041f0894.css",
"build/app.js": "/build/app.6d6d5305.js",
"build/admin.css": "/build/admin.4e2dcc67.css",
"build/admin.js": "/build/admin.01a1ae56.js",
Expand Down
12 changes: 4 additions & 8 deletions templates/security/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@
<label for="username">{{ 'label.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" class="form-control" {{ stimulus_target('login', 'username') }} />
</div>
<div class="form-group">

<div class="form-group form-group-password">
<label for="password">{{ 'label.password'|trans }}</label>
<input type="password" id="password" name="_password" class="form-control" {{ stimulus_target('login', 'password') }} />
<button class="btn btn-primary pull-right" type="button" {{ stimulus_action('login', 'togglePasswordInputType') }}><i class="fa fa-eye"></i></button>
</div>
<button class="btn btn-primary pull-right" type="button" {{ stimulus_action('login', 'togglePasswordInputType') }}><i class="fa fa-eye"></i></button>
<div class="form-group">
<label>
<input type="checkbox" name="_remember_me" checked/>
Keep me logged in
</label>
</div>

<div class="form-group">
<label>
<input type="checkbox" name="_remember_me" checked/>
Expand Down