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.

98 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. margin-right: 0.75rem;
  43. text-decoration: none;
  44. border-bottom-color: transparent;
  45. cursor: pointer;
  46. }
  47. &:hover {
  48. .zola-anchor {
  49. visibility: visible;
  50. }
  51. }
  52. }
  53. blockquote {
  54. border-left: 10px solid black;
  55. padding: 0.25rem 0.5rem;
  56. margin-left: 0;
  57. font-style: italic;
  58. }
  59. }
  60. iframe {
  61. width: 100%;
  62. min-height: 400px;
  63. }
  64. }
  65. @media only screen and (max-width: 1000px) {
  66. .documentation {
  67. flex-direction: column;
  68. padding: 2rem;
  69. &__content {
  70. width: 100%;
  71. margin-left: 0;
  72. }
  73. &__sidebar {
  74. border-top: 1px solid $background;
  75. order: 1;
  76. margin-right: 0;
  77. margin-top: 1rem;
  78. }
  79. }
  80. }