_docs.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: 13rem;
  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-side-toc {
  24. width: 15rem;
  25. position: sticky;
  26. top: calc(#{$header-height} + 1px);
  27. height: calc(100vh - #{$header-height});
  28. display: none;
  29. @include media-breakpoint-up(xl) {
  30. display: block;
  31. }
  32. }
  33. .docs-menu,
  34. .docs-menu-group,
  35. .docs-menu-submenu {
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. .docs-menu {
  40. gap: $gap-4;
  41. margin: 0;
  42. padding: 0;
  43. overflow-y: auto;
  44. max-height: 100%;
  45. padding: 2rem 0;
  46. }
  47. .docs-menu-item {
  48. color: $color-muted;
  49. padding: .25rem 1rem;
  50. border-left: 1px solid $color-border;
  51. transition: $transition-duration border-color, $transition-duration color;
  52. &:hover {
  53. color: $color-headers;
  54. border-left-color: $color-headers;
  55. }
  56. &.active {
  57. color: $color-primary;
  58. border-left-color: $color-primary;
  59. }
  60. }
  61. .docs-menu-header {
  62. font-weight: $font-weight-medium;
  63. color: $color-headers;
  64. display: flex;
  65. align-items: center;
  66. margin-bottom: $gap-2;
  67. }
  68. .docs-menu-icon {
  69. background: $color-gray-dark;
  70. border-radius: $border-radius;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. width: 2rem;
  75. height: 2rem;
  76. margin-right: $gap-3;
  77. .icon {
  78. width: 1.5rem;
  79. height: 1.5rem;
  80. stroke-width: 1.5;
  81. }
  82. }
  83. div.example {
  84. iframe.example-frame {
  85. min-height: 7rem !important;
  86. }
  87. }