Skip to content

use background property and custom vars for code block#1352

Draft
rammodhvadia wants to merge 1 commit intomainfrom
code-block-styling-fix
Draft

use background property and custom vars for code block#1352
rammodhvadia wants to merge 1 commit intomainfrom
code-block-styling-fix

Conversation

@rammodhvadia
Copy link
Contributor

uses the following vars for custom styling:
--code-block-blend-mode: set custom blend mode for highlighted lines of code in code blocks, defaults to difference
--code-block-line-highlight-border: allows setting border value for border-inline-start on code blocks. Used to add a bar to the start of a highlighted line, defaults to none
--code-block-line-highlight-border-color: sets the color of the border, defaults to none

Also uses the background property instead of background-color to remove colour gradient from code block highlight

Example of this in use in cc projects
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant