mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
134 lines
4.0 KiB
Plaintext
134 lines
4.0 KiB
Plaintext
.art-bottom {
|
|
.art-progress {
|
|
position: relative;
|
|
z-index: 0;
|
|
pointer-events: auto;
|
|
|
|
.art-control-progress {
|
|
position: relative;
|
|
.art-center();
|
|
cursor: pointer;
|
|
height: var(--art-progress-height);
|
|
|
|
.art-control-progress-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 50%;
|
|
width: 100%;
|
|
transition: height var(--art-duration) ease;
|
|
background-color: var(--art-progress-color);
|
|
|
|
.art-progress-hover {
|
|
display: none;
|
|
.art-full(0);
|
|
width: 0%;
|
|
background-color: var(--art-hover-color);
|
|
}
|
|
|
|
.art-progress-loaded {
|
|
.art-full(10);
|
|
width: 0%;
|
|
background-color: var(--art-loaded-color);
|
|
}
|
|
|
|
.art-progress-played {
|
|
.art-full(20);
|
|
width: 0%;
|
|
}
|
|
|
|
.art-progress-highlight {
|
|
.art-full(30);
|
|
pointer-events: none;
|
|
|
|
span {
|
|
.art-full();
|
|
right: auto;
|
|
pointer-events: auto;
|
|
width: var(--art-highlight-width);
|
|
transform: translateX(calc(var(--art-highlight-width) / -2));
|
|
background-color: var(--art-highlight-color);
|
|
}
|
|
}
|
|
|
|
.art-progress-indicator {
|
|
.art-center();
|
|
position: absolute;
|
|
z-index: 40;
|
|
left: calc(var(--art-indicator-size) / -2);
|
|
width: var(--art-indicator-size);
|
|
height: var(--art-indicator-size);
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
transition: transform var(--art-duration) ease;
|
|
|
|
.art-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&:hover {
|
|
transform: scale(1.2) !important;
|
|
}
|
|
|
|
&:active {
|
|
transform: scale(1) !important;
|
|
}
|
|
}
|
|
|
|
.art-progress-tip {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 50;
|
|
top: -25px;
|
|
left: 0;
|
|
padding: 3px 5px;
|
|
line-height: 1;
|
|
font-size: 12px;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
background-color: var(--art-background);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.art-control-progress-inner {
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.art-control-thumbnails {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 0;
|
|
border-radius: 3px;
|
|
pointer-events: none;
|
|
background-color: var(--art-background);
|
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.2), 0 1px 2px -1px rgb(0 0 0 / 0.2);
|
|
}
|
|
|
|
.art-control-loop {
|
|
.art-full();
|
|
display: none;
|
|
pointer-events: none;
|
|
|
|
.art-loop-point {
|
|
.art-full();
|
|
left: 0%;
|
|
width: var(--art-loop-width);
|
|
background-color: var(--art-loop-color);
|
|
transform: translateX(calc(var(--art-loop-width) / -2)) scaleY(1.5);
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
}
|