Skip to content

Commit 1aeb5fd

Browse files
committed
style: 优化密码输入框的布局和切换按钮样式
1 parent 9de6d64 commit 1aeb5fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

assets/css/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ body {
6363
.input-group input:focus, .input-group select:focus { border-color: #1e90ff; }
6464

6565
/* Password input wrapper */
66-
.password-input-wrapper { position: relative; }
67-
.password-input-wrapper input { padding-right: 44px; }
68-
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
66+
.password-input-wrapper { position: relative; display: flex; align-items: center; }
67+
.password-input-wrapper input { padding-right: 40px; flex: 1; }
68+
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; z-index: 10; }
6969
.password-toggle:hover { color: #1e90ff; background: #f8fbff; }
7070
.password-toggle:focus { outline: 2px solid #1e90ff; outline-offset: 1px; }
7171

0 commit comments

Comments
 (0)