Merge branch 'feature/hide-mouse-cursor'

This commit is contained in:
Cotes Chung 2021-12-02 05:53:13 +08:00
commit 12407bbfc0
3 changed files with 21 additions and 8 deletions

View file

@ -189,6 +189,13 @@ footer {
} }
} }
i { // fontawesome icons
&.far,
&.fas {
@extend %no-cursor;
}
}
/* --- Panels --- */ /* --- Panels --- */
.access { .access {
@ -394,7 +401,6 @@ footer {
word-spacing: 1px; word-spacing: 1px;
a { a {
@extend %link-color;
@extend %link-underline; @extend %link-underline;
&:not(:last-child) { &:not(:last-child) {
@ -456,12 +462,7 @@ footer {
} }
a { a {
blockquote & {
color: var(--link-color);
}
&:not(.img-link) { &:not(.img-link) {
@extend %link-color;
@extend %link-underline; @extend %link-underline;
&:hover { &:hover {
@ -479,6 +480,8 @@ footer {
&.img-link { &.img-link {
@include caption; @include caption;
@extend %no-cursor;
} }
} // a } // a
@ -858,6 +861,8 @@ $sidebar-display: "sidebar-display";
} }
.icon-border { .icon-border {
@extend %no-cursor;
background-color: var(--sidebar-muted-color); background-color: var(--sidebar-muted-color);
content: ""; content: "";
width: 3px; width: 3px;

View file

@ -39,6 +39,10 @@
transition: color 0.35s ease-in-out; transition: color 0.35s ease-in-out;
} }
%no-cursor {
user-select: none;
}
%no-bottom-border { %no-bottom-border {
border-bottom: none; border-bottom: none;
} }

View file

@ -121,18 +121,22 @@ code {
background-color: var(--inline-code-bg); background-color: var(--inline-code-bg);
} }
@at-root a > &.highlighter-rouge { a > &.highlighter-rouge {
padding-bottom: 0; // show link's underlinke padding-bottom: 0; // show link's underlinke
color: inherit; color: inherit;
} }
@at-root a:hover > &.highlighter-rouge { a:hover > &.highlighter-rouge {
border-bottom: none; border-bottom: none;
} }
blockquote &.highlighter-rouge { blockquote &.highlighter-rouge {
color: inherit; color: inherit;
} }
.highlight > & {
color: transparent;
}
} }
td.rouge-code { td.rouge-code {