-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
100 lines (91 loc) · 1.96 KB
/
Copy pathstyle.css
File metadata and controls
100 lines (91 loc) · 1.96 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
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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*, *::after, *::before {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", serif;
}
html {
font-size: 62.5%;
}
main {
width: 100%;
height: 100vh;
display: grid;
place-items: center;
background-color: gainsboro;
}
.hidden {
display: none;
}
.input-container {
position: relative;
display: flex;
align-items: center;
padding: 2rem;
gap: 1.2rem;
border-radius: 1.2rem;
background-color: #333;
.lock {
fill: white;
z-index: 9;
}
.password {
border: none;
outline: none;
background-color: transparent;
font-size: 1.6em;
font-weight: 500;
color: white;
z-index: 9;
&::placeholder {
color: white;
}
}
.eye-container {
background-color: transparent;
display: grid;
place-items: center;
padding: .6rem;
border-radius: 50%;
cursor: pointer;
svg {
fill: #333;
z-index: 9;
}
}
&::before {
position: absolute;
content: "";
width: 4.2rem;
height: 4.2rem;
top: 50%;
right: 2rem;
border-radius: 50%;
transform: translateY(-50%);
background-color: white;
transition: all .3s ease;
z-index: 1;
}
}
.active {
.lock {
fill: #333;
}
.password {
color: #333;
&::placeholder {
color: #333;
}
}
&::before {
width: 100%;
height: 100%;
right: 0;
border-radius: 1.2rem;
}
}
svg {
width: 3rem;
height: 3rem;
}