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:
Tom Willemse 2023-07-26 16:46:06 -07:00
parent aa1f297dc5
commit 7f17632ab0

View file

@ -75,3 +75,7 @@ pre.src {
line-height: 1;
padding: 0;
}
.org-src-container span:target {
background-color: #1b214a;
}