debug.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <div class="debug">
  2. <a href="#" data-debug="dark">Dark mode</a>
  3. <a href="#" data-debug="rtl">RTL mode</a>
  4. <a href="#" data-debug="code">Show cards code</a>
  5. <a href="#" data-debug="folded">Folded sidebar</a>
  6. <a href="#" data-debug="fullscreen">Fullscreen</a>
  7. <a href="#" data-debug="header-sticky">Sticky header</a>
  8. <a href="{{ site.base }}/pages.html">All pages</a>
  9. <div class="debug-info">Jekyll {{ jekyll.version }}</div>
  10. </div>
  11. <style>
  12. .card-debug {
  13. position: absolute;
  14. right: 0;
  15. top: 0;
  16. line-height: 1;
  17. font-size: 11px;
  18. display: none;
  19. }
  20. .debug-info {
  21. margin-left: auto;
  22. }
  23. .card-debug a {
  24. display: inline-block;
  25. padding: 2px;
  26. }
  27. .card-debug a:hover {
  28. text-decoration: underline;
  29. }
  30. .debug {
  31. position: fixed;
  32. bottom: 0;
  33. left: 0;
  34. right: 0;
  35. background: #222;
  36. color: #fff;
  37. padding: .5rem .75rem;
  38. font-size: 12px;
  39. direction: ltr;
  40. text-align: left;
  41. z-index: 3000;
  42. display: flex;
  43. }
  44. .debug a {
  45. color: inherit;
  46. margin-right: 1rem;
  47. }
  48. .debug a[data-debug]:after {
  49. content: "";
  50. margin: 0 0 1px .25rem;
  51. width: 6px;
  52. height: 6px;
  53. display: inline-block;
  54. background: rgba(255, 255, 255, .3);
  55. border-radius: $border-radius-pill;
  56. }
  57. body.show-debug-code .card-debug {
  58. display: block;
  59. }
  60. @media (max-width: 991.98px) {
  61. .debug {
  62. display: none;
  63. }
  64. }
  65. body.show-debug-code a[data-debug="code"]:after,
  66. html[dir="rtl"] a[data-debug="rtl"]:after,
  67. body.theme-dark a[data-debug="dark"]:after,
  68. :fullscreen a[data-debug="fullscreen"]:after,
  69. body.header-sticky a[data-debug="header-sticky"]:after,
  70. body.sidebar-folded a[data-debug="folded"]:after {
  71. background: #5eba00;
  72. }
  73. </style>