bethaus-app/static/audioplayer.css
2026-01-17 19:41:50 +00:00

143 lines
2.8 KiB
CSS

.audio-player-container {
background: linear-gradient(135deg, #f9fbff, #eef4ff);
border-radius: 14px;
box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
border: 1px solid #d7e3f4;
padding: 12px 16px;
width: min(1100px, 100%);
display: none;
color: #1f2937;
}
/* Now Playing Info */
.now-playing-info {
margin-top: 5px;
font-size: 15px;
color: #1f2937;
text-align: center;
}
.audio-player {
--control-size: 3.4em;
--space: 0.5em;
}
.controls {
display: flex;
align-items: center;
width: 100%;
gap: var(--space); /* ensures spacing between controls */
color: #1f2937;
}
/* Make the slider container fill the available space and stack its children vertically */
.slider {
flex: 1;
display: flex;
flex-direction: column;
}
/* The range input takes the full width of its container */
.timeline {
-webkit-appearance: none;
width: 100%;
height: 0.5em;
background-color: #e6edf7;
border-radius: 5px;
background-size: 0% 100%;
background-image: linear-gradient(90deg, #0b1220, #0f172a);
background-repeat: no-repeat;
appearance: none;
outline: none;
}
/* Slider Thumb Styling */
/* WebKit browsers (Chrome, Safari) */
.timeline::-webkit-slider-thumb {
-webkit-appearance: none;
width: 1em;
height: 1em;
border-radius: 50%;
background-color: #0f172a;
cursor: pointer;
border: 2px solid #0b1220;
outline: none;
}
/* Firefox */
.timeline::-moz-range-thumb {
width: 1em;
height: 1em;
border-radius: 50%;
background-color: #0f172a;
cursor: pointer;
border: 2px solid #0b1220;
outline: none;
}
/* Internet Explorer and Edge */
.timeline::-ms-thumb {
width: 1em;
height: 1em;
border-radius: 50%;
background-color: #0f172a;
cursor: pointer;
border: 2px solid #0b1220;
outline: none;
}
/* Remove default track styling */
.timeline::-webkit-slider-runnable-track,
.timeline::-moz-range-track,
.timeline::-ms-track {
-webkit-appearance: none;
box-shadow: none;
border: none;
background: transparent;
}
/* Style the time info (positioned right below the slider) */
.now-playing-info {
text-align: center;
font-size: 1em;
margin-top: 0.25em;
}
.player-button,
.sound-button {
background-color: #0f172a;
border: 1px solid #0f172a;
cursor: pointer;
padding: 6px;
border-radius: 12px;
transition: background-color 0.2s ease, transform 0.2s ease;
}
.player-button {
width: var(--control-size);
height: var(--control-size);
}
.sound-button {
width: var(--control-size);
height: var(--control-size);
}
.player-button:hover,
.sound-button:hover {
background-color: #0b1220;
transform: translateY(-1px);
}
.player-button svg path,
.sound-button svg path {
fill: #f9fbff;
}
.timeline::-webkit-slider-thumb,
.timeline::-moz-range-thumb,
.timeline::-ms-thumb {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}