therealsujitk
Here is a beautiful css that will work without tampering with the text input. I make use of the font-awesome to add the fa-eye icon. re-position the show password element .
The Only problem is on the signup modal, the eye-icon is not well position because i cannot find any unique css selection for either of the login or signup form to use in styling it.
See live demo here https://afoa.ga/
.Form--centered {position:relative}
.Form--centered > label.checkbox {
position:absolute;
font-size:0px;
right: 0px;
bottom: 117px;
visibility: hidden;
}
.SignUpModal .Form--centered > label.checkbox {bottom: 80px;} /*fixed Signupmodal*/
.Form--centered > label.checkbox:after{
content: "\f06e";
display: inline-block;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: 'Font Awesome 5 Free';
font-weight: 900;
font-size: 28px;
position:absolute;
right: 10px;
visibility:visible !important;
}
This is my fist public post on Flarum