File tree Expand file tree Collapse file tree 5 files changed +10
-13
lines changed
Expand file tree Collapse file tree 5 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 66 opacity : $b2t-opacity ;
77 cursor : pointer ;
88 text-align : center ;
9- & :hover { opacity : 0.8 ; }
9+ & :hover { opacity : $b2t-opacity-hover ; }
1010
1111 +tablet-mobile() {
12- hexo-config ('sidebar.onmobile' ) ? fixbutton () : hide ( );
12+ hide () if not hexo-config ('sidebar.onmobile' );
1313 }
1414
1515 & .back-to-top-on {
Original file line number Diff line number Diff line change 1818 & .back-to-top-on {
1919 bottom : $b2t-position-bottom-on ;
2020 }
21- & :hover {
22- color : $sidebar-highlight ;
21+ +tablet-mobile() {
22+ opacity : $b2t-opacity-hover ;
23+ right : $b2t-position-right-mobile ;
2324 }
2425}
Original file line number Diff line number Diff line change 11.sidebar-toggle {
2- & :hover .sidebar-toggle-line {
3- background : $sidebar-highlight ;
4- }
52 position : fixed ;
63 right : $b2t-position-right ;
74 bottom : 45px ;
1411 cursor : pointer ;
1512
1613 +tablet-mobile() {
17- hexo-config ('sidebar.onmobile' ) ? fixbutton () : hide ();
14+ opacity : $b2t-opacity-hover ;
15+ right : $b2t-position-right-mobile ;
16+ hide () if not hexo-config ('sidebar.onmobile' );
1817 }
1918}
2019
Original file line number Diff line number Diff line change @@ -76,11 +76,6 @@ show() {
7676 display : block ;
7777}
7878
79- fixbutton () {
80- right : 20px ;
81- opacity : 0.8 ;
82- }
83-
8479random-color ($min , $max ) {
8580 return floor (math (0 , 'random' ) * ($max - $min + 1 ) + $min );
8681}
Original file line number Diff line number Diff line change @@ -279,9 +279,11 @@ $toc-link-active-current-border-color = $sidebar-highlight
279279// --------------------------------------------------
280280// Back to top
281281$b2t-opacity = 1
282+ $b2t-opacity-hover = 0.8
282283$b2t-position-bottom = - 100px
283284$b2t-position-bottom-on = 19px
284285$b2t-position-right = 30px
286+ $b2t-position-right-mobile = 20px
285287$b2t-font-size = 12px
286288$b2t-color = white
287289$b2t-bg-color = $black-deep
You can’t perform that action at this time.
0 commit comments