From a34b77969f1c2f00ded440ad301c3c1fea1070e1 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 1 Nov 2021 05:26:32 +0800 Subject: [PATCH 1/2] Simplify the style of `` --- _sass/addon/commons.scss | 6 ------ _sass/addon/syntax.scss | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index c42eb6d..a00aa17 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -394,7 +394,6 @@ footer { word-spacing: 1px; a { - @extend %link-color; @extend %link-underline; &:not(:last-child) { @@ -456,12 +455,7 @@ footer { } a { - blockquote & { - color: var(--link-color); - } - &:not(.img-link) { - @extend %link-color; @extend %link-underline; &:hover { diff --git a/_sass/addon/syntax.scss b/_sass/addon/syntax.scss index fd79339..4e6eb11 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -121,12 +121,12 @@ code { background-color: var(--inline-code-bg); } - @at-root a > &.highlighter-rouge { + a > &.highlighter-rouge { padding-bottom: 0; // show link's underlinke color: inherit; } - @at-root a:hover > &.highlighter-rouge { + a:hover > &.highlighter-rouge { border-bottom: none; } From 833b6c9d5cdc18a5b4e910b0244b5be5837b9143 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 2 Nov 2021 17:54:36 +0800 Subject: [PATCH 2/2] Hide the cursor of icons, images, and code snippets Found on Windows with mouse --- _sass/addon/commons.scss | 11 +++++++++++ _sass/addon/module.scss | 4 ++++ _sass/addon/syntax.scss | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index a00aa17..263edbc 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -189,6 +189,13 @@ footer { } } +i { // fontawesome icons + &.far, + &.fas { + @extend %no-cursor; + } +} + /* --- Panels --- */ .access { @@ -473,6 +480,8 @@ footer { &.img-link { @include caption; + + @extend %no-cursor; } } // a @@ -852,6 +861,8 @@ $sidebar-display: "sidebar-display"; } .icon-border { + @extend %no-cursor; + background-color: var(--sidebar-muted-color); content: ""; width: 3px; diff --git a/_sass/addon/module.scss b/_sass/addon/module.scss index 15e8ea9..d7ef8e9 100644 --- a/_sass/addon/module.scss +++ b/_sass/addon/module.scss @@ -39,6 +39,10 @@ transition: color 0.35s ease-in-out; } +%no-cursor { + user-select: none; +} + %no-bottom-border { border-bottom: none; } diff --git a/_sass/addon/syntax.scss b/_sass/addon/syntax.scss index 4e6eb11..1a71b9b 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -133,6 +133,10 @@ code { blockquote &.highlighter-rouge { color: inherit; } + + .highlight > & { + color: transparent; + } } td.rouge-code {