From faab265365d91a10c1694473648403a84f22ebc3 Mon Sep 17 00:00:00 2001 From: Noam Yorav-Raphael Date: Mon, 8 Apr 2024 23:58:04 +0300 Subject: [PATCH] make prompts unselectable --- custom.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/custom.css b/custom.css index 9a336ae..7d19409 100644 --- a/custom.css +++ b/custom.css @@ -15,4 +15,14 @@ color: var(--links); font-weight: bold; font-size: 2rem; -} \ No newline at end of file +} + +/* + Make prompts unselectable in console sections. + 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; +}