Skip to content

Commit

Permalink
ensure that code annotation buttons are not selectable text.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Nov 16, 2023
1 parent 29715e3 commit 5df7906
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/changelog-1.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- ([#7137](https://github.com/quarto-dev/quarto-cli/discussions/7137)): Automatically set `rel="noopener"` when setting a target on external links
- ([#7187](https://github.com/quarto-dev/quarto-cli/issues/7187)): Add `html-table-processing: none` to document- and project-level metadata to disable HTML table processing. Add `{html-table-processing="none"}` to a fenced div to disable HTML table processing for the elements in that div. Add `html-table-processing: none` on knitr or jupyter cell to disable HTML table processing for the cell output content.
- ([#7441](https://github.com/quarto-dev/quarto-cli/issues/7441)): Links in hover box (e.g. links to DOI when hover for citations is opt-in) are now correctly process for external and new window processing (when `link-external-icon: true` and `link-external-newwindow: true`).
- Ensure that code annotation buttons are not selectable text.

## Appendix

Expand Down
5 changes: 5 additions & 0 deletions src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,11 @@ code.sourceCode .code-annotation-anchor {

code.sourceCode button.code-annotation-anchor {
padding: 2px;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
}

code.sourceCode a.code-annotation-anchor {
Expand Down
5 changes: 5 additions & 0 deletions src/resources/formats/revealjs/quarto.scss
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ div.cell-output-display div.pagedtable-wrapper table.table {
font-size: 0.7em;
line-height: 1.2em;
margin-top: 2px;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
}

.reveal code.sourceCode button.code-annotation-anchor {
Expand Down

0 comments on commit 5df7906

Please sign in to comment.