Highlight a targeted line in source block
When using refs to create links to specific lines in code blocks, use the ‘:target’ pseudo-class to highlight the background.
This commit is contained in:
parent
aa1f297dc5
commit
7f17632ab0
1 changed files with 4 additions and 0 deletions
|
@ -75,3 +75,7 @@ pre.src {
|
|||
line-height: 1;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.org-src-container span:target {
|
||||
background-color: #1b214a;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue