-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageSearchApp.css
103 lines (103 loc) · 1.78 KB
/
ImageSearchApp.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
margin-block: 40px;
}
header {
width: 100%;
max-width: 800px;
text-align: center;
}
header h1 {
color: #767676;
}
header form .search-container {
margin-top: 20px;
position: relative;
}
header form .search-container input {
width: 100%;
font-size: 18px;
padding: 12px 24px;
border-radius: 20px;
border: none;
background-color: #eee;
}
header form .search-container .material-symbols-outlined {
position: absolute;
right: 10px;
bottom: 12px;
color: #777;
cursor: pointer;
}
.images-container {
margin-block: 50px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.images-container img {
width: 300px;
height: 280px;
}
.images-container .imageDiv {
position: relative;
}
.images-container .overlay {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
background-color: rgba(0, 0, 0, 0.7);
transition: height 0.3s ease;
justify-content: center;
display: flex;
align-items: center;
}
.imageDiv:hover .overlay {
height: 100%;
}
.imageDiv .overlay h3 {
color: white;
display: none;
text-align: center;
font-size: 20px;
}
.imageDiv:hover .overlay h3 {
display: block;
}
.loadMoreBtn {
border: none;
background-color: lightseagreen;
color: white;
font-size: 20px;
font-weight: 600;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
display: none;
}
main section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 20px 0 50px 0px;
}
@media screen and (max-width: 920px) {
header {
width: 80%;
}
}