sidebar.styl 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .sidebar {
  2. background: $black-deep;
  3. bottom: 0;
  4. if (!hexo-config('back2top.sidebar')){
  5. box-shadow: inset 0 2px 6px black;
  6. }
  7. position: fixed;
  8. top: 0;
  9. +tablet-mobile() {
  10. if (!hexo-config('sidebar.onmobile')) {
  11. display: none;
  12. }
  13. }
  14. }
  15. .sidebar-inner {
  16. color: $grey-dark;
  17. padding: $sidebar-padding 10px;
  18. text-align: center;
  19. }
  20. .cc-license {
  21. margin-top: 10px;
  22. text-align: center;
  23. .cc-opacity {
  24. border-bottom: none;
  25. opacity: .7;
  26. &:hover {
  27. opacity: .9;
  28. }
  29. }
  30. img {
  31. display: inline-block;
  32. }
  33. }
  34. @import 'sidebar-author';
  35. @import 'sidebar-author-links';
  36. @import 'sidebar-button';
  37. @import 'sidebar-blogroll';
  38. @import 'sidebar-dimmer';
  39. @import 'sidebar-nav';
  40. @import 'sidebar-toggle';
  41. @import 'sidebar-toc' if (hexo-config('toc.enable'));
  42. @import 'site-state' if (hexo-config('site_state'));