Update templates/search.html
Browse files- templates/search.html +11 -0
templates/search.html
CHANGED
@@ -30,6 +30,10 @@
|
|
30 |
border: 1px solid #ddd;
|
31 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
32 |
outline: none;
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
.search-icon {
|
35 |
position: absolute;
|
@@ -65,8 +69,12 @@
|
|
65 |
font-size: 1.2rem;
|
66 |
font-weight: 600;
|
67 |
color: #333;
|
|
|
68 |
}
|
69 |
@media (max-width: 576px) {
|
|
|
|
|
|
|
70 |
.item-card {
|
71 |
padding: 8px;
|
72 |
}
|
@@ -131,6 +139,9 @@
|
|
131 |
}
|
132 |
});
|
133 |
});
|
|
|
|
|
|
|
134 |
});
|
135 |
</script>
|
136 |
</body>
|
|
|
30 |
border: 1px solid #ddd;
|
31 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
32 |
outline: none;
|
33 |
+
background-color: #fff;
|
34 |
+
}
|
35 |
+
.search-container input::placeholder {
|
36 |
+
color: #888;
|
37 |
}
|
38 |
.search-icon {
|
39 |
position: absolute;
|
|
|
69 |
font-size: 1.2rem;
|
70 |
font-weight: 600;
|
71 |
color: #333;
|
72 |
+
margin: 0;
|
73 |
}
|
74 |
@media (max-width: 576px) {
|
75 |
+
body {
|
76 |
+
padding: 15px;
|
77 |
+
}
|
78 |
.item-card {
|
79 |
padding: 8px;
|
80 |
}
|
|
|
139 |
}
|
140 |
});
|
141 |
});
|
142 |
+
|
143 |
+
// Focus the search bar on page load
|
144 |
+
searchBar.focus();
|
145 |
});
|
146 |
</script>
|
147 |
</body>
|