-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (62 loc) · 1.27 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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
box-sizing: border-box;
}
body {
background: #11998e; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #38ef7d, #11998e); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #38ef7d, #11998e); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
overflow: hidden;
margin: 0;
}
.search {
position: relative;
height: 50px;
}
.search .input {
background-color: #fff;
border: 0;
border-radius: 5px;
font-size: 1.8em;
padding: 15px;
height: 75px;
width: 75px;
transition: width 0.3s ease;
}
.btn {
background-color: #fff;
border: 0;
border-radius: 10px;
cursor: crosshair;
font-size: 2.4em;
position: absolute;
top: 0;
left: 0;
height: 75px;
width: 75px;
transition: transform 0.3s ease;
}
.btn:focus, .input:focus {
outline: none;
}
.search.active .input {
width: 400px;
}
.search.active .btn {
transform: translateX(390px);
}
footer {
position: absolute;
bottom: 10px;
font-size: 1.5em;
font-family: 'Roboto', 'sans-serif';
font-weight: 700;
font-style: italic;
opacity: .8;
color: white;
}