Skip to content

Commit

Permalink
Merge pull request #6 from shafayetShafee/fix-issue4
Browse files Browse the repository at this point in the history
docs: added credits for hovering effect idea
  • Loading branch information
shafayetShafee authored Apr 15, 2023
2 parents 69af912 + 2daece1 commit 8639402
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions _extensions/line-highlight/resources/css/line-highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ code.has-line-highlights
opacity: 0.4;
}

/* for output-line-numbers */
div.sourceCode
pre.highlight
code.has-line-highlights
> span:not(.highlight-line) {
opacity: 0.4;
}

/* Adding hovering effect */
/* from https://github.com/shafayetShafee/line-highlight/issues/1#issue-1639343001 by @GShotwell*/

div.sourceCode.cell-code:hover
pre
Expand All @@ -28,15 +38,6 @@ code.has-line-highlights
}


/* for output-line-numbers */
div.sourceCode
pre.highlight
code.has-line-highlights
> span:not(.highlight-line) {
opacity: 0.4;
}


div.sourceCode:hover
pre.highlight
code.has-line-highlights
Expand Down

0 comments on commit 8639402

Please sign in to comment.