This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git


The following commit(s) were added to refs/heads/master by this push:
     new 9be5e10  tweak code block selection background color
9be5e10 is described below

commit 9be5e1040d6506c5054148f4c7426362ef9edc9e
Author: plainheart <[email protected]>
AuthorDate: Sat Dec 24 17:44:18 2022 +0800

    tweak code block selection background color
---
 components/markdown/CodeBlock.vue | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/components/markdown/CodeBlock.vue 
b/components/markdown/CodeBlock.vue
index a6bf5ab..7dad069 100644
--- a/components/markdown/CodeBlock.vue
+++ b/components/markdown/CodeBlock.vue
@@ -130,10 +130,12 @@ export default defineComponent({
     text-align: left;
 
     border: none;
-  }
-  pre[class*='language-']::selection,
-  code[class*='language-']::selection {
-    background: #337ab7;
+
+    &::selection,
+    & ::selection {
+      background: rgba(0, 116, 255, 0.8);
+      color: #fff;
+    }
   }
 
   .filename {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to