-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
86 lines (79 loc) · 1.57 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
81
82
83
84
85
86
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans&family=Poppins:wght@100;200;400;500;600;800&family=Source+Code+Pro:wght@300&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
line-height: 1.6;
}
h1{
text-align: center;
/* same margin formation */
/* margin: 100px 0 50px 0; */
margin: 100px auto 50px;
font-weight: 600;
}
form{
width: 90%;
max-width: 600px;
height: 80px;
background: #434989;
display: flex;
align-items: center;
margin: auto;
border-radius: 10px;
/* justify-content: center; */
}
form #searchBox{
flex: 1;
height: 100%;
border: 0;
outline: 0;
background: transparent;
color: #fff;
padding: 0 30px;
font-size: 20px;
}
form #SearchButton{
padding: 0 40px;
height: 100%;
background: red;
color: #fff;
font-size: 20px;
outline: 0;
border: 0;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
cursor: pointer;
/* border-radius: 8px; */
}
::placeholder{
color: #fff;
font-size: 20px;
}
#showMoreBtn{
background: red;
color: #fff;
border: 0;
outline: 0;
margin: 10px auto 100px;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
display: none;
}
#searchResults{
width: 80%;
margin: 100px auto 50px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 40px;
}
#searchResults img{
width: 100%;
height: 250px;
border-radius: 5px;
object-fit: cover;
}