Skip to content

Commit

Permalink
Merge pull request #14 from shafayetShafee/fix-modal
Browse files Browse the repository at this point in the history
Fix for #13
  • Loading branch information
shafayetShafee authored Apr 24, 2023
2 parents 21cdda3 + a3be7fc commit 6efc21b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _extensions/line-highlight/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Line-highlight
author: Shafayet Khan Shafee
version: 1.2.1
version: 1.2.2
quarto-required: ">=1.2.0"
contributes:
filters:
Expand Down
12 changes: 6 additions & 6 deletions _extensions/line-highlight/resources/css/line-highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@ https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/revealj
*/

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

/* for output-line-numbers */
div.sourceCode pre.highlight code.has-line-highlights > span:not(.highlight-line) {
body:not(.modal-open) 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:hover pre code.has-line-highlights > span:not(.highlight-line) {
body:not(.modal-open) div.sourceCode:hover pre code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}


div.sourceCode:hover pre code.has-line-highlights > span.highlight-line {
body:not(.modal-open) div.sourceCode:hover pre code.has-line-highlights > span.highlight-line {
font-weight: 600;
}


div.sourceCode:hover pre.highlight code.has-line-highlights > span:not(.highlight-line) {
body:not(.modal-open) div.sourceCode:hover pre.highlight code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}

div.sourceCode:hover pre.highlight code.has-line-highlights > span.highlight-line {
body:not(.modal-open) div.sourceCode:hover pre.highlight code.has-line-highlights > span.highlight-line {
font-weight: 600;
}
2 changes: 1 addition & 1 deletion docs/example.html

Large diffs are not rendered by default.

0 comments on commit 6efc21b

Please sign in to comment.