gfds
This commit is contained in:
@@ -326,6 +326,144 @@
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
/* Comment markers (danmaku.js): one tick per timeline comment; click = jump there + show the pill.
|
||||
The layer passes clicks through (normal scrubbing); each tick has a 10px hit area around a 2px line. */
|
||||
.danmaku-markers {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.danmaku-marker {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
transform: translateX(-50%);
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.danmaku-marker::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 2px;
|
||||
transform: translateX(-50%);
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
|
||||
transition: width 0.12s, background 0.12s;
|
||||
}
|
||||
|
||||
/* No own timestamp: placed at a random time on load */
|
||||
.danmaku-marker.is-random::before {
|
||||
background: rgba(255, 255, 255, 0.45);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.danmaku-marker:hover::before {
|
||||
width: 4px;
|
||||
background: #ffd844;
|
||||
}
|
||||
|
||||
/* Hover preview of a marker's comment (plain text), above the progress bar */
|
||||
.danmaku-marker-preview {
|
||||
position: absolute;
|
||||
z-index: 30;
|
||||
max-width: min(320px, 80%);
|
||||
padding: 6px 9px;
|
||||
background: rgba(0, 0, 0, 0.88);
|
||||
border-left: 2px solid var(--accent);
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
transition: opacity 0.12s, transform 0.12s;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
margin-bottom: 2px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-time {
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-user {
|
||||
font-weight: 700;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text {
|
||||
overflow-wrap: anywhere;
|
||||
max-height: 140px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Rendered like the flying pills, sized for a small preview */
|
||||
.danmaku-marker-preview .dmp-text .dpill-line,
|
||||
.danmaku-marker-preview .dmp-text .dpill-greentext {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text .dpill-greentext {
|
||||
color: #789922;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text .dpill-emoji {
|
||||
display: inline-block;
|
||||
height: 1.6em;
|
||||
width: auto;
|
||||
max-width: 4em;
|
||||
vertical-align: middle;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text :is(.dpill-img, .dpill-video) {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: 90px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin-top: 4px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text .dpill-spoiler:not(.revealed) {
|
||||
background: #000;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text .dpill-spoiler:not(.revealed) * {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.danmaku-marker-preview .dmp-text .dpill-blur:not(.revealed) {
|
||||
filter: blur(6px);
|
||||
}
|
||||
|
||||
/* Seek Marker Ripple */
|
||||
.v0ck_seek_marker {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user