Skip to content

Commit dd278cf

Browse files
authored
Fix markdown table row background and borders. (#8553)
1 parent 5ddc143 commit dd278cf

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

pkg/web_css/lib/src/_base.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,20 +280,20 @@ pre {
280280
border-top: none; /* overrides github-markdown.css */
281281

282282
&:nth-child(2n) {
283-
background-color: inherit; /* overrides github-markdown.css */
283+
background-color: var(--pub-overlay-gray-08); /* overrides github-markdown.css */
284284
}
285285
}
286286

287287
th {
288288
font-family: var(--pub-font-family-body);
289289
font-size: 16px;
290290
font-weight: 400; /* overrides github-markdown.css */
291-
border-bottom: 1px solid #c8c8ca;
291+
border-bottom: 1px solid var(--pub-overlay-gray-80);
292292
text-align: left;
293293
}
294294

295295
td {
296-
border-bottom: 1px solid #f5f5f7;
296+
border-bottom: 1px solid var(--pub-overlay-gray-30);
297297
}
298298

299299
img {

pkg/web_css/lib/src/_variables.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
--pub-color-white: #ffffff;
3131
--pub-color-dangerRed: #ff4242;
3232

33+
// These colors are a combination of middle-gray (#808080) and a transparency
34+
// (alpha) channel, specifying an opaque color that mutes whatever the original
35+
// color was behind it.
36+
--pub-overlay-gray-08: #80808008;
37+
--pub-overlay-gray-30: #80808030;
38+
--pub-overlay-gray-80: #80808080;
39+
3340
--pub-hash_link-text-color: #ccc;
3441
--pub-footer-background-color: #27323a;
3542
--pub-footer-text-color: #f8f9fa;

0 commit comments

Comments
 (0)