.audioplayer { .waveform { cursor: pointer; position: relative; } .hover { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; height: 100%; width: 0; mix-blend-mode: overlay; background: rgba(255, 255, 255, 0.5); opacity: 0; transition: opacity 0.2s ease; } .waveform:hover .hover { opacity: 1; } .time, .duration { position: absolute; z-index: 11; top: 50%; margin-top: -1px; transform: translateY(-50%); font-size: 11px; background: rgba(0, 0, 0, 0.75); padding: 2px; color: #ddd; } .time { left: 0; } .duration { right: 0; } .audio-controls { width: 100%; justify-content: center; display: flex; } .audio-controls .btn { padding-left: 0; padding-right: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: none; } @media(max-width: 720px) { .audio-controls .btn label { display: none; } } .audio-controls .btn.btn-play { flex: 50% 1 0; } .volume-controls { display: flex; } .volume-controls .volume-slider { flex: 100% 1 1; } .audio-controls .btn, .volume-controls .btn-toggle-mute { flex: 100px 1 1; padding: 10px 0 10px 0; background: #5ba8f4; border-radius: 5px; border-color: solid 1px #0f259d; color: white; font-family: Nunito, serif; text-align: center; text-decoration: none; } }