mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
chore: update version to 1.0.2 and improve chapter plugin functionality
- Bump version from 1.0.1 to 1.0.2 in package.json. - Refactor index.js to remove unused variables and simplify event handling. - Enhance title display logic in the chapter plugin for better user experience. - Update styles in style.less for smoother transitions and improved visibility of chapter titles.
This commit is contained in:
1 parent
a93967d518
commit
51d49f857a
5 files changed
+135
-103
No files matched your search
@@ -3,9 +3,9 @@
|
||||
height: 100% !important;
|
||||
background-color: transparent !important;
|
||||
|
||||
& > .art-progress-hover,
|
||||
& > .art-progress-loaded,
|
||||
& > .art-progress-played {
|
||||
&>.art-progress-hover,
|
||||
&>.art-progress-loaded,
|
||||
&>.art-progress-played {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,9 @@
|
||||
}
|
||||
|
||||
.art-chapter-title {
|
||||
display: none;
|
||||
transform-origin: bottom center;
|
||||
transform: scale(0.5);
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
z-index: 70;
|
||||
top: -50px;
|
||||
@@ -58,5 +60,13 @@
|
||||
border-radius: var(--art-border-radius);
|
||||
white-space: nowrap;
|
||||
background-color: var(--art-tip-background);
|
||||
transition: transform var(--art-transition-duration) ease, opacity var(--art-transition-duration) ease;
|
||||
}
|
||||
}
|
||||
|
||||
&.art-progress-hover {
|
||||
.art-chapter-title {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user