Musicsitetest / public /style.css
riddhiman's picture
Update public/style.css
006c5a6 verified
html {
height: 100%;
margin: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #121212;
color: white;
margin: 0;
padding: 3px;
display: flex;
flex-direction: column;
height: calc(100% - 120px);
}
#search-container {
padding: 15px;
background-color: #222;
}
#search-bar {
width: calc(100% - 40px);
padding: 10px;
border-radius: 20px;
border: 1px solid #333;
background-color: #333;
color: white;
outline: none;
}
#search-bar::placeholder {
color: #888;
}
#navigation {
display: flex;
justify-content: center;
align-items: center;
padding: 10px 0;
}
button {
background-color: #333;
border: none;
color: white;
padding: 10px 20px;
margin: 0 10px;
cursor: pointer;
border-radius: 20px;
}
#navigation button:disabled {
background-color: #555;
cursor: not-allowed;
}
#loader-container {
display: flex;
justify-content: center;
margin-left: 20px;
}
#top-bar {
display: flex;
justify-content: center;
align-items: center;
}
.loader {
content: '';
width: 10px;
height: 10px;
border: 5px solid #aaa;
border-top-color: transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#music-list {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.music-item {
display: flex;
align-items: center;
padding: 10px;
margin: 10px 0;
background-color: #222;
border-radius: 10px;
}
.album-art {
width: 50px;
height: 50px;
margin-right: 15px;
border-radius: 8px;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
#audio-player {
position: fixed;
bottom: 0;
padding: 3px;
margin-bottom: 10px;
width: calc(100% - 13px);
border: none;
border-radius: 10px;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
align-items: center;
display: flex;
flex-direction: column;
}
#main-con {
width: 98%;
flex-direction: row;
align-items: center;
}
#sound-con {
display: flex;
flex-direction: row;
width: 50%;
align-items: center;
}
#audio-player button {
margin: 2px;
padding: 10px 15px;
}
#progress-bar, #volume-control {
width: 100%;
}
.slider {
-webkit-appearance: none;
appearance: none;
width: 92%;
height: 5px;
background: #444;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 15px;
height: 15px;
border-radius: 5px;
background: #555;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 10px;
height: 10px;
background: #555;
cursor: pointer;
}