Skip to content

Commit

Permalink
doc: make prompts unselectable on the manuals
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSidhion committed Apr 4, 2024
1 parent 4d32193 commit 744616b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,12 @@ div.appendix .informaltable th,
div.appendix .informaltable td {
padding: 0.5rem;
}

/*
This relies on highlight.js applying certain classes on the prompts.
For more details, see https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#stylable-scopes
*/
.hljs-meta.prompt_ {
user-select: none;
-webkit-user-select: none;
}

0 comments on commit 744616b

Please sign in to comment.