-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimagesearch.css
122 lines (122 loc) · 2.55 KB
/
imagesearch.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background-color: #f9f9f9;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.6;
}
h1{
font-size: 5.714285714285714vh;
font-weight: bold;
text-align: center;
margin-top: 6.349206349206349vh;
margin-bottom: 9.523809523809524vh;
}
form{
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 9.523809523809524vh;
}
#search-input{
width: 60%;
max-width: 63.492063492063494vh;
padding: 1.6vh 3.1746031746031744vh;
border: none;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
border-radius: .6vh;
font-size: 2.857142857142857vh;
color: #333;
}
#search-button{
padding: 1.6vh 3.1746031746031744vh;
background-color: #4caf50;
color: white;
border: none;
font-size: 2.857142857142857vh;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
cursor: pointer;
border-radius: .6vh;
transition: background-color .3s ease-in-out;
}
#search-button:hover{
background-color: #3e8e41;
}
.image img{
width: 100%;
height: 31.746031746031747vh;
object-fit: cover;
transition: transform .3s ease-in-out;
}
.image:hover img{
transform: scale(1.05);
}
.Search-result{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.image a{
padding: 1.6vh;
display: block;
color: #333;
text-decoration: none;
transition: background-color .3s ease-in-out;
}
.image:hover a{
background-color: rgba(0,0,0,0.1);
}
.image{
margin-bottom: 9.523809523809524vh;
width: 30%;
border-radius: .6vh;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
overflow: hidden;
}
#showmore{
background-color: #008cba;
border: none;
color: white;
display: inline-block;
padding: 10px 20px;
text-align: center;
margin:20px auto;
display: block;
border-radius: .6vh;
cursor: pointer;
transition: background-color .3s ease-in-out;
display: none;
}
@media screen and (max-width:768px){
.image{
width: 45%;
}
}
@media screen and (max-width:480px){
.image{
width: 100%;
}
form{
flex-direction: column;
}
#search-input{
margin-bottom:20px ;
width: 90vw;
}
button{
width: 90vw;
}
}
#showmore:hover{
background-color: #0077b5;
}
/* .btn{
display: flex;
justify-content: center;
} */