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.

90 lines
1.4KB

  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. }
  53. iframe {
  54. width: 100%;
  55. min-height: 400px;
  56. }
  57. }
  58. @media only screen and (max-width: 1000px) {
  59. .documentation {
  60. flex-direction: column;
  61. padding: 2rem;
  62. &__content {
  63. width: 100%;
  64. margin-left: 0;
  65. }
  66. &__sidebar {
  67. border-top: 1px solid $background;
  68. order: 1;
  69. margin-right: 0;
  70. margin-top: 1rem;
  71. }
  72. }
  73. }