-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
75 lines (66 loc) · 1.3 KB
/
main.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
* {
margin: 0;
box-sizing: border-box;
padding: 0;
}
body{
display: flex;
height: 100vh;
background-color: rgb(87, 189, 130);
transition: background 0.5s ease;
position: relative;
}
.field-name,
.field-email,
.field-password,
.field-finish{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50% , -50%);
background: white;
height: 50px;
width: 400px;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 5px;
transition: all 0.5s ease;
}
.field-name i,
.field-email i,
.field-password i,
.field-finish i{
padding: 10px;
cursor: pointer;
}
div.inactive{
opacity: 0;
pointer-events: none;
transform:translate(-50%, 50%);
}
div.active{
opacity: 1;
pointer-events: all;
transform: translate(-50%, -50%);
}
.field-name input,
.field-email input,
.field-password input{
background: none;
border: none;
flex:1;
height: 100%;
outline: none;
}
@keyframes shake {
0%{
transform: translate(-50%, -50%) rotate(0deg);
}
50%{
transform: translate(-50%, -50%) rotate(10deg);
}
100%{
transform: translate(-50%, -50%) rotate(0deg);
}
}