From 5c8353a16a2a24e551faf0be1caee2a28a0d341d Mon Sep 17 00:00:00 2001 From: Dejavu Moe Date: Sun, 7 May 2023 13:02:48 +0800 Subject: [PATCH] Make Chroma line numbers unselectable (#57) * Make Chroma line numbers unselectable * Add browser compatibility prefix --- assets/css/syntax.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/css/syntax.scss b/assets/css/syntax.scss index 186e3c7..5d0a0ba 100644 --- a/assets/css/syntax.scss +++ b/assets/css/syntax.scss @@ -37,6 +37,9 @@ padding-left: .9em; padding-right: 1em; text-align: right; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; } .chroma .hl .lnt { @@ -141,4 +144,4 @@ .chroma .hl { display: block; background-color: var(--code-highlighted-line); -} \ No newline at end of file +}