UNPKG

react-moskaj-audio-player

Version:

react h5 audio with customized icons_A React audio player with UI. Mobile compatible.

218 lines (198 loc) 3.53 kB
.rhap_container { margin: auto; width: 100%; flex-direction: column; z-index: 100; } .rhap_progress-section { display: flex; flex: 0 0 auto; align-items: center; } .rhap_progress-container { display: flex; align-items: center; height: 18px; flex: 1 0 auto; align-self: center; margin: 0 3%; cursor: pointer; -webkit-user-select: none; } .rhap_time { color: #000; font-size: 16px; user-select: none; -webkit-user-select: none; } .rhap_progress-bar { box-sizing: border-box; position: relative; width: 100%; height: 5px; background: #d4d3d31c; border-radius: 2px; } .pb-primary-b { background: #753fdc !important; } .pb-primary { color: #753fdc !important; } .pb-danger-b { background: #f11717 !important; } .pb-danger { color: #f11717 !important; } .pb-success-b { background: #cddc39 !important; } .pb-success { color: #cddc39 !important; } .pb-warning-b { background: #cca600 !important; } .pb-warning { color: #cca600 !important; } .pb-info-b { background: #196eed !important; } .pb-info { color: #196eed !important; } .pb-brand-b { background: #ad20d4 !important; } .pb-brand { color: #ad20d4 !important; } .pb-dark-b { background: #adb5bd !important; } .pb-dark { color: #adb5bd !important; } .rhap_progress-indicator { box-sizing: border-box; position: absolute; width: 20px; height: 20px; margin-left: -10px; top: -8px; background: #d4d3d31c; opacity: 0.9; border-radius: 50px; /* box-shadow: rgba(134, 134, 134, 0.5) 0 0 5px; */ } .rhap_controls-section { display: flex; flex: 1 0; justify-content: space-between; margin-top: 8px; } .rhap_additional-controls { display: flex; flex: 1 0; align-items: center; margin-top: -16px; padding-left: 20px; } .rhap_repeat-button { font-size: 26px; width: 26px; height: 26px; color: #d4d3d31c; margin-right: 16px; } .rhap_main-controls { flex: 0 1; display: flex; justify-content: center; align-items: center; } .rhap_main-controls-button { margin: 0 3px; color: #d4d3d31c; font-size: 2rem; width: 2rem; height: 2rem; /* margin-top: -1.5rem; */ line-height: 0; } .rhap_play-pause-button { font-size: 3.5rem; width: 3.5rem; height: 3.5rem; margin-top: -1rem; } .rhap_volume-controls { display: flex; flex: 1 0; justify-content: flex-end; } .rhap_volume-button { font-size: 1.5rem; width: 1.5rem; height: 1.5rem; color: #d4d3d31c; margin-right: 6px; margin-top: -1rem; } .rhap_volume-container { display: flex; align-items: center; flex: 0 1 100px; -webkit-user-select: none; padding-left: 20px; } .rhap_volume-bar-area { display: flex; align-items: center; width: 100%; height: 14px; cursor: pointer; } .rhap_volume-bar { box-sizing: border-box; position: relative; width: 100%; height: 4px; background: #d4d3d31c; border-radius: 2px; } .rhap_volume-indicator { box-sizing: border-box; position: absolute; width: 12px; height: 12px; margin-left: -6px; left: 0; top: -4px; background: #d4d3d31c; opacity: 0.9; border-radius: 50px; /* box-shadow: rgba(173, 32, 212, 0.5) 0 0 3px;*/ cursor: pointer; } .rhap_volume-indicator :hover { opacity: 0.9; transition-duration: 0.2s; } /* Utils */ .rhap_button-clear { background-color: transparent; border: none; outline: 0; padding: 0; cursor: pointer; } .rhap_button-clear :hover { opacity: 0.9; transition-duration: 0.2s; } .rhap_button-clear :active { opacity: 0.95; }