Files
mediacms/frontend-tools/video-js/src/components/controls/CustomChaptersOverlay.css
T
2025-10-03 11:24:33 +03:00

316 lines
5.9 KiB
CSS

/* ===== CUSTOM CHAPTERS OVERLAY STYLES ===== */
.video-chapter {
position: absolute;
top: auto;
bottom: 60px;
width: min(360px, calc(100% - 20px));
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
height: calc(100% - 80px);
background: rgba(18, 18, 18, 0.96);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
overflow: hidden;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
right: 10px;
}
.chapter-head {
padding: 12px 8px 10px 16px;
position: sticky;
top: 0;
left: 0;
background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(18, 18, 18, 0.95));
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
z-index: 2;
}
.playlist-title {
display: flex;
align-items: center;
gap: 10px;
}
.chapter-title {
width: auto;
flex: 1;
min-width: 0;
}
.chapter-title h3 {
margin: 0;
padding: 0;
}
.chapter-title h3 a {
color: #fff;
font-size: 18px;
line-height: 26px;
font-weight: 700;
text-decoration: none;
white-space: nowrap;
text-overflow: ellipsis;
height: 28px;
overflow: hidden;
display: block;
}
.chapter-title p {
margin: 4px 0 0;
padding: 0;
color: #fff;
font-size: 12px;
font-weight: 400;
line-height: 15px;
}
.chapter-title p a {
color: #fff;
font-size: 12px;
font-weight: 400;
line-height: 15px;
text-decoration: none;
}
.chapter-close {
width: 40px;
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
}
.chapter-close button {
background: transparent;
color: #fff;
border: 0;
width: 40px;
height: 40px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
}
.chapter-close button:hover {
background: rgba(255, 255, 255, 0.1);
}
.settings-header {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.settings-close-btn {
background: transparent;
color: #fff;
border: 0;
width: 32px;
height: 32px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
cursor: pointer;
}
.settings-close-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.playlist-action-menu {
display: none;
justify-content: space-between;
gap: 10px;
}
.playlist-action-menu button {
background: transparent;
border: 0;
width: 40px;
height: 40px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
align-items: center;
border-radius: 100px;
}
.playlist-action-menu button:hover {
background: rgba(0, 0, 0, 0.1);
}
.start-action {
display: flex;
}
.chapter-body {
height: calc(100% - 80px);
overflow: auto;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
overscroll-behavior: contain;
scroll-behavior: smooth;
}
.chapter-body ul {
margin: 0;
padding: 0;
}
.playlist-items a {
padding: 12px;
display: flex;
align-items: center;
text-decoration: none;
gap: 12px;
width: 100%;
box-sizing: border-box;
color: #fff;
}
.playlist-items a:hover {
background: rgba(255, 255, 255, 0.06);
}
.playlist-items.selected a {
background: rgba(255, 255, 255, 0.14);
}
.playlist-drag-handle {
width: 24px;
display: flex;
justify-content: center;
color: #e0e0e0;
font-size: 12px;
}
.thumbnail-meta {
flex: 1;
min-width: 0;
padding: 0;
}
.thumbnail-meta h4 {
margin: 0 2px 4px 0;
font-size: 14px;
line-height: 20px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
color: #fff;
white-space: normal;
max-height: 40px;
-webkit-line-clamp: 2;
line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.thumbnail-meta .meta-sub {
display: flex;
gap: 8px;
align-items: center;
}
.thumbnail-meta .meta-sub .meta-dynamic {
color: #bdbdbd;
font-size: 12px;
line-height: 18px;
}
.thumbnail-action button {
border: 0;
background: transparent;
color: #fff;
opacity: 0;
}
.playlist-items a:hover .thumbnail-action button {
opacity: 1;
}
.chapter-body::-webkit-scrollbar {
width: 10px;
}
.chapter-body::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.18);
border-radius: 8px;
}
.chapter-body::-webkit-scrollbar-track {
background: transparent;
}
/* Improve touch scrolling on mobile */
@media (max-width: 767px) {
.chapter-body {
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
overscroll-behavior: contain;
height: calc(100% - 70px);
}
.chapter-body::-webkit-scrollbar {
width: 0px;
}
div.chapter-close button {
width: 30px;
height: 30px;
}
.video-js-root-main .video-js.video-js-rounded-corners .custom-chapters-overlay {
border-bottom-left-radius: 12px !important;
border-bottom-right-radius: 12px !important;
}
.custom-chapters-overlay .video-chapter {
right: 10px;
left: auto;
width: 100%;
max-width: calc(300px - 20px);
height: calc(100% - 40px);
max-height: calc(100% - 40px);
overflow: hidden;
bottom: 40px;
}
.chapter-head {
padding: 10px 15px;
}
.chapter-title h3 a {
font-size: 15px !important;
line-height: 20px !important;
height: 20px !important;
}
.chapter-title p {
font-size: 11px !important;
line-height: 14px !important;
}
.playlist-items a {
padding: 10px 16px !important;
min-height: 58px !important;
}
.thumbnail-meta h4 {
font-size: 13px !important;
line-height: 18px !important;
}
.thumbnail-meta .meta-sub .meta-dynamic {
font-size: 11px !important;
line-height: 16px !important;
}
}