Skip to content

Commit 6010309

Browse files
authored
Improve the arrow transition (#111)
1 parent aec24f5 commit 6010309

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

github-code-folding.user.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626

2727
GM.addStyle(`
2828
td.blob-code.blob-code-inner { position:relative; padding-left:10px; }
29-
.ghcf-collapser { position:absolute; left:2px; width:22px; opacity:.5;
30-
transition:.15s; cursor:pointer; }
31-
.ghcf-collapser:after { content:"\u25bc"; }
32-
.ghcf-collapser:hover { opacity:1; }
33-
.ghcf-collapsed { transform:rotate(-90deg); transform-origin:16% 49%; opacity:.8; }
29+
.ghcf-collapser { position:absolute; left:2px; width:22px; cursor:pointer; }
30+
.ghcf-collapser:after { display: inline-block; vertical-align: middle; content:"\u25bc"; opacity:.5; transition:.15s; }
31+
.ghcf-collapser:hover:after { opacity:1; }
32+
.ghcf-collapsed.ghcf-collapser:after { transform:rotate(-90deg); opacity:.8; }
3433
.ghcf-hidden-line { display:none; }
3534
.ghcf-ellipsis { padding:1px 2px; margin-left:2px; cursor:pointer;
3635
background:rgba(255,235,59,.4); position:relative; z-index:1; }

0 commit comments

Comments
 (0)