-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontato.css
71 lines (62 loc) · 1.13 KB
/
contato.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Outfit", sans-serif;
}
body {
width: 100%;
height: 100vh;
background-image: url(img/fundo-forms.jpg);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 1280px;
margin: 0 auto;
}
form {
background-color: white;
max-width: 500px;
height: 400px;
padding: 40px;
border-radius: 20px;
}
form h1 {
text-align: center;
font-size: 30px;
color: #194b5a;
}
form p {
text-align: center;
margin: 20px 0;
}
.input-single {
position: relative;
margin: 20px 0;
}
.input-single label {
position: absolute;
left: 0;
bottom: 5px;
transition: all 0.2s;
cursor: text;
}
.input {
width: 100%;
border: 0;
border-bottom: 2px solid #ccc;
padding: 5px;
font-size: 17px;
outline: 0;
}
form .input-single .input:focus ~ label,
form .input-single .input:valid ~ label{
transform: translateY(-24px);
font-size: 12px;
color: #194b5a;
}