修改包管理

This commit is contained in:
Harvey Zack committed 2018-11-07 17:12:42 +08:00
1 parent c5c673ae79
commit 0aa018db6d
99 files changed
+70 -70

No files matched your search

@@ -0,0 +1,29 @@
.artplayer-video-player {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
outline: 0;
font-family: Roboto,Arial,Helvetica,sans-serif;
color: #eee;
text-align: left;
direction: ltr;
font-size: 14px;
line-height: 1.3;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
-ms-high-contrast-adjust: none;
* {
box-sizing: border-box;
}
.art-icon {
display: inline-block;
line-height: 1.5;
svg {
fill: #fff;
}
}
}
@@ -0,0 +1,8 @@
.artplayer-video-player {
&[data-aspect-ratio] {
video {
box-sizing: content-box;
object-fit: fill;
}
}
}
+248
View File
@@ -0,0 +1,248 @@
.artplayer-video-player {
.artplayer-bottom {
position: absolute;
z-index: 50;
left: 0;
right: 0;
bottom: 0;
height: 100px;
padding: 60px 10px 0;
opacity: 0;
visibility: hidden;
transition: all .2s ease-in-out;
pointer-events: none;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom;
.artplayer-progress {
position: relative;
pointer-events: all;
.art-control-progress {
position: relative;
height: 5px;
padding: 1px 0;
cursor: pointer;
.art-control-progress-inner {
position: relative;
height: 100%;
background: rgba(255,255,255,.2);
.art-progress-loaded {
position: absolute;
z-index: 10;
left: 0;
top: 0;
right: 0;
bottom: 0;
height: 100%;
width: 0;
background: rgba(255,255,255,.4);
}
.art-progress-played {
position: absolute;
z-index: 20;
left: 0;
top: 0;
right: 0;
bottom: 0;
height: 100%;
width: 0;
}
.art-progress-highlight {
position: absolute;
z-index: 30;
left: 0;
top: 0;
right: 0;
bottom: 0;
height: 0;
span {
display: inline-block;
position: absolute;
left: 0;
top: 0;
width: 7px;
height: 3px;
background: #fff;
border-radius: 3px;
}
}
.art-progress-indicator {
display: none;
position: absolute;
z-index: 40;
top: -5px;
left: -6.5px;
width: 13px;
height: 13px;
border-radius: 50%;
&.show-indicator {
display: block;
}
}
.art-progress-tip {
display: none;
position: absolute;
z-index: 50;
top: -25px;
left: 0;
height: 20px;
padding: 0 5px;
line-height: 20px;
color: #fff;
font-size: 12px;
text-align: center;
background: rgba(0,0,0,.7);
border-radius: 3px;
font-weight: bold;
}
}
&:hover {
.art-progress-indicator, .art-progress-tip {
display: block;
}
}
}
.art-control-thumbnails {
display: none;
position: absolute;
bottom: 8px;
left: 0;
pointer-events: none;
background-color: rgba(0,0,0,.7);
}
}
.artplayer-controls {
position: relative;
pointer-events: all;
display: flex;
align-items: center;
justify-content: space-between;
height: 36px;
.art-control {
opacity: .9;
float: left;
font-size: 12px;
height: 36px;
line-height: 36px;
cursor: pointer;
.art-icon {
display: flex;
align-items: center;
justify-content: center;
float: left;
height: 36px;
width: 36px;
padding: 7px;
}
&:hover {
opacity: 1;
}
}
.art-control-volume {
.art-volume-panel {
position: relative;
float: left;
width: 0;
height: 100%;
transition: margin .2s cubic-bezier(0.4,0.0,1,1),width .2s cubic-bezier(0.4,0.0,1,1);
overflow: hidden;
.art-volume-slider-handle {
position: absolute;
top: 50%;
left: 0;
width: 12px;
height: 12px;
border-radius: 12px;
margin-top: -6px;
background: #fff;
&::before {
left: -54px;
background: #fff;
}
&::after {
left: 6px;
background: rgba(255,255,255,.2);
}
&::before, &::after {
content: '';
position: absolute;
display: block;
top: 50%;
height: 3px;
margin-top: -2px;
width: 60px
}
}
&.art-volume-panel-hover {
width: 60px;
}
}
}
.art-control-time {
padding: 0 10px;
}
.art-control-quality {
position: relative;
z-index: 30;
padding: 0 10px;
.art-qualitys {
display: none;
position: absolute;
left: -15px;
bottom: 35px;
width: 100px;
padding: 5px 0;
text-align: center;
color: #fff;
background: rgba(0,0,0,.7);
border-radius: 3px;
.art-quality-item {
height: 30px;
line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
&:hover {
background-color: rgba(255,255,255,.1);
}
}
}
&.hover .art-qualitys{
display: block;
}
}
}
}
&.artplayer-controls-show, &.artplayer-hover {
.artplayer-bottom {
opacity: 1;
visibility: visible;
}
}
&.artplayer-error, &.artplayer-destroy {
.art-progress-indicator, .art-progress-tip {
display: none !important;
}
}
}
@@ -0,0 +1,47 @@
.artplayer-video-player {
.artplayer-contextmenu {
display: none;
position: absolute;
z-index: 110;
left: 0;
top: 0;
min-width: 200px;
padding: 5px 0;
background:rgba(0, 0, 0, 0.8);
border-radius: 3px;
.art-menu {
cursor: pointer;
font-size: 13px;
display: block;
color: #fff;
padding: 7px 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
border-bottom: 1px solid rgba(255,255,255,.1);
a {
color: #fff;
text-decoration: none;
}
span {
display: inline-block;
padding: 0 7px;
&:hover, &.current {
color: #00c9ff;
}
}
&:hover {
background-color: rgba(255,255,255,.1);
}
&:last-child {
border-bottom: none;
}
}
}
}
@@ -0,0 +1,12 @@
.artplayer-video-player {
&.artplayer-web-fullscreen {
position: fixed;
z-index: 9999;
width: 100%;
height: 100%;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
}
@@ -0,0 +1,7 @@
.artplayer-video-player {
&.artplayer-hide-cursor {
* {
cursor: none !important;
}
}
}
+15
View File
@@ -0,0 +1,15 @@
import './artplayer.scss';
import './video.scss';
import './subtitle.scss';
import './layers.scss';
import './mask.scss';
import './loading.scss';
import './bottom.scss';
import './notice.scss';
import './contextmenu.scss';
import './setting.scss';
import './info.scss';
import './hideCursor.scss';
import './aspectRatio.scss';
import './fullscreenWeb.scss';
import './pip.scss';
+38
View File
@@ -0,0 +1,38 @@
.artplayer-video-player {
.artplayer-info {
display: none;
position: absolute;
left: 10px;
top: 10px;
z-index: 90;
width: 350px;
min-height: 150px;
padding: 10px;
color: #fff;
font-size: 12px;
font-family: Noto Sans CJK SC DemiLight,Roboto,Segoe UI,Tahoma,Arial,Helvetica,sans-serif;
-webkit-font-smoothing: antialiased;
background: rgba(0,0,0,.7);
.art-info-item {
display: flex;
margin-bottom: 5px;
.art-info-title {
width: 100px;
text-align: right;
}
.art-info-content {
flex: 1;
padding-left: 5px;
}
}
.artplayer-info-close {
position: absolute;
top: 5px;
right: 5px;
cursor: pointer;
}
}
}
+18
View File
@@ -0,0 +1,18 @@
.artplayer-video-player {
.artplayer-layers {
position: absolute;
z-index: 30;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
pointer-events: none;
.art-layer {
position: absolute;
pointer-events: all;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
.artplayer-video-player {
.artplayer-loading {
display: none;
position: absolute;
z-index: 60;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
pointer-events: none;
}
}
+21
View File
@@ -0,0 +1,21 @@
.artplayer-video-player {
.artplayer-mask {
display: none;
position: absolute;
z-index: 40;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
pointer-events: none;
.art-icon-playBig {
position: absolute;
right: 30px;
bottom: 65px;
opacity: .6;
}
}
}
+20
View File
@@ -0,0 +1,20 @@
.artplayer-video-player {
.artplayer-notice {
display: none;
font-size: 14px;
position: absolute;
z-index: 70;
left: 0;
top: 0;
padding: 10px;
width: 100%;
pointer-events: none;
.artplayer-notice-inner {
display: inline-block;
padding: 5px 10px;
color: #fff;
background: rgba(0, 0, 0, 0.6);
border-radius: 3px;
}
}
}
+76
View File
@@ -0,0 +1,76 @@
.artplayer-video-player {
.artplayer-pip-header {
display: none;
position: absolute;
z-index: 100;
left: 0;
top: 0;
right: 0;
height: 35px;
line-height: 35px;
color: #fff;
background: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: space-between;
opacity: 0;
visibility: hidden;
transition: all .2s ease-in-out;
.artplayer-pip-title {
flex: 1;
padding: 0 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: move;
}
.artplayer-pip-close {
width: 35px;
text-align: center;
font-size: 22px;
cursor: pointer;
}
}
&.is-dragging {
opacity: 0.7;
}
&.artplayer-pip {
position: fixed;
right: 20px;
bottom: 20px;
width: 400px;
height: 225px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 3px 6px 0 rgba(0,0,0,0.20);
.artplayer-pip-header {
display: flex;
}
&.artplayer-hover {
.artplayer-pip-header {
opacity: 1;
visibility: visible;
}
}
.artplayer-mask {
align-items: center;
justify-content: center;
.art-icon-playBig {
position: static;
}
}
.artplayer-contextmenu,
.artplayer-bottom,
.artplayer-danmu,
.artplayer-info,
.artplayer-layers,
.artplayer-notice,
.artplayer-setting,
.artplayer-subtitle {
display: none !important;
}
}
}
+54
View File
@@ -0,0 +1,54 @@
.artplayer-video-player {
.artplayer-setting {
display: none;
position: absolute;
z-index: 80;
left: 0;
top: 0;
height: 100%;
width: 100%;
align-items: center;
justify-content: center;
pointer-events: none;
.artplayer-setting-inner {
position: relative;
width: 350px;
height: 250px;
font-size: 12px;
background: rgba(0, 0, 0, 0.8);
border-radius: 3px;
pointer-events: all;
overflow: hidden;
.artplayer-setting-body {
overflow-x: hidden;
overflow-y: auto;
width: 365px;
height: 100%;
.art-setting {
border-bottom: 1px solid rgba(255,255,255,.1);
padding: 12px 35px 12px 20px;
.art-setting-header {
color: #fff;
margin-bottom: 10px;
}
.art-setting-body {
color: rgba(255, 255, 255, 0.8);
}
}
}
.artplayer-setting-close {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
color: rgba(255, 255, 255, .8);
background: rgba(0, 0, 0, .5);
font-size: 20px;
cursor: pointer;
}
}
}
}
@@ -0,0 +1,18 @@
.artplayer-video-player {
.artplayer-subtitle {
position: absolute;
z-index: 20;
bottom: 40px;
width: 100%;
padding: 0 20px;
text-align: center;
color: #fff;
text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.5);
font-size: 20px;
pointer-events: none;
p {
margin: 5px 0;
}
}
}
+15
View File
@@ -0,0 +1,15 @@
.artplayer-video-player {
.artplayer-video {
position: absolute;
z-index: 10;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background-color: #000;
outline: 0;
cursor: pointer;
}
}