Skip to content

Commit 368256c

Browse files
authored
Merge pull request #192 from Shibai419/main
Fixed password toggle eye placement
2 parents ff8a5ad + 9d702fd commit 368256c

2 files changed

Lines changed: 36 additions & 20 deletions

File tree

login.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ body {
167167

168168
.form-container input[type="email"],
169169
.form-container input[type="password"] {
170-
padding: 15px 15px 15px 45px;
170+
padding: 15px 15px 15px 15px;
171171
border: 2px solid #e8f5e8;
172172
border-radius: 12px;
173173
font-size: 16px;
@@ -192,24 +192,32 @@ body {
192192
font-size: 15px;
193193
}
194194

195-
/* Password toggle */
196195
.password-toggle {
197196
position: absolute;
198197
right: 15px;
199198
top: 50%;
200199
transform: translateY(-50%);
201-
background: none;
202-
border: none;
200+
background: none !important;
201+
border: none !important;
203202
color: #666;
204203
cursor: pointer;
205-
padding: 5px;
206-
border-radius: 4px;
207-
transition: all 0.2s ease;
204+
padding: 0 !important;
205+
border-radius: 0 !important;
206+
outline: none !important;
207+
box-shadow: none !important;
208+
width: 30px;
209+
height: 30px;
210+
display: flex;
211+
align-items: center;
212+
justify-content: center;
208213
}
209214

210-
.password-toggle:hover {
211-
color: #2e7d32;
212-
background: rgba(46, 125, 50, 0.1);
215+
.password-toggle:hover,
216+
.password-toggle:focus,
217+
.password-toggle:active {
218+
background: none !important;
219+
outline: none !important;
220+
box-shadow: none !important;
213221
}
214222

215223
/* Forgot password link */

register.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ body::before {
195195
.form-container input[type="text"],
196196
.form-container input[type="email"],
197197
.form-container input[type="password"] {
198-
padding: 15px 15px 15px 45px;
198+
padding: 15px 15px 15px 15px;
199199
border: 2px solid #e8f5e8;
200200
border-radius: 12px;
201201
font-size: 16px;
@@ -277,24 +277,32 @@ body::before {
277277
color: #666;
278278
}
279279

280-
/* Password toggle */
281280
.password-toggle {
282281
position: absolute;
283282
right: 15px;
284283
top: 50%;
285284
transform: translateY(-50%);
286-
background: none;
287-
border: none;
285+
background: none !important;
286+
border: none !important;
288287
color: #666;
289288
cursor: pointer;
290-
padding: 5px;
291-
border-radius: 4px;
292-
transition: all 0.2s ease;
289+
padding: 0 !important;
290+
border-radius: 0 !important;
291+
outline: none !important;
292+
box-shadow: none !important;
293+
width: 30px;
294+
height: 30px;
295+
display: flex;
296+
align-items: center;
297+
justify-content: center;
293298
}
294299

295-
.password-toggle:hover {
296-
color: #2e7d32;
297-
background: rgba(46, 125, 50, 0.1);
300+
.password-toggle:hover,
301+
.password-toggle:focus,
302+
.password-toggle:active {
303+
background: none !important;
304+
outline: none !important;
305+
box-shadow: none !important;
298306
}
299307

300308
/* Button styling */

0 commit comments

Comments
 (0)