fix: 다크 테마에서 코드포스 수식 이미지 반전 표시 (#27)#28
Merged
Merged
Conversation
코드포스 구식 문제의 수식은 espresso 호스트에서 서빙되는 검은 글씨 + 투명 배경 이미지라 다크 테마에서 배경에 묻힘. 기존 data: URI 이미지 반전과 같은 방식으로 espresso 이미지에 invert(0.85) 필터를 적용해 본문 텍스트 밝기에 맞춤. 일반 삽화는 반전 대상에서 제외.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #27
증상
다크 테마에서 코드포스 문제의 일부 수식(예:
i ∈ [2; n])이 배경에 묻혀 안 보임.원인
코드포스 구식 문제들은 수식을 KaTeX 텍스트가 아닌 이미지(espresso 호스트, 검은 글씨 + 투명 배경 PNG)로 제공. 문제 뷰 다크 CSS에
img[src^='data:']반전 규칙은 있었지만 espresso 수식 이미지가 대상에서 빠져 있었음.변경
다크 모드 CSS 한 줄 추가:
invert(0.85): 검은 글씨 → 본문 텍스트(#d4d4d4)와 비슷한 밝기테스트