UNPKG

xgplayer

Version:
132 lines 2.97 kB
.xgplayer.not-allow-autoplay .xgplayer-controls, .xgplayer.xgplayer-nostart .xgplayer-controls { pointer-events: none; visibility: hidden; cursor: default; opacity: 0; } .xgplayer.xgplayer-inactive .controls-autohide { pointer-events: none; visibility: hidden; cursor: default; opacity: 0; } .xgplayer.not-allow-autoplay .xgplayer-controls-initshow, .xgplayer.xgplayer-nostart .xgplayer-controls-initshow { pointer-events: auto; visibility: visible; opacity: 1; } .xgplayer .xgplayer-controls { display: block; position: absolute; visibility: visible; height: 48px; left: 0; right: 0; bottom: 0; opacity: 1; z-index: 10; background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.37), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)); transition: opacity 0.5s ease, visibility 0.5s ease; } .xgplayer .xgplayer-controls.show { display: block; opacity: 1; visibility: visible; pointer-events: auto; } .xgplayer .xg-inner-controls { position: absolute; height: 40px; bottom: 0; justify-content: space-between; display: flex; } .xgplayer .xg-left-grid, .xgplayer .xg-right-grid { position: relative; display: flex; flex-wrap: wrap; flex-shrink: 1; height: 100%; z-index: 1; } .xgplayer .xg-right-grid { flex-direction: row-reverse; } .xgplayer .xg-right-grid > :first-child { margin-right: 0; } .xgplayer .xg-right-grid xg-icon { margin-left: 0; } .xgplayer .xg-left-grid > :first-child { margin-left: 0; } .xgplayer .xg-left-grid xg-icon { margin-right: 0; } .xgplayer .xg-center-grid { display: block; position: absolute; left: 0; right: 0; outline: none; top: -20px; padding: 5px 0; text-align: center; } .xgplayer .flex-controls .xg-inner-controls { justify-content: space-around; display: flex; bottom: 8px; } .xgplayer .flex-controls .xg-center-grid { display: flex; flex: 1; position: relative; top: 0; height: 100%; justify-content: space-between; align-items: center; left: 0; right: 0; padding: 0 16px; } .xgplayer.xgplayer-mobile .xg-center-grid { z-index: 2; } .xgplayer.xgplayer-mobile .flex-controls .xg-center-grid { padding: 0 8px; } .xgplayer .bottom-controls .xg-center-grid { top: 20px; padding: 0; } .xgplayer .bottom-controls .xg-left-grid, .xgplayer .bottom-controls .xg-right-grid { bottom: 10px; } .xgplayer .mini-controls { background-image: none; } .xgplayer .mini-controls .xg-inner-controls { bottom: 0; left: 0; right: 0; } .xgplayer .mini-controls .xg-center-grid { bottom: -28px; top: auto; padding: 0; } .xgplayer .mini-controls .xg-left-grid, .xgplayer .mini-controls .xg-right-grid { display: none; } .xgplayer .controls-follow { bottom: 70px; transition: bottom 0.3s ease; } .xgplayer.flex-controls .controls-follow { bottom: 45px; } .xgplayer.xgplayer-inactive .controls-follow, .xgplayer.no-controls .controls-follow, .xgplayer.mini-controls .controls-follow { bottom: 10px; }