diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index c42eb6d..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 { @@ -394,7 +401,6 @@ footer { word-spacing: 1px; a { - @extend %link-color; @extend %link-underline; &:not(:last-child) { @@ -456,12 +462,7 @@ footer { } a { - blockquote & { - color: var(--link-color); - } - &:not(.img-link) { - @extend %link-color; @extend %link-underline; &:hover { @@ -479,6 +480,8 @@ footer { &.img-link { @include caption; + + @extend %no-cursor; } } // a @@ -858,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 fd79339..1a71b9b 100644 --- a/_sass/addon/syntax.scss +++ b/_sass/addon/syntax.scss @@ -121,18 +121,22 @@ 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; } blockquote &.highlighter-rouge { color: inherit; } + + .highlight > & { + color: transparent; + } } td.rouge-code {