Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve visibility of inline code #1831

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _sass/addon/syntax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ code {

&.highlighter-rouge {
font-size: $code-font-size;
padding: 3px 5px;
padding: 3px 6px;
word-break: break-word;
border-radius: 4px;
background-color: var(--inline-code-bg);
Expand Down
2 changes: 1 addition & 1 deletion _sass/colors/syntax-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
--highlight-bg-color: #151515;
--highlighter-rouge-color: #c9def1;
--highlight-lineno-color: #808080;
--inline-code-bg: #323238;
--inline-code-bg: rgba(255, 255, 255, 0.05);
--code-color: #b0b0b0;
--code-header-text-color: #6a6a6a;
--code-header-muted-color: #353535;
Expand Down
6 changes: 1 addition & 5 deletions _sass/colors/syntax-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@
--highlight-bg-color: #f6f8fa;
--highlighter-rouge-color: #3f596f;
--highlight-lineno-color: #9e9e9e;
--inline-code-bg: #f6f6f7;
--inline-code-bg: rgba(25, 25, 28, 0.05);
--code-color: #3a3a3a;
--code-header-text-color: #a3a3a3;
--code-header-muted-color: #e5e5e5;
--code-header-icon-color: #c9c8c8;
--clipboard-checked-color: #43c743;

[class^='prompt-'] {
--inline-code-bg: #fbfafa;
}

/* --- Syntax highlight theme from `rougify style github` --- */

.highlight table td {
Expand Down