-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
54 lines (46 loc) · 762 Bytes
/
style.css
File metadata and controls
54 lines (46 loc) · 762 Bytes
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 62.5%;
font-family: sans-serif;
}
body {
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
background-color: #e9897e;
}
input {
padding: 0.8rem;
border: none;
border-radius: 0.5rem;
}
input:focus {
outline: none;
}
.container div {
position: relative;
}
.container div + div {
margin-top: 4.8rem;
}
.floating_lable {
padding: 0.8rem;
font-size: 1.2rem;
pointer-events: none;
position: absolute;
top: 0;
left: 0;
transition: all 0.3s ease-out 0s;
}
input:focus ~ .floating_lable,
input:not(:focus):valid ~ .floating_lable {
background-color: #1c2b48;
color: white;
border-radius: 0.5rem;
top: -3.5rem;
}