ChandimaPrabath's picture
major update: add playlist
ba6c831
.player-maximized video {
width: auto;
height: 100vh;
}
.player-minimized video {
max-width: 18vh;
height: 10vh;
min-width: 18vh;
background-color: #000;
}
.music-title {
display: -webkit-box; /* Fallback for multi-line ellipsis */
-webkit-line-clamp: 1; /* Limits to one line */
-webkit-box-orient: vertical; /* Specifies the box orientation */
overflow: hidden;
text-overflow: ellipsis;
white-space: normal; /* Allows wrapping but limits line count */
line-height: 1.2em; /* Optional: Adjust line spacing */
max-height: 1.2em; /* Optional: Adjust to fit one line */
width: 100%;
}
.music-title.player-mini{
font-size: .85rem;
}
.player-minimized {
align-items: center;
width: 100%;
}
.player-maximized {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
}
.player-top {
display: flex;
}
.name-container{
display: flex;
align-items: center;
width: 100%;
}
.player-controls {
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.329);
width: 100%;
height: 100%;
z-index: 10;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
transition: opacity 0.5s;
}
.player-controls.hide {
opacity: 0;
pointer-events: none;
}
.player-controls.show {
opacity: 1;
}
.player-controls-top {
background-image: linear-gradient(black, transparent);
width: 100%;
height: 30%;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-between;
}
.player-controls-center {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 50%;
gap: 10%;
}
.player-controls-bottom {
background-image: linear-gradient(transparent, black);
width: 100%;
height: 30%;
display: flex;
flex-direction: column;
justify-content: end;
padding-bottom: 20px;
padding-left: 10px;
padding-right: 10px;
}
.player-control-bottom-top{
width: 100%;
display: flex;
gap: 5px;
}
.player-controls-down {
display: flex;
flex-direction: row;
width: 100%;
justify-content: center;
align-items: center;
padding-left: 5px;
padding-right: 5px;
}
.player-controls-left {
width: 100%;
display: flex;
justify-content: left;
gap: 10px;
}
.player-controls-right {
width: 100%;
display: flex;
justify-content: right;
gap: 10px;
}
.player-max-button {
font-size: 2.5rem;
}
.player-min-button {
font-size: 1.6rem;
}
.progress-bar-container {
position: relative;
background-color: #333;
overflow: hidden;
width: 100%;
height: 8px;
cursor: pointer;
margin: 7px 0;
border-radius: 10px;
}
.progress-bar-container.player-mini {
width: 100%;
height: 6px;
margin: 7px 0;
}
.buffer-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: rgba(255, 255, 255, 0.4);
z-index: 1;
}
.progress-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: var(--foreground-secondary);
z-index: 2;
}
.player-controls-mini {
background-image: linear-gradient(var(--background-2), var(--background-secondary));
width: 100%;
}
.player-mini-control-top {
display: flex;
justify-content: space-between;
padding-left: 5px;
padding-right: 5px;
}
.player-mini-control-center {
display: flex;
gap: 10px;
padding-left: 5px;
padding-right: 5px;
}
.player-mini-control-bottom {
display: flex;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
gap: 5px;
font-size: .8rem;
}
.player-mini-volume{
display: flex;
gap: 5px;
}
/********** Range Input Styles **********/
/*Range Reset*/
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
/* Removes default focus */
input[type="range"]:focus {
outline: none;
}
/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
background-color: #403f4f;
border-radius: 0.5rem;
height: 0.3rem;
}
/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
margin-top: -5px; /* Centers thumb on the track */
/*custom styles*/
background-color: var(--foreground-secondary);
height: 1rem;
width: 0.8rem;
border-radius: 10px;
}
/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
background-color: var(--foreground-5);
border-radius: 0.5rem;
height: 0.5rem;
}
/* slider thumb */
input[type="range"]::-moz-range-thumb {
border: none; /*Removes extra border that FF applies*/
/*custom styles*/
background-color: var(--foreground-secondary);
height: 1.2rem;
width: 0.8rem;
border-radius: 10px;
}
::cue {
color: rgb(199, 199, 199);
background-color: rgba(0, 0, 0, 0.7);
font-size: 1.3em;
line-height: 1.2; /* Adjust line height for spacing */
}
button:disabled{
color: var(--foreground-5);
}