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 --- */
.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;

View file

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

View file

@ -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 {