mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-21 05:28:28 -05:00
[PR #1752] fix(book): add body.quarto-dark selectors to video-enhanced.css dark mode #14651
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1752
Author: @Shashank-Tripathi-07
Created: 5/17/2026
Status: 🔄 Open
Base:
dev← Head:fix/video-enhanced-quarto-dark-toggle📝 Commits (1)
aabc89cfix(book): add body.quarto-dark selectors to video-enhanced.css dark mode📊 Changes
1 file changed (+19 additions, -0 deletions)
View changed files
📝
book/quarto/assets/styles/video-enhanced.css(+19 -0)📄 Description
Bug
Video component containers do not apply dark styling when the reader uses Quarto's manual dark mode toggle button.
video-enhanced.cssused only@media (prefers-color-scheme: dark)for its dark mode rules. The toggle button addsbody.quarto-darkto the body element -- not a media query -- so OS-light users who toggle dark mode see video components rendered with light-mode styles (light gradient background, dark text) against a dark page.Fix
Duplicate the dark mode rules under
body.quarto-darkselectors directly below the existing@mediablock. Both mechanisms now cover the same visual states:@media (prefers-color-scheme: dark)-- OS-level system preferencebody.quarto-dark-- Quarto manual toggleTest plan
video-enhanced-containerwith OS in light mode🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.