You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.6KB

  1. .documentation {
  2. padding: 3rem;
  3. display: flex;
  4. &__sidebar {
  5. margin-right: 2rem;
  6. ul {
  7. padding-left: 0;
  8. list-style: none;
  9. }
  10. > ul {
  11. > li {
  12. margin-bottom: 1rem;
  13. }
  14. .documentation__sidebar__title {
  15. font-size: 1.25rem;
  16. font-weight: bold;
  17. }
  18. ul {
  19. margin-top: 0.25rem;
  20. li {
  21. border-left: 1px solid $background;
  22. padding-left: 0.75rem;
  23. padding-top: 0.25rem;
  24. padding-bottom: 0.25rem;
  25. }
  26. li.active a {
  27. font-weight: bold;
  28. border-bottom: 1px solid $link-color;
  29. }
  30. }
  31. }
  32. }
  33. &__content {
  34. width: 60%;
  35. // Same as the anchor absolute left to not overlap
  36. margin-left: 2rem;
  37. h1, h2, h3, h4, h5, h6 {
  38. .zola-anchor {
  39. font-size: 1.25rem;
  40. visibility: hidden;
  41. margin-left: -2rem;
  42. text-decoration: none;
  43. border-bottom-color: transparent;
  44. cursor: pointer;
  45. }
  46. &:hover {
  47. .zola-anchor {
  48. visibility: visible;
  49. }
  50. }
  51. }
  52. blockquote {
  53. border-left: 10px solid black;
  54. padding: 0.25rem 0.5rem;
  55. margin-left: 0;
  56. font-style: italic;
  57. }
  58. }
  59. iframe {
  60. width: 100%;
  61. min-height: 400px;
  62. }
  63. }
  64. @media only screen and (max-width: 1000px) {
  65. .documentation {
  66. flex-direction: column;
  67. padding: 2rem;
  68. &__content {
  69. width: 100%;
  70. margin-left: 0;
  71. }
  72. &__sidebar {
  73. border-top: 1px solid $background;
  74. order: 1;
  75. margin-right: 0;
  76. margin-top: 1rem;
  77. }
  78. }
  79. }