-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #928 from krassowski/fix-mark-highlight-in-dark-mode
Fix contrast of mark highlights in dark mode
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
.lsp-signature-help pre code { | ||
.lsp-signature-help code { | ||
font-size: var(--jp-code-font-size); | ||
} | ||
|
||
.lsp-signature-help code > mark { | ||
color: var(--jp-lsp-signature-mark-color); | ||
background: var(--jp-lsp-signature-mark-background); | ||
} | ||
|
||
.lsp-signature-help code > mark > span { | ||
/* override syntax highlight colour to ensure contrast */ | ||
color: var(--jp-lsp-signature-mark-color) !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
body[data-jp-theme-light='false'] .cm-s-jupyter { | ||
--jp-editor-mirror-lsp-highlight-background-color: rgba(151, 173, 255, 0.3); | ||
} | ||
|
||
body[data-jp-theme-light='false'] { | ||
--jp-lsp-signature-mark-color: white; | ||
--jp-lsp-signature-mark-background: #607e01; | ||
} |