Skip to content

Commit

Permalink
Merge pull request #7 from shafayetShafee/fix-scrolling
Browse files Browse the repository at this point in the history
Fixed scrolling problem in full screened code block for Firefox
  • Loading branch information
shafayetShafee committed Apr 18, 2023
2 parents 5721c67 + ca507a8 commit 10cf352
Show file tree
Hide file tree
Showing 4 changed files with 761 additions and 217 deletions.
2 changes: 1 addition & 1 deletion _extensions/code-fullscreen/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Code-fullscreen
author: Shafayet Khan Shafee
version: 1.1.0
version: 1.1.1
quarto-required: ">=1.2.0"
contributes:
filters:
Expand Down
14 changes: 11 additions & 3 deletions _extensions/code-fullscreen/resources/css/code-fullscreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,26 @@ div#fullscreen-box pre.numberSource {
margin-left: 4em;
}

body.reveal-viewport:has(div#fullscreen-box) {
overflow: overlay;

/* using `auto` instead of `overlay` */
body.reveal-viewport {
overflow: auto !important;
}

/* for modal that open when clicking on </> Code button on html */
body.modal-open {
overflow: auto !important;
}


.reveal-full-page div#fullscreen-box {
height: unset !important;
}

.reveal-full-page div#fullscreen-box pre.numberSource {
border-left: 1px solid #aaaaaa !important;
border-radius: 0;
margin-left: 3em;
margin-left: 4em;
}


Expand Down
Loading

0 comments on commit 10cf352

Please sign in to comment.