Skip to content

Commit ca0f788

Browse files
authored
Merge pull request #1088 from ujj654/search
Search bar issue has resolved #1026
2 parents 1f7a9e7 + 4a3ae3c commit ca0f788

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1980,17 +1980,17 @@ <h2>Cart</h2>
19801980
function playButton() {
19811981
alert("App development is in progress!");
19821982
}
1983+
</script>
19831984

1984-
1985-
</script>
19861985
<script>
19871986
const scrollButton = document.querySelector('.go-top');
19881987

19891988
// Show the button when the user scrolls
19901989
window.addEventListener('scroll', () => {
19911990
if (window.scrollY > 300) {
19921991
scrollButton.style.display = 'block';
1993-
} else {
1992+
}
1993+
else {
19941994
scrollButton.style.display = 'none';
19951995
}
19961996
});

style/style.css

+12-7
Original file line numberDiff line numberDiff line change
@@ -354,18 +354,23 @@ body.dark {
354354

355355
.local input[type='search'] {
356356
padding: 1rem 5rem 1rem 2rem;
357-
border-radius: 40px;
357+
border-radius: 42px;
358358
font-family: sans-serif;
359359
border: none;
360-
background-color: #d9d9d9;
360+
background-color: hsl(0, 0%, 85%);
361361
text-align: center;
362-
font-size: 20px;
362+
font-size: 33px;
363+
}
364+
365+
#search::-webkit-search-cancel-button{
366+
position:relative;
367+
margin-left: 10px;
363368
}
364369

365370
.local img {
366-
width: 50px;
367-
position: relative;
368-
right: 80px;
371+
width: 52px;
372+
position:relative;
373+
right: 75px;
369374
}
370375

371376
::placeholder {
@@ -707,7 +712,7 @@ body.dark {
707712

708713
.local input[type='search'] {
709714
padding: 10px 20px;
710-
font-size: 18px;
715+
font-size: 20px;
711716
}
712717

713718
.Accessories-box {

0 commit comments

Comments
 (0)