sidebar.module.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .root {
  2. position: relative;
  3. width: 260px;
  4. background: var(--theme-sidebar-background);
  5. border-right: 1px solid var(--theme-sidebar-border);
  6. display: flex;
  7. flex-direction: column;
  8. transition: transform 0.3s ease;
  9. @media (max-width: 1024px) {
  10. position: fixed;
  11. top: 0;
  12. left: 0;
  13. bottom: 0;
  14. z-index: 40;
  15. transform: translateX(-100%);
  16. &.mobileOpen {
  17. transform: translateX(0);
  18. }
  19. }
  20. }
  21. .mobileMenuButton {
  22. display: none;
  23. @media (max-width: 1024px) {
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. position: fixed;
  28. top: 16px;
  29. left: 16px;
  30. z-index: 50;
  31. width: 40px;
  32. height: 40px;
  33. background: var(--theme-background);
  34. border: 1px solid var(--theme-border);
  35. border-radius: 8px;
  36. color: var(--theme-headline);
  37. cursor: pointer;
  38. box-shadow: 0 2px 8px var(--theme-shadow);
  39. transition: all 0.2s ease;
  40. &:hover {
  41. background: var(--theme-background-secondary);
  42. }
  43. }
  44. }
  45. .mobileOverlay {
  46. display: none;
  47. @media (max-width: 1024px) {
  48. display: block;
  49. position: fixed;
  50. inset: 0;
  51. background: rgba(0, 0, 0, 0.5);
  52. z-index: 30;
  53. }
  54. }
  55. .logo {
  56. display: flex;
  57. align-items: center;
  58. gap: 12px;
  59. padding: 20px;
  60. height: 72px;
  61. border-bottom: 1px solid var(--theme-sidebar-border);
  62. text-decoration: none;
  63. transition: background 0.2s ease;
  64. &:hover {
  65. background: var(--theme-sidebar-item-hover);
  66. }
  67. }
  68. .logoIcon {
  69. flex-shrink: 0;
  70. }
  71. .logoText {
  72. flex: 1;
  73. min-width: 0;
  74. }
  75. .logoTitle {
  76. font-size: 18px;
  77. font-weight: 700;
  78. color: var(--theme-headline);
  79. line-height: 1.2;
  80. }
  81. .logoSubtitle {
  82. font-size: 11px;
  83. font-weight: 500;
  84. color: var(--theme-paragraph-subtle);
  85. margin-top: 2px;
  86. text-transform: uppercase;
  87. letter-spacing: 0.5px;
  88. }
  89. .nav {
  90. flex: 1;
  91. padding: 16px 12px;
  92. overflow-y: auto;
  93. }
  94. .menu {
  95. list-style: none;
  96. margin: 0;
  97. padding: 0;
  98. display: flex;
  99. flex-direction: column;
  100. gap: 4px;
  101. }
  102. .menuItem {
  103. display: flex;
  104. align-items: center;
  105. gap: 12px;
  106. padding: 12px 16px;
  107. border-radius: 8px;
  108. text-decoration: none;
  109. color: var(--theme-paragraph);
  110. font-size: 14px;
  111. font-weight: 500;
  112. transition: all 0.2s ease;
  113. cursor: pointer;
  114. &:hover {
  115. background: var(--theme-sidebar-item-hover);
  116. color: var(--theme-headline);
  117. }
  118. &.active {
  119. background: var(--theme-sidebar-item-active);
  120. color: var(--theme-button-text);
  121. box-shadow: 0 1px 3px var(--theme-shadow);
  122. }
  123. }
  124. .menuIcon {
  125. flex-shrink: 0;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. }
  130. .menuLabel {
  131. flex: 1;
  132. min-width: 0;
  133. }
  134. .footer {
  135. padding: 16px 20px;
  136. border-top: 1px solid var(--theme-sidebar-border);
  137. }
  138. .footerText {
  139. font-size: 12px;
  140. font-weight: 500;
  141. color: var(--theme-paragraph-subtle);
  142. }
  143. .footerCopyright {
  144. font-size: 11px;
  145. color: var(--theme-paragraph-subtle);
  146. margin-top: 4px;
  147. }