From 386d84578278d44f4f70c9ed2cebba9623c4007b Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 20 Nov 2021 18:32:25 +0530 Subject: [PATCH] Prevent `code-copy` btn and `anchored` headings from getting selected --- assets/css/common/main.css | 1 + assets/css/common/post-single.css | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/css/common/main.css b/assets/css/common/main.css index c47e300..50022ac 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -59,6 +59,7 @@ pre { border-radius: var(--radius); padding: 0 5px; font-size: 14px; + user-select: none; } div.highlight:hover .copy-code, diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index bc7f25e..79ccbec 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -366,6 +366,7 @@ h6:hover .anchor { color: var(--secondary); margin-inline-start: 8px; font-weight: 500; + user-select: none; } .post-content :not(table) ::-webkit-scrollbar-thumb {