-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
80 lines (71 loc) · 1.43 KB
/
style.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
76
77
78
79
80
@import url(https://fonts.googleapis.com/css?family=Montserrat);
body{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 70vh;
font-family: Montserrat;
background: #00000000;
}
.text-input{
position: relative;
margin-top: 50px;
}
input{
display: inline-block;
width: 300px;
height: 40px;
box-sizing: border-box;
outline: none;
border: 1px solid lightgray;
border-radius: 3px;
padding: 10px 10px 10px 100px;
transition: all 0.1s ease-out;
}
input + label{
position: absolute;
top: 0;
left: 0;
bottom: 0;
height: 40px;
line-height: 40px;
color: white;
border-radius: 3px 0 0 3px;
padding: 0 20px;
background: rgb(0, 153, 204);
transform: translateZ(0) translateX(0);
transition: all 0.4s ease-in;
transition-delay: 0s;
}
input:focus + label{
opacity: 0.2;
border-radius: 3px;
background: rgb(204, 51, 255);
transition: all 0.4s ease-out;
}
input:focus{
padding: 10px;
transition: all 0.3s ease-out;
transition-delay: 0s;
}
a {
top: 0;
left: 0;
bottom: 0;
margin-top: 10px;
height: 40px;
line-height: 40px;
color: white;
border-radius: 3px 0 0 3px;
padding: 10px;
background: rgb(0, 153, 204);
transition:all .3s ease;
}
.labelStretch{
width: 260px;
}
a:hover{
background: rgb(204, 51, 255);
transition:all .3s ease;
}