12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*播放按钮设置成宽高一致,圆形,居中*/
- .vjs-custom-skin>.video-js .vjs-big-play-button {
- background-color: rgba(0, 0, 0, 0.45);
- font-size: 3.5em;
- border-radius: 50%;
- height: 2em !important;
- line-height: 2em !important;
- margin-top: -1em !important;
- margin-left: -1em !important;
- width: 2em !important;
- outline: none;
- }
- .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
- position: absolute;
- left: 0;
- width: 100%;
- height: 100%;
- }
- /*control-bar布局时flex,通过order调整剩余时间的位置到进度条右边*/
- .vjs-custom-skin>.video-js .vjs-control-bar .vjs-remaining-time {
- order: 3 !important;
- }
- /*进度条背景轨道*/
- .video-js .vjs-slider {
- border-radius: 1em;
- }
- /*进度条进度*/
- .vjs-custom-skin>.video-js .vjs-play-progress,
- .vjs-custom-skin>.video-js .vjs-volume-level {
- border-radius: 1em;
- }
- /*鼠标进入播放器后,播放按钮颜色会变*/
- .video-js:hover .vjs-big-play-button,
- .vjs-custom-skin>.video-js .vjs-big-play-button:active,
- .vjs-custom-skin>.video-js .vjs-big-play-button:focus {
- background-color: rgba(0, 0, 0, 0.4) !important;
- }
- /*control bar*/
- .video-js .vjs-control-bar {
- background-color: rgba(0, 0, 0, 0.2) !important;
- }
- /*点击按钮时不显示蓝色边框*/
- .video-js .vjs-control-bar button {
- outline: none;
- }
|