mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
321 lines
9.7 KiB
Plaintext
321 lines
9.7 KiB
Plaintext
.art-video-player {
|
|
.art-bottom {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
position: absolute;
|
|
z-index: 60;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 100px;
|
|
padding: 50px 10px 0;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.2s ease-in-out;
|
|
pointer-events: none;
|
|
background-image: linear-gradient(to top, #000, rgb(0 0 0 / 40%), transparent);
|
|
background-repeat: repeat-x;
|
|
background-position: center bottom;
|
|
|
|
.art-progress {
|
|
flex: 1;
|
|
position: relative;
|
|
z-index: 0;
|
|
pointer-events: auto;
|
|
|
|
.art-control-progress {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
height: 4px;
|
|
cursor: pointer;
|
|
|
|
.art-control-progress-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 50%;
|
|
width: 100%;
|
|
background: rgba(255, 255, 255, 0.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, 0.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: 100%;
|
|
pointer-events: none;
|
|
|
|
span {
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 7px;
|
|
height: 100%;
|
|
background: #fff;
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
.art-progress-indicator {
|
|
visibility: hidden;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
z-index: 40;
|
|
border-radius: 50%;
|
|
transform: scale(0.1, 0.1);
|
|
transition: transform 0.1s ease-in-out;
|
|
|
|
.art-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
.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, 0.7);
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
|
|
.art-control-thumbnails {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 0;
|
|
pointer-events: none;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.art-control-loop {
|
|
display: none;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
|
|
.art-loop-point {
|
|
position: absolute;
|
|
left: 0;
|
|
top: -2px;
|
|
width: 2px;
|
|
height: 8px;
|
|
background: rgba(255, 255, 255, 0.75);
|
|
}
|
|
}
|
|
}
|
|
|
|
.art-controls {
|
|
position: relative;
|
|
z-index: 1;
|
|
pointer-events: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 45px;
|
|
|
|
.art-controls-left,
|
|
.art-controls-right {
|
|
display: flex;
|
|
}
|
|
|
|
.art-controls-right {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.art-control {
|
|
display: flex;
|
|
align-items: center;
|
|
opacity: 0.9;
|
|
font-size: 12px;
|
|
min-height: 36px;
|
|
min-width: 36px;
|
|
line-height: 1;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
.art-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
float: left;
|
|
height: 36px;
|
|
width: 36px;
|
|
}
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.art-control-onlyText {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.art-control-volume {
|
|
.art-volume-panel {
|
|
position: relative;
|
|
float: left;
|
|
width: 0;
|
|
height: 100%;
|
|
transition: margin 0.2s cubic-bezier(0.4, 0, 1, 1), width 0.2s cubic-bezier(0.4, 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, 0.2);
|
|
}
|
|
|
|
&::before,
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
display: block;
|
|
top: 50%;
|
|
height: 3px;
|
|
margin-top: -2px;
|
|
width: 60px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover .art-volume-panel {
|
|
width: 60px;
|
|
}
|
|
}
|
|
|
|
.art-control-quality {
|
|
position: relative;
|
|
z-index: 30;
|
|
.art-qualitys {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 35px;
|
|
width: 100px;
|
|
padding: 5px 0;
|
|
text-align: center;
|
|
color: #fff;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
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, 0.1);
|
|
}
|
|
}
|
|
}
|
|
&:hover .art-qualitys {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.art-progress .art-control-progress .art-control-progress-inner {
|
|
height: 100%;
|
|
.art-progress-indicator {
|
|
transform: scale(1, 1);
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.art-control-show,
|
|
&.art-hover {
|
|
.art-bottom {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
&.art-error,
|
|
&.art-destroy {
|
|
.art-progress-indicator,
|
|
.art-progress-tip {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
&.art-mobile {
|
|
.art-bottom {
|
|
padding: 50px 7px 0;
|
|
.art-controls {
|
|
height: 40px;
|
|
}
|
|
.art-progress-indicator {
|
|
transform: scale(1, 1) !important;
|
|
visibility: visible !important;
|
|
}
|
|
}
|
|
}
|
|
}
|