From 41ed33145639415148aec8e85edc7a6fd0de0ca3 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 13 Jan 2023 03:36:07 +0800 Subject: [PATCH] fix: copy command line incomplete(`.gp` part) --- _sass/addon/syntax.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_sass/addon/syntax.scss b/_sass/addon/syntax.scss index 78f1d09..6667380 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -66,6 +66,13 @@ html { font-size: $code-font-size; line-height: 1.4rem; word-wrap: normal; /* Fixed Safari overflow-x */ + + /* set the dollar sign to non-selectable */ + >.gp:first-child { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } } table { @@ -85,13 +92,6 @@ html { -o-user-select: none; user-select: none; } - - /* set the dollar sign to non-selectable */ - .gp { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } } /* .highlight */ code {