diff --git a/_layouts/default.html b/_layouts/default.html index 9e319d5..efe82c2 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,70 +1,98 @@ - - - - -{% seo %} - - - - - - - - {% include head-custom.html %} - - - - - - - Skip to the content. - - - -
-
- - - -
- - {{ content }} - - -
- - - + + }); + + + \ No newline at end of file diff --git a/_layouts/go-to-top.css b/_layouts/go-to-top.css index 22d359f..3589b5a 100644 --- a/_layouts/go-to-top.css +++ b/_layouts/go-to-top.css @@ -2,6 +2,13 @@ position: fixed; right: 10px; bottom: 10px; + /* 圖示水平移動位置 */ + transform: translateX(0); + transition: transform 0.2s; + /* 圖示隱藏 */ + &.hide { + transform: translateX(120%); + } .goTopBtn { background-color: transparent; border: none; @@ -11,4 +18,5 @@ color: #3d82ad; } } -} \ No newline at end of file +} +