-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
106 lines (92 loc) · 1.77 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
h1 {
text-align: center;
margin: 20px 0 40px 0;
}
form {
display: flex;
align-items: center;
justify-content: center;
}
#search-input {
width: 60%;
max-width: 480px;
padding: 13px;
font-size: 16px;
border: none;
outline: none;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
#search-button {
padding: 10px;
outline: none;
border: none;
margin-left: 10px;
font-size: 16px;
cursor: pointer;
background-color: #138865;
color: #fff;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.search-result {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1200px;
margin: 50px auto;
}
.result {
width: 30%;
height: 100%;
overflow: hidden;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
padding: 5px;
border-radius: 5px;
cursor: pointer;
margin: 20px 0;
border: 1px solid grey;
}
.result img {
width: 100%;
height: 250px;
object-fit: cover;
border-radius: 5px;
}
.result:hover img {
opacity: 0.9;
}
.result a {
/* text-decoration: none; */
color: #000;
display: block;
text-transform: capitalize;
padding: 5px;
font-size: 18px;
}
#show-more {
background-color: #008cba;
font-size: 16px;
border: none;
color: #fff;
padding: 8px 15px;
text-align: center;
display: block;
margin: 30px auto;
border-radius: 5px;
cursor: pointer;
display: none;
}
@media only screen and (max-width: 600px) {
.result {
width: 100%;
margin: 10px 20px;
}
}