Skip to content

Commit ea5a7f1

Browse files
committed
Optimized sidebar cursor effect on touch screens.
1 parent 695cf2f commit ea5a7f1

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

assets/css/_src/main.scss

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,15 @@ body {
117117
height: 26px;
118118
background: #fcfcfc;;
119119
pointer-events: none;
120-
-webkit-transition: top .5s ease;
121-
-moz-transition: top .5s ease;
122-
-o-transition: top .5s ease;
123-
transition: top .5s ease;
120+
}
121+
122+
@media (hover: hover) {
123+
#sidebar ul>li:last-child::after {
124+
-webkit-transition: top .5s ease;
125+
-moz-transition: top .5s ease;
126+
-o-transition: top .5s ease;
127+
transition: top .5s ease;
128+
}
124129
}
125130

126131
#nav-wrap {
@@ -897,7 +902,7 @@ table tbody td {
897902
padding-inline-start: 1.5rem;
898903
}
899904

900-
#related-posts ul > li::before {
905+
#related-posts ul>li::before {
901906
background: #c2c9d4;
902907
width: 5px;
903908
height: 5px;
@@ -1136,8 +1141,8 @@ a.tag:hover {
11361141
padding: .6rem 0;
11371142
}
11381143

1139-
#page-category ul > li::before,
1140-
#page-tag ul > li::before {
1144+
#page-category ul>li::before,
1145+
#page-tag ul>li::before {
11411146
background: #999;
11421147
width: 5px;
11431148
height: 5px;

0 commit comments

Comments
 (0)