back-to-top-sidebar.styl 325 B

1234567891011121314151617181920
  1. .back-to-top {
  2. background: transparent;
  3. margin: 20px - $sidebar-offset -10px -20px;
  4. opacity: 0;
  5. if (!hexo-config('back2top.scrollpercent')) {
  6. span {
  7. display: none;
  8. }
  9. }
  10. &.back-to-top-on {
  11. cursor: pointer;
  12. opacity: $b2t-opacity;
  13. &:hover {
  14. opacity: $b2t-opacity-hover;
  15. }
  16. }
  17. }