Skip to content

Commit 05ec1fb

Browse files
authored
Use default color and background in third-party github-markdown.css (#8515)
1 parent 7b25e1f commit 05ec1fb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

third_party/css/github-markdown.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
padding: 0 1em;
6767
color: #6a737d;
6868
border-left: 0.25em solid #dfe2e5;
69+
70+
/* Note: pub.dev override. */
71+
.dark-theme & {
72+
color: inherit;
73+
}
6974
}
7075

7176
.markdown-body blockquote>:first-child {
@@ -88,6 +93,13 @@
8893
border-bottom-color: #959da5;
8994
border-radius: 3px;
9095
box-shadow: inset 0 -1px 0 #959da5;
96+
97+
/* Note: pub.dev override. */
98+
.dark-theme & {
99+
color: inherit;
100+
background-color: inherit;
101+
box-shadow: none;
102+
}
91103
}
92104

93105
.markdown-body h1,
@@ -144,6 +156,11 @@
144156
.markdown-body h6 {
145157
font-size: 0.85em;
146158
color: #6a737d;
159+
160+
/* Note: pub.dev override. */
161+
.dark-theme & {
162+
color: inherit;
163+
}
147164
}
148165

149166
.markdown-body ul,
@@ -261,6 +278,11 @@
261278
padding: 5px 0 0;
262279
clear: both;
263280
color: #24292e;
281+
282+
/* Note: pub.dev override. */
283+
.dark-theme & {
284+
color: inherit;
285+
}
264286
}
265287

266288
.markdown-body span.align-center {

0 commit comments

Comments
 (0)