Center and style video subtitles via ::cue

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 21:18:24 +02:00
parent bbf8365c70
commit 75493ed80e

View File

@@ -17,6 +17,14 @@
} }
} }
video::cue {
text-align: center;
background: rgba(0, 0, 0, 0.75);
color: #ffffff;
font-size: 1rem;
line-height: 1.4;
}
@layer utilities { @layer utilities {
.line-clamp-2 { .line-clamp-2 {
display: -webkit-box; display: -webkit-box;