diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-20 16:35:46 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-20 16:35:55 +0200 |
| commit | be50f1442148c21cabf039abdcae5fe20bc690e8 (patch) | |
| tree | 28a7cb040d9a34dd242c05013179c1829048050e /packages/meshbay-hub/src/meshbay_hub/static/style.css | |
| parent | 2203618c8202bd95302215d7220f2de05fe12e48 (diff) | |
| download | meshbay-be50f1442148c21cabf039abdcae5fe20bc690e8.tar.gz | |
feat(hub): reveal button in the sign-in and registration passphrase fields
One PasswordInput for all three fields, with an eye toggle inside the box.
Out of the tab order, type="button" so a click cannot submit the form.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/style.css')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/style.css | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/style.css b/packages/meshbay-hub/src/meshbay_hub/static/style.css index 7c36ed7..e012a1a 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/style.css +++ b/packages/meshbay-hub/src/meshbay_hub/static/style.css @@ -830,6 +830,32 @@ input[type="email"] { } input:focus { outline: none; border-color: var(--border-focus); } +/* A reveal button inside the field rather than beside it. The input reserves + the room on its right, so a passphrase long enough to scroll ends under the + button instead of behind it. The `background: none` pair is not redundant: + the bare `button` rules just below paint every button with the accent colour + on rest and on hover, and this one has to stay part of the field. */ +.pw-field { position: relative; display: flex; } +.pw-field input { padding-right: 40px; } +.pw-toggle { + position: absolute; + top: 0; + right: 4px; + bottom: 0; + display: flex; + align-items: center; + justify-content: center; + width: 32px; + padding: 0; + background: none; + border: none; + border-radius: 6px; + color: var(--text-dim); + font-size: 1.15em; + cursor: pointer; +} +.pw-toggle:hover { background: none; color: var(--text); } + button { padding: 10px 20px; background: var(--accent); |