From 14d67caaa44054578d0780b82216bb502dad61be Mon Sep 17 00:00:00 2001 From: DS Date: Wed, 3 Apr 2024 22:06:18 -0700 Subject: doc: make prompts unselectable on the manuals --- doc/style.css | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/style.css b/doc/style.css index fddf4f4823c7..9cd0a0feb3a8 100644 --- a/doc/style.css +++ b/doc/style.css @@ -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; +} -- cgit 1.4.1