-// Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin
+@import '_variables';
+@import '_mixins';
+
$primary-foreground-color: #fff;
$primary-background-color: #000;
$font-size: 13px;
font-size: $font-size;
color: $primary-foreground-color;
+ .vjs-dock-text {
+ padding-right: 10px;
+ }
+
+ .vjs-dock-description {
+ font-size: 11px;
+
+ &:before, &:after {
+ display: inline-block;
+ content: '\1F308';
+ }
+
+ &:before {
+ margin-right: 4px;
+ }
+
+ &:after {
+ margin-left: 4px;
+ transform: scale(-1, 1);
+ }
+ }
+
.vjs-button > .vjs-icon-placeholder::before {
line-height: $control-bar-height;
}
.vjs-big-play-button {
outline: 0;
- font-size: 8em;
+ font-size: 6em;
- $big-play-width: 3em;
- $big-play-height: 1.5em;
+ $big-play-width: 1.5em;
+ $big-play-height: 1em;
border: 0;
border-radius: 0.3em;
left: 50%;
top: 50%;
+ width: $big-play-width;
+ height: $big-play-height;
+ line-height: $big-play-height;
margin-left: -($big-play-width / 2);
margin-top: -($big-play-height / 2);
- background-color: transparent !important;
+ transition: opacity 0.5s;
+
+ &::-moz-focus-inner {
+ border: 0;
+ padding: 0
+ }
+
+ .vjs-icon-placeholder::before {
+ transition: text-shadow 0.3s;
+ }
+
+ &:hover {
+ opacity: 0.9;
+
+ .vjs-icon-placeholder::before {
+ text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
+ }
+ }
+ }
+
+ &.vjs-has-started .vjs-big-play-button {
+ display: block;
+ visibility: hidden;
+ opacity: 0;
+ transition: visibility 0.3s, opacity 0.3s;
}
.vjs-control-bar,
}
.vjs-play-control {
+ @include disable-outline;
+
font-size: $font-size;
padding: 0 17px;
margin-right: 5px;
}
}
- .vjs-webtorrent {
+ .vjs-peertube {
width: 100%;
line-height: $control-bar-height;
text-align: right;
- padding-right: 60px;
- .vjs-webtorrent-displayed {
+ .vjs-peertube-displayed {
display: block;
}
- .vjs-webtorrent-hidden {
+ .vjs-peertube-hidden {
display: none;
}
}
}
+ .vjs-playback-rate {
+ font-size: 10px;
+ width: 37px !important;
+
+ .vjs-playback-rate-value {
+ font-size: 13px;
+ line-height: $control-bar-height;
+ }
+
+ .vjs-menu .vjs-menu-content {
+ width: 37px !important;
+ }
+ }
+
.vjs-mute-control {
+ @include disable-outline;
+
+ line-height: $control-bar-height;
+ padding: 0;
+ width: 30px;
+
.vjs-icon-placeholder {
display: inline-block;
width: 22px;
}
}
- .vjs-volume-menu-button,
- .vjs-volume-panel {
- width: 6em;
- position: absolute;
- right: 0;
- margin-right: 65px;
+ .vjs-volume-control {
+ width: 30px;
+ margin: 0;
}
.vjs-volume-bar {
}
.vjs-fullscreen-control {
+ @include disable-outline;
+
width: 37px;
.vjs-icon-placeholder {
}
.vjs-menu-button-popup {
- font-size: 13px;
font-weight: $font-semibold;
width: 50px;
line-height: $control-bar-height;
position: absolute;
top: 0;
- left: 4px;
+ left: 0;
width: 100%;
height: 100%;
text-align: center;
}
.vjs-resolution-button {
- outline: 0 !important;
+ @include disable-outline;
}
.vjs-menu {
top: 20px;
+ left: 0;
.vjs-menu-content {
width: 50px;
- left: 50%; /* Center the menu, in it's parent */
- margin-left: -21px;
+ bottom: 20px;
}
li {
}
}
- @media screen and (max-width: 550px) {
- .vjs-webtorrent {
+ @media screen and (max-width: 570px) {
+ .vjs-dock-text {
+ font-size: 14px;
+ }
+
+ .vjs-dock-description {
+ font-size: 9px;
+ }
+
+ .vjs-big-play-button {
+ font-size: 4.5em;
+ }
+
+ .vjs-playback-rate {
+ display: none;
+ }
+
+ .vjs-peertube {
padding: 0 !important;
- .vjs-webtorrent-displayed {
+ .vjs-peertube-displayed {
display: none !important;
}
}
}
@media screen and (max-width: 300px) {
+ .vjs-dock-text {
+ font-size: 13px;
+ }
+
+ .vjs-big-play-button {
+ font-size: 3em;
+ }
+
.vjs-volume-control {
display: none !important;
}
border: 0.7em solid rgba(255, 255, 255, 0.2);
border-left-color: #ffffff;
transform: translateZ(0);
- animation: spinner 1.4s infinite linear;
+ animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
overflow: hidden;
+ visibility: hidden;
&:before {
animation: none !important;
transform: rotate(360deg);
}
}
+
+ @keyframes vjs-spinner-show {
+ 0% {
+ display: none;
+ opacity: 0;
+ }
+
+ 1% {
+ display: block;
+ visibility: visible;
+ opacity: 0;
+ }
+
+ 100% {
+ display: block;
+ visibility: visible;
+ opacity: 1;
+ }
+ }
}
+// Error display disabled
+.vjs-error:not(.vjs-error-display-enabled) {
+ .vjs-error-display {
+ display: none;
+ }
+
+ .vjs-loading-spinner {
+ display: block;
+ }
+}
+
+// Error display enabled
+.vjs-error.vjs-error-display-enabled {
+ .vjs-error-display {
+ display: block;
+ }
+}