-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
59 lines (59 loc) · 1.18 KB
/
style.css
File metadata and controls
59 lines (59 loc) · 1.18 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #fffafa;
}
.input__box {
position: relative;
width: 300px;
}
.input__input {
width: 100%;
font-size: 1em;
border: none;
border: 1px solid rgba(0, 0, 0, 0.75);
background-color: transparent;
border-radius: 5px;
color: #121212;
outline: none;
padding: 15px 60px 15px 20px;
}
.input__label {
position: absolute;
left: 0;
font-size: 1em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: rgba(0, 0, 0, 0.75);
padding: 15px 20px;
pointer-events: none;
transition: 0.5s;
}
.input__input:focus ~ .input__label,
.input__input:valid ~ .input__label {
font-size: 0.7em;
font-weight: 400;
color: #121212;
background-color: #ffc618;
padding: 0 5px;
transform: translate(20px, -8px);
}
.input__icon {
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
font-size: 2em;
color: #003153;
cursor: pointer;
}