UNPKG

blaze-player-litee

Version:

A customizable HTML5 video player with modular controls and themed styling.

110 lines (96 loc) 2.93 kB
.blaze-player { position: relative; width: 100%; max-width: 800px; background: #000; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } video { width: 100%; display: block; } .controls { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.7); padding: 10px; color: white; font-size: 14px; } .controls-left, .controls-right { display: flex; align-items: center; gap: 10px; } .progress-container { flex-grow: 1; margin: 0 15px; } input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; cursor: pointer; outline: none; overflow: hidden; border-radius: 16px; } .playerlogo { width: 24px; height: 24px; display: block; } /* Progress bar track */ input[type="range"]::-webkit-slider-runnable-track { height: 5px; background: rgba(255,255,255,0.2); border-radius: 16px; } input[type="range"]::-moz-range-track { height: 5px; background: rgba(255,255,255,0.2); border-radius: 16px; } /* Progress bar thumb */ input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 5px; width: 5px; background-color: #fff; border-radius: 50%; border: none; box-shadow: -407px 0 0 400px #f50; } input[type="range"]::-moz-range-thumb { height: 5px; width: 5px; background-color: #fff; border-radius: 50%; border: none; box-shadow: -407px 0 0 400px #f50; } /* Volume slider */ .volume-container { display: flex; align-items: center; gap: 5px; width: 100px; } button { background: none; border: none; color: white; cursor: pointer; padding: 5px; font-size: 16px; } button:hover { color: #f50; } .time { font-family: monospace; }