Commit f4e2d63
use background property and custom vars for code block (#1352)
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
<img width="547" height="150" alt="image"
src="https://github.com/user-attachments/assets/2002f08f-18cc-410d-9904-87cceca2a835"
/>
Co-authored-by: HJ <cocomarine@users.noreply.github.com>1 parent 7ea9e57 commit f4e2d63
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
0 commit comments