Skip to content

Commit 1c125b9

Browse files
authored
fix: DC-4710 code color (#7056)
* Update code bg/color in content * Fix more bg and color
1 parent 01995a4 commit 1c125b9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/css/custom.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,9 @@ table {
429429
}
430430

431431
table code {
432-
color: var(--main-font-color);
433432
line-height: 24px;
433+
color: var(--secondary-font-color);
434+
background-color: var(--code-inline-bgd-color);
434435
}
435436

436437
table * {
@@ -1558,9 +1559,16 @@ code {
15581559
border: none !important;
15591560
}
15601561

1562+
code:not(pre > code) {
1563+
color: var(--secondary-font-color);
1564+
background-color: var(--code-inline-bgd-color);
1565+
}
1566+
15611567
.anchor code {
15621568
font-size: inherit;
15631569
display: inline-block;
1570+
color: var(--primary-font-color);
1571+
background-color: var(--code-inline-bgd-color);
15641572
}
15651573

15661574
.videoWrapper {

src/theme/CodeBlock/Content/styles.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* rtl:ignore */
44
direction: ltr;
55
border-radius: inherit;
6+
margin-bottom: 1em;
67
}
78

89
.codeBlockTitle {

0 commit comments

Comments
 (0)