-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
55 lines (48 loc) · 1.17 KB
/
styles.css
File metadata and controls
55 lines (48 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* Password Viewer Extension Styles */
.password-field-wrapper {
position: relative;
display: inline-block;
width: 100%;
}
.password-toggle-btn {
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
font-size: 14px;
padding: 2px;
border-radius: 3px;
transition: background-color 0.2s ease;
z-index: 1000;
user-select: none;
outline: none;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.password-toggle-btn:hover {
background-color: rgba(0, 0, 0, 0.1);
}
.password-toggle-btn:active {
background-color: rgba(0, 0, 0, 0.2);
}
/* Preserve original field dimensions and styles */
.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
width: 100% !important;
box-sizing: border-box !important;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
.password-toggle-btn:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.password-toggle-btn:active {
background-color: rgba(255, 255, 255, 0.2);
}
}