Skip to content

Commit 5ac5a86

Browse files
authored
style: force light mode for iframes in dark theme (#2593)
1 parent 4c9e111 commit 5ac5a86

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/themes/addons/core-dark.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@
3434
border-color: rgba(255, 255, 255, 0.5);
3535
}
3636
}
37+
38+
/* Force light mode for iframes in dark theme */
39+
iframe,
40+
iframe *,
41+
iframe[src],
42+
iframe[src] * {
43+
color-scheme: light;
44+
}

src/themes/shared/_coverpage.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
&:hover {
4949
text-decoration-color: transparent;
5050
}
51+
color: var(--cover-title-color);
5152
}
5253

5354
small {

src/themes/shared/_vars.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
--callout-charm-translate : -50% -50%;
9696
--callout-color : ;
9797
--callout-padding : 1em 1em 1em var(--callout-charm-size);
98-
--code-bg : var(--color-mono-1);
98+
--code-bg : var(--color-mono-2);
9999
--code-color : ;
100100
--codeblock-bg : var(--code-bg);
101101
--codeblock-color : var(--code-color);
@@ -199,4 +199,4 @@
199199
--callout-charm-color : #fff;
200200
--callout-charm-content: 'i';
201201
--callout-color : ;
202-
}
202+
}

0 commit comments

Comments
 (0)