Skip to content

Commit b797b22

Browse files
Copilotulysses4ever
andcommitted
Improve background image visibility fix using background-blend-mode
Co-authored-by: ulysses4ever <[email protected]>
1 parent daddd1c commit b797b22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/assets/css/dark-mode.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ body.dark-mode {
88

99
body.dark-mode.introcontent {
1010
background-color: #2d2d2d;
11-
/* Keep the background image visible in dark mode with reduced opacity */
12-
opacity: 0.95;
11+
/* Keep the background image visible but dimmed for dark mode */
12+
background-blend-mode: darken;
13+
background-color: rgba(45, 45, 45, 0.7);
1314
}
1415

1516
body.dark-mode .bgwrapper {

0 commit comments

Comments
 (0)