Skip to content

Commit c876731

Browse files
authoredJun 30, 2024··
feat(ui): improve visibility of inline code (#1831)
1 parent 9ca7519 commit c876731

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed
 

‎_sass/addon/syntax.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ code {
102102

103103
&.highlighter-rouge {
104104
font-size: $code-font-size;
105-
padding: 3px 5px;
105+
padding: 3px 6px;
106106
word-break: break-word;
107107
border-radius: 4px;
108108
background-color: var(--inline-code-bg);

‎_sass/colors/syntax-dark.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--highlight-bg-color: #151515;
88
--highlighter-rouge-color: #c9def1;
99
--highlight-lineno-color: #808080;
10-
--inline-code-bg: #323238;
10+
--inline-code-bg: rgba(255, 255, 255, 0.05);
1111
--code-color: #b0b0b0;
1212
--code-header-text-color: #6a6a6a;
1313
--code-header-muted-color: #353535;

‎_sass/colors/syntax-light.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88
--highlight-bg-color: #f6f8fa;
99
--highlighter-rouge-color: #3f596f;
1010
--highlight-lineno-color: #9e9e9e;
11-
--inline-code-bg: #f6f6f7;
11+
--inline-code-bg: rgba(25, 25, 28, 0.05);
1212
--code-color: #3a3a3a;
1313
--code-header-text-color: #a3a3a3;
1414
--code-header-muted-color: #e5e5e5;
1515
--code-header-icon-color: #c9c8c8;
1616
--clipboard-checked-color: #43c743;
1717

18-
[class^='prompt-'] {
19-
--inline-code-bg: #fbfafa;
20-
}
21-
2218
/* --- Syntax highlight theme from `rougify style github` --- */
2319

2420
.highlight table td {

0 commit comments

Comments
 (0)
Please sign in to comment.