-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
78 lines (74 loc) · 1.35 KB
/
style.css
File metadata and controls
78 lines (74 loc) · 1.35 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
*{
box-sizing: border-box;
}
body{
background-color:steelblue;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
margin: 0;
}
.container {
background: rgb(0,0,0,0.4);
padding: 20px 40px;
border-radius: 5px;
}
.container h1{
text-align: center;
}
.form-control{
position: relative;
margin: 20px 0 40px;
width: 300px;
}
.form-control input{
display:block;
background-color:transparent;
border: 0;
border-bottom: 2px #fff solid;
width: 100%;
padding: 15px 0;
font-size: 18px;
color: #fff;
}
.form-control input:focus,
.form-control input:valid{
outline: 0;
border-bottom-color: lightblue;
}
.form-control label {
position:absolute;
top: 15px;
left: 0;
pointer-events: none;
}
.form-control span{
display: inline-block;
font-size: 18px;
transition: 0.3s cubic-bezier(0.1,0.7,1.0,0.1);
}
.form-control input:focus + label span,
.form-control input:valid + label span{
color: lightblue;
transform: translateY(-30px);
}
.btn{
cursor: pointer;
display: inline-block;
width: 100%;
background-color: lightblue;
padding: 15px;
border: 0;
border-radius: 5px;
font-size: 16px;
}
.text{
margin: 30px;
}
.text a{
color: lightblue;
}