Skip to content

Commit 23caf20

Browse files
committed
Fix cursor for some buttons & links (fix #411)
1 parent 0ec27f4 commit 23caf20

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

_sass/addon/commons.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ $sidebar-display: "sidebar-display";
811811
i {
812812
@include sidebar-links;
813813

814+
@extend %cursor-pointer;
815+
814816
margin: 0;
815817
font-size: 1.05rem;
816818
text-align: center;
@@ -914,12 +916,16 @@ $sidebar-display: "sidebar-display";
914916
border: 1px solid var(--search-wrapper-bg);
915917
background: var(--search-wrapper-bg);
916918
padding: 0 0.5rem;
919+
917920
i {
918921
z-index: 2;
919922
font-size: 0.9rem;
920923
color: var(--search-icon-color);
921924
}
925+
922926
.fa-times-circle { /* button 'clean up' */
927+
@extend %cursor-pointer;
928+
923929
visibility: hidden;
924930
}
925931
}
@@ -928,6 +934,8 @@ $sidebar-display: "sidebar-display";
928934
color: var(--link-color);
929935
margin-left: 1rem;
930936
display: none;
937+
938+
@extend %cursor-pointer;
931939
}
932940

933941
#search-input {

_sass/addon/module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
margin-top: -2.5rem;
5252
}
5353

54+
%cursor-pointer {
55+
cursor: pointer;
56+
}
57+
5458
/* ---------- scss mixin --------- */
5559

5660
@mixin no-text-decoration {

_sass/addon/syntax.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ div {
199199
background-color: inherit;
200200
color: var(--highlight-lineno-color);
201201

202+
@extend %cursor-pointer;
203+
202204
&[timeout] {
203205
color: var(--clipboard-checked-color);
204206
border-color: var(--clipboard-checked-color);

_sass/layout/post.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@
242242
> i {
243243
position: relative;
244244
bottom: 1px;
245+
246+
@extend %cursor-pointer;
247+
245248
&:hover {
246249
@extend %btn-share-hovor;
247250
}

0 commit comments

Comments
 (0)