migrate to video.js
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -102,108 +102,22 @@ padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
#md-preview,{
|
||||
#md-preview {
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
|
||||
video {
|
||||
video, audio {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.wrap {
|
||||
width: 40%;
|
||||
height: 40%;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-enclosure {
|
||||
padding: 0px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-panel {
|
||||
opacity: 1 !important;
|
||||
display: -webkit-flex !important;
|
||||
margin-top: 50px;
|
||||
height: 50px;
|
||||
background-color: @dark-blue;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-timeline {
|
||||
height: 12px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-volume-slider, video::-webkit-media-controls-timeline {
|
||||
height: 12px;
|
||||
border-radius: 5px;
|
||||
min-width: 15px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-volume-slider::-webkit-media-slider-container, video::-webkit-media-controls-timeline::-webkit-media-slider-container {
|
||||
border: 0px;
|
||||
border-radius: 5px;
|
||||
background-color: @blue;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
::-webkit-media-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
background: red;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-play-button {
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-play-button:hover {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-fullscreen-button {
|
||||
-webkit-appearance: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAABACAYAAADF2C3zAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2N0Q1MjA3MDc5NjYxMUUyQjQzRjk5Mjc1MTU5Qjk0NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2N0Q1MjA3MTc5NjYxMUUyQjQzRjk5Mjc1MTU5Qjk0NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQyQkE2QUZGNzkzQjExRTJCNDNGOTkyNzUxNTlCOTQ1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQyQkE2QjAwNzkzQjExRTJCNDNGOTkyNzUxNTlCOTQ1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+1z7uaAAAAVhJREFUeNrsljFuAjEQRb3ACZByii2pECmgySFIGoiUGsEKiaQAimwTToCggSYSNUoJHSfgFJwhMt9oHBlj8Ga2SAqP9KQV7PPY4y1+9PDYEZ4agaHrj4Lwl5LHXFkvsOXKatt1jjykzrq2WeW+Jb6Bhp5BySOvQQLuaKEPYwYnOQLSkpTwBfbUqQam9hDVtieOyaoOGxDTAtNrV9UFqTEc/UGUQeXWmfSZB6BqXMc3aIFlFllY4hP49N2h66p2YJXly3HJ92ABihxZVRPM6BqvViSlFNwqiBwV5CAHOchBDnKQ/5/si4/iOUn5YX0+ec0X1mkBXljH1nlhncTfh3WIF2EdR/gJ677OKqwfdOqHmJ4Nsd17PwU5E/yWgJieY/Biv6MoUVjvOe61j+cGuuwpsLvDOl5KjeFkDusRtiSNKZ6FdXTlhXWIfxTWcf58YR0L3AzrRwEGAJoOgCMfh6hiAAAAAElFTkSuQmCC);
|
||||
background-size: 16px 64px;
|
||||
background-position: center 8px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-mute-button {
|
||||
-webkit-appearance: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek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0OREgLsJnQAgQrwJiNiifGU3eFIi7gDgPxGEBYnYg1gBiDqizQX5ixOEyCyDeC8SNQNwJxJtABuwHYksGwoAR6q3tQFwKxGlAnMtEpGYQ+A+1NROI+aDedGdiIA2sAWJWaDhcBGIVUg1ABqz4ohEXAMXQbyA+DcRaQHwHZMBxIjWDArEcmrg+AXEYEO8ExYIjUjRGQuOXEUcgghLVOahBoAQ1GWTAT2iAgMBJID4BxPOhBqIDkJwnENcDcQkQP8AWBiuAOBiIf0H5f9HkT0NdMAFfIG4D4gggfgtNPMjgDRD3wgPm////DJSAUQNGDRg1YNSAUQNGDRg1YNSA4WhAUnHraI9ltMcy2mMZDD0WgAADADYlybDQKXdAAAAAAElFTkSuQmCC);
|
||||
background-size: 16px 64px;
|
||||
background-position: center 8px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-fullscreen-button:hover {
|
||||
-webkit-appearance: none;
|
||||
background-position: center -42px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-mute-button:hover {
|
||||
-webkit-appearance: none;
|
||||
background-position: center -43px;
|
||||
}
|
||||
|
||||
video::-webkit-media-controls-current-time-display, video::-webkit-media-controls-time-remaining-display {
|
||||
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
126
src/styles/includes/video-js.scss
Normal file
126
src/styles/includes/video-js.scss
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
Player Skin Designer for Video.js
|
||||
http://videojs.com
|
||||
|
||||
To customize the player skin edit
|
||||
the CSS below. Click "details"
|
||||
below to add comments or questions.
|
||||
This file uses some SCSS. Learn more
|
||||
at http://sass-lang.com/guide)
|
||||
|
||||
This designer can be linked to at:
|
||||
https://codepen.io/heff/pen/EarCt/left/?editors=010
|
||||
*/
|
||||
|
||||
// The following are SCSS variables to automate some of the values.
|
||||
// But don't feel limited by them. Change/replace whatever you want.
|
||||
|
||||
// The color of icons, text, and the big play button border.
|
||||
// Try changing to #0f0
|
||||
$primary-foreground-color: #fff; // #fff default
|
||||
|
||||
// The default color of control backgrounds is mostly black but with a little
|
||||
// bit of blue so it can still be seen on all-black video frames, which are common.
|
||||
// Try changing to #900
|
||||
$primary-background-color: @blue; // #2B333F default
|
||||
|
||||
// Try changing to true
|
||||
$center-big-play-button: true; // true default
|
||||
|
||||
.video-js {
|
||||
/* The base font size controls the size of everything, not just text.
|
||||
All dimensions use em-based sizes so that the scale along with the font size.
|
||||
Try increasing it to 15px and see what happens. */
|
||||
font-size: 10px;
|
||||
|
||||
/* The main font color changes the ICON COLORS as well as the text */
|
||||
color: $primary-foreground-color;
|
||||
}
|
||||
|
||||
/* The "Big Play Button" is the play button that shows before the video plays.
|
||||
To center it set the align values to center and middle. The typical location
|
||||
of the button is the center, but there is trend towards moving it to a corner
|
||||
where it gets out of the way of valuable content in the poster image.*/
|
||||
.vjs-default-skin .vjs-big-play-button {
|
||||
/* The font size is what makes the big play button...big.
|
||||
All width/height values use ems, which are a multiple of the font size.
|
||||
If the .video-js font-size is 10px, then 3em equals 30px.*/
|
||||
font-size: 3em;
|
||||
|
||||
/* We're using SCSS vars here because the values are used in multiple places.
|
||||
Now that font size is set, the following em values will be a multiple of the
|
||||
new font size. If the font-size is 3em (30px), then setting any of
|
||||
the following values to 3em would equal 30px. 3 * font-size. */
|
||||
$big-play-width: 3em;
|
||||
/* 1.5em = 45px default */
|
||||
$big-play-height: 1.5em;
|
||||
|
||||
line-height: $big-play-height;
|
||||
height: $big-play-height;
|
||||
width: $big-play-width;
|
||||
|
||||
/* 0.06666em = 2px default */
|
||||
border: 0.06666em solid $primary-foreground-color;
|
||||
/* 0.3em = 9px default */
|
||||
border-radius: 0.3em;
|
||||
|
||||
@if $center-big-play-button {
|
||||
/* Align center */
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -($big-play-width / 2);
|
||||
margin-top: -($big-play-height / 2);
|
||||
} @else {
|
||||
/* Align top left. 0.5em = 15px default */
|
||||
left: 0.5em;
|
||||
top: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* The default color of control backgrounds is mostly black but with a little
|
||||
bit of blue so it can still be seen on all-black video frames, which are common. */
|
||||
.video-js .vjs-control-bar,
|
||||
.video-js .vjs-big-play-button,
|
||||
.video-js .vjs-menu-button .vjs-menu-content {
|
||||
/* IE8 - has no alpha support */
|
||||
background-color: $primary-background-color;
|
||||
/* Opacity: 1.0 = 100%, 0.0 = 0% */
|
||||
background-color: rgba($primary-background-color, 0.7);
|
||||
}
|
||||
|
||||
// Make a slightly lighter version of the main background
|
||||
// for the slider background.
|
||||
$slider-bg-color: lighten($primary-background-color, 33%);
|
||||
|
||||
/* Slider - used for Volume bar and Progress bar */
|
||||
.video-js .vjs-slider {
|
||||
background-color: $slider-bg-color;
|
||||
background-color: rgba($slider-bg-color, 0.5);
|
||||
}
|
||||
|
||||
/* The slider bar color is used for the progress bar and the volume bar
|
||||
(the first two can be removed after a fix that's coming) */
|
||||
.video-js .vjs-volume-level,
|
||||
.video-js .vjs-play-progress,
|
||||
.video-js .vjs-slider-bar {
|
||||
background: $primary-foreground-color;
|
||||
}
|
||||
|
||||
/* The main progress bar also has a bar that shows how much has been loaded. */
|
||||
.video-js .vjs-load-progress {
|
||||
/* For IE8 we'll lighten the color */
|
||||
background: lighten($slider-bg-color, 25%);
|
||||
/* Otherwise we'll rely on stacked opacities */
|
||||
background: rgba($slider-bg-color, 0.5);
|
||||
}
|
||||
|
||||
/* The load progress bar also has internal divs that represent
|
||||
smaller disconnected loaded time ranges */
|
||||
.video-js .vjs-load-progress div {
|
||||
/* For IE8 we'll lighten the color */
|
||||
background: lighten($slider-bg-color, 50%);
|
||||
/* Otherwise we'll rely on stacked opacities */
|
||||
background: rgba($slider-bg-color, 0.75);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -7,8 +7,9 @@
|
||||
@import "includes/global";
|
||||
@import "includes/home";
|
||||
@import "includes/pages";
|
||||
@import "includes/ckin";
|
||||
@import "../bower_components/videojs/src/css/video-js.scss";
|
||||
@import "includes/reviews";
|
||||
@import "includes/video-js.scss";
|
||||
@import "includes/transfersh-icons";
|
||||
@import "includes/preview";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user