_docs.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .docs-side {
  2. background: $color-gray;
  3. border-right: 1px solid $color-border;
  4. font-size: $font-size-h6;
  5. z-index: 1;
  6. position: sticky;
  7. top: calc(#{$header-height} + 1px);
  8. height: calc(100vh - #{$header-height});
  9. display: flex;
  10. flex-direction: column;
  11. width: 15rem;
  12. &:after {
  13. content: '';
  14. position: absolute;
  15. top: 0;
  16. right: 0;
  17. bottom: 0;
  18. width: 50vw;
  19. z-index: -1;
  20. background: inherit;
  21. }
  22. }
  23. .docs-menu,
  24. .docs-menu-group,
  25. .docs-menu-submenu {
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .docs-menu {
  30. gap: $gap-4;
  31. margin: 0;
  32. padding: 0;
  33. overflow-y: auto;
  34. max-height: 100%;
  35. padding: 2rem 0;
  36. }
  37. .docs-menu-item {
  38. color: $color-muted;
  39. padding: .25rem 1rem;
  40. border-left: 1px solid $color-border;
  41. transition: $transition-duration border-color, $transition-duration color;
  42. &:hover {
  43. color: $color-headers;
  44. border-left-color: $color-headers;
  45. }
  46. &.active {
  47. color: $color-primary;
  48. border-left-color: $color-primary;
  49. }
  50. }
  51. .docs-menu-header {
  52. font-weight: $font-weight-medium;
  53. color: $color-headers;
  54. display: flex;
  55. align-items: center;
  56. margin-bottom: $gap-2;
  57. }
  58. .docs-menu-icon {
  59. background: $color-gray-dark;
  60. border-radius: $border-radius;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. width: 2rem;
  65. height: 2rem;
  66. margin-right: $gap-3;
  67. .icon {
  68. width: 1.5rem;
  69. height: 1.5rem;
  70. stroke-width: 1.5;
  71. }
  72. }