Skip to content

Commit

Permalink
Merge pull request #301439 from DanielSidhion/unselectable-prompt
Browse files Browse the repository at this point in the history
doc: make prompts unselectable on the manuals
  • Loading branch information
infinisil authored Apr 4, 2024
2 parents 60e0053 + 14d67ca commit 62c8b54
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 @@ -430,3 +430,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 62c8b54

Please sign in to comment.