-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
111 lines (100 loc) · 1.93 KB
/
style.css
File metadata and controls
111 lines (100 loc) · 1.93 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
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
107
108
109
110
111
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:ital,wght@1,500&display=swap"); /*this is used to import the font from "google fonts"*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Lobster", sans-serif;
}
body {
line-height: 2;
background: rgb(161, 161, 161);
background: linear-gradient(
to bottom,
rgba(161, 161, 161, 1) 0%,
rgba(82, 82, 82, 1) 49%,
rgba(0, 0, 0, 1) 100%
);
height: 100lh;
}
h1 {
font-size: 60px;
text-align: center;
font-size: 200%;
}
form {
display: flex;
justify-content: center;
}
#search-input {
width: 20%;
margin: 5px;
padding: 4px;
border: none;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-color: lightgrey;
border-radius: 10px;
color: grey;
}
#search-button {
width: 45px;
height: 30px;
background-color: rgb(11, 154, 147);
color: white;
margin-top: 5px;
margin-bottom: 5px;
font-size: 9px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.search-results {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
}
.search-result {
margin-bottom: 60%;
width: 25%;
height: 100%;
margin: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 5%;
overflow: hidden;
}
.search-result img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 5%;
transition: opacity 1 ease-in-out;
}
.search-result:hover img {
opacity: 0.7;
}
.search-results a {
border-color: black;
font-size: 15px;
display: block;
padding: 5px;
text-decoration: none;
text-align: center;
color: rgb(251, 222, 222);
font-weight: lighter;
text-transform: capitalize;
}
#show-more-button {
text-align: center;
width: 10%;
height: 4%;
display: block;
margin: 20px auto;
background-color: rgb(39, 88, 174);
color: white;
font-size: 15px;
border: none;
border-radius: 5px;
cursor: pointer;
display: none;
}