Skip to content

Commit 4a3ae3c

Browse files
committed
Search bar issue has resolved
1 parent a47434d commit 4a3ae3c

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ <h2>Cart</h2>
16771677
display: none;
16781678
}
16791679
</style>
1680-
<script type="text/javascript" src="https://studio.alan.app/web/lib/alan_lib.min.js"></scrip>
1680+
<script type="text/javascript" src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
16811681
<script>
16821682
var alanBtnInstance = alanBtn({
16831683
key: '574e6cb0247244fa64a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage',
@@ -1700,17 +1700,17 @@ <h2>Cart</h2>
17001700
function playButton() {
17011701
alert("App development is in progress!");
17021702
}
1703+
</script>
17031704

1704-
1705-
</script>
17061705
<script>
17071706
const scrollButton = document.querySelector('.go-top');
17081707

17091708
// Show the button when the user scrolls
17101709
window.addEventListener('scroll', () => {
17111710
if (window.scrollY > 300) {
17121711
scrollButton.style.display = 'block';
1713-
} else {
1712+
}
1713+
else {
17141714
scrollButton.style.display = 'none';
17151715
}
17161716
});

style/style.css

Lines changed: 12 additions & 7 deletions
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 {
@@ -706,7 +711,7 @@ body.dark {
706711

707712
.local input[type='search'] {
708713
padding: 10px 20px;
709-
font-size: 18px;
714+
font-size: 20px;
710715
}
711716

712717
.Accessories-box {

0 commit comments

Comments
 (0)