-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
100 lines (85 loc) · 2.08 KB
/
style.css
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
*::before, *::after, *{
box-sizing: border-box;
}
:root {
--primary-h: 221;
--primary-s: 12%;
--primary-l: 17%;
}
body {
background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
color: hsl(var(--primary-h), var(--primary-s), 90%);
text-align: center;
}
.strength-meter {
--primary-l: 57%;
position: relative;
height: 2.5rem;
width: 90%;
border: 3px solid hsl(var(--primary-h), var(--primary-s), var(--primary-l));
border-radius: 1rem;
margin: 3rem auto;
overflow: hidden;
}
.strength-meter::before {
/* --strength: 20; */
content: '';
position: absolute;
left: 0;
height: 100%;
width: calc(1% * var(--strength, 0));
background-color: hsl(var(--primary-h), var(--primary-s), 67%);
transition: width 200ms;
}
.password-input {
height: 2rem;
width: 100%;
padding-right: 30px; /* Ensure space for the image */
background-color: hsl(var(--primary-h), var(--primary-s), 25%);
color: white;
border: 1px solid hsl(var(--primary-h), var(--primary-s), 57%);
outline: none;
text-align: center;
border-radius: .3rem;
box-sizing: border-box; /* Include padding in width/height */
}
.password-input:focus {
border-color: hsl(var(--primary-h), var(--primary-s), 70%);
}
.input-container {
position: relative;
width: 90%; /* Adjust as needed */
margin: 1rem auto; /* Adjust margins */
}
.input-container > img {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 10px; /* Adjust this value for positioning */
height: 20px; /* Set the height of the image */
width: 20px; /* Set the width of the image */
cursor: pointer;
}
/* .password-icon {
margin-left: -30px;
margin-top: 35px;
cursor: pointer;
} */
/* #password-input {
background-image: url(./icons/show.png);
background-repeat: no-repeat;
background-position: 2px 3px;
} */
.reasons {
margin-top: 1.5rem;
}
.reasons > * {
margin-top: .5rem;
color: hsl(var(--primary-h), var(--primary-s), 80%);
}
/* .button {
background-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
}
.button:hover {
--primary-l: 54%;
} */