146 lines
2.9 KiB
SCSS
146 lines
2.9 KiB
SCSS
|
|
.audio-player {
|
|
height: 32px;
|
|
background: #ffffff;
|
|
font-family: arial;
|
|
color: #1b1a1a;
|
|
font-size: 0.75em;
|
|
overflow: hidden;
|
|
// display: grid;
|
|
// grid-template-rows: 6px auto;
|
|
}
|
|
|
|
.audio-player .controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: stretch;
|
|
padding: 0;
|
|
gap: 2px;
|
|
}
|
|
.audio-player .controls > * {
|
|
display: flex;
|
|
// justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.audio-player .controls .timeline {
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
background: rgb(64, 124, 222);
|
|
width: 100%;
|
|
height: 4px;
|
|
cursor: pointer;
|
|
//box-shadow: 0 2px 10px 0 #0008;
|
|
}
|
|
.audio-player .controls .timeline .progress {
|
|
background: coral;
|
|
width: 0%;
|
|
height: 100%;
|
|
transition: 0.25s;
|
|
}
|
|
|
|
.audio-player .controls .play-pause-button{
|
|
background: "none";
|
|
border: "none";
|
|
cursor: "pointer";
|
|
outline: "none";
|
|
left: 0;
|
|
|
|
}
|
|
.audio-player .controls .time {
|
|
display: flex;
|
|
}
|
|
.audio-player .controls .time > * {
|
|
padding: 2px;
|
|
}
|
|
.audio-player .controls .volume-container {
|
|
margin-right: 5px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 30px;
|
|
}
|
|
.audio-player .controls .volume-container .volume-button {
|
|
height: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.audio-player .controls .volume-container .volume-button .volume {
|
|
transform: scale(1.4);
|
|
}
|
|
.audio-player .controls .volume-container .volume-slider {
|
|
position: absolute;
|
|
left: -4px;
|
|
top: 12px;
|
|
z-index: -1;
|
|
width: 0;
|
|
height: 10px;
|
|
background: white;
|
|
box-shadow: 0 0 10px #000a;
|
|
transition: 0.25s;
|
|
}
|
|
.audio-player .controls .volume-container .volume-slider .volume-percentage {
|
|
background: coral;
|
|
height: 100%;
|
|
width: 75%;
|
|
}
|
|
.audio-player .controls .volume-container:hover .volume-slider {
|
|
left: -123px;
|
|
width: 120px;
|
|
}
|
|
|
|
.audio-player .controls .download-container {
|
|
margin-right: 1px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 2;
|
|
.download-button {
|
|
background: "none";
|
|
border: "none";
|
|
cursor: "pointer";
|
|
outline: "none";
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
// .audio-player .controls .toggle-play.play {
|
|
// cursor: pointer;
|
|
// position: relative;
|
|
// left: 0;
|
|
// height: 0;
|
|
// width: 0;
|
|
// border: 7px solid #0000;
|
|
// border-left: 13px solid white;
|
|
// }
|
|
// .audio-player .controls .toggle-play.play:hover {
|
|
// transform: scale(1.1);
|
|
// }
|
|
// .audio-player .controls .toggle-play.pause {
|
|
// height: 15px;
|
|
// width: 20px;
|
|
// cursor: pointer;
|
|
// position: relative;
|
|
// }
|
|
// .audio-player .controls .toggle-play.pause:before {
|
|
// position: absolute;
|
|
// top: 0;
|
|
// left: 0px;
|
|
// background: white;
|
|
// content: "";
|
|
// height: 15px;
|
|
// width: 3px;
|
|
// }
|
|
// .audio-player .controls .toggle-play.pause:after {
|
|
// position: absolute;
|
|
// top: 0;
|
|
// right: 8px;
|
|
// background: white;
|
|
// content: "";
|
|
// height: 15px;
|
|
// width: 3px;
|
|
// }
|
|
// .audio-player .controls .toggle-play.pause:hover {
|
|
// transform: scale(1.1);
|
|
// } |