- add search bar mobile
This commit is contained in:
Misthaa
2024-11-17 20:50:43 +01:00
parent 3647853e0c
commit b8e558c2d2
2 changed files with 22 additions and 0 deletions

View File

@ -14,6 +14,11 @@
<p>Logout</p>
</div>
</div>
<div class="search-container-mobile">
<input type="text" placeholder="Search..." class="search-input" id="searchInputUser" autocomplete="off">
</div>
<div id="searchResult">
</div>
<div id="chatButton">
<span class="notification-badge"></span>
<img src="/static/img/homePage/bulle.png">

View File

@ -402,6 +402,12 @@ body {
width: 30%;
}
.search-container-mobile {
display: none;
align-items: flex-start;
width: 30%;
}
.search-input {
width: 100%;
padding: 10px;
@ -618,6 +624,17 @@ input:checked + .slider:before {
.search-container {
display: none;
}
.search-container-mobile {
width: 100%;
position: absolute;
display: flex;
}
.search-input input {
left: 50%;
transform: translate(-50%);
width: 90%;
}
.menuSelected {
flex-direction: column;
}