Iskalnik pesmi #2

This commit is contained in:
2026-03-19 22:04:52 +01:00
parent 4afc5e30d9
commit 2cf509e796
3 changed files with 152 additions and 0 deletions

View File

@@ -74,6 +74,78 @@ body {
position: relative;
}
.search-container {
position: relative;
flex: 1;
max-width: 400px;
margin: 0 auto;
}
#search-input {
width: 100%;
padding: 6px 12px;
border-radius: 20px;
border: 1px solid #444;
background-color: #222;
color: #fff;
font-size: 16px;
outline: none;
}
#search-input:focus {
border-color: #1f8a46;
background-color: #2a2a2a;
}
.search-results {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: #222;
border: 1px solid #444;
border-top: none;
border-radius: 0 0 8px 8px;
max-height: 300px;
overflow-y: auto;
z-index: 1001;
display: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.search-results.show {
display: block;
}
.search-item {
padding: 10px 15px;
border-bottom: 1px solid #333;
cursor: pointer;
display: flex;
gap: 10px;
}
.search-item:last-child {
border-bottom: none;
}
.search-item:hover {
background-color: #333;
}
.search-item .song-id {
color: #1f8a46;
font-weight: bold;
min-width: 30px;
}
.search-item .song-title {
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.menu-toggle {
background: transparent;
border: none;