AppSidebar.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. .ant-sidebar > .ant-layout-sider {
  2. position: sticky;
  3. top: 0;
  4. height: 100vh;
  5. align-self: flex-start;
  6. }
  7. .sider-brand,
  8. .drawer-brand {
  9. font-weight: 600;
  10. font-size: 18px;
  11. letter-spacing: 0.5px;
  12. color: var(--ant-color-text);
  13. }
  14. .sider-brand {
  15. display: flex;
  16. align-items: center;
  17. justify-content: space-between;
  18. gap: 8px;
  19. padding: 14px 16px 14px 24px;
  20. border-bottom: 1px solid var(--ant-color-border-secondary);
  21. user-select: none;
  22. }
  23. .sider-brand-collapsed {
  24. justify-content: center;
  25. font-size: 16px;
  26. padding: 14px 4px;
  27. letter-spacing: 0;
  28. }
  29. .brand-block {
  30. display: inline-flex;
  31. align-items: center;
  32. min-width: 0;
  33. line-height: 1.1;
  34. }
  35. .sider-brand-collapsed .brand-block {
  36. flex: 0 0 auto;
  37. }
  38. .brand-actions {
  39. display: inline-flex;
  40. align-items: center;
  41. gap: 2px;
  42. flex-shrink: 0;
  43. }
  44. .sidebar-donate {
  45. background: transparent;
  46. border: none;
  47. width: 30px;
  48. height: 30px;
  49. border-radius: 50%;
  50. display: inline-flex;
  51. align-items: center;
  52. justify-content: center;
  53. color: var(--ant-color-text-secondary);
  54. text-decoration: none;
  55. flex-shrink: 0;
  56. transition: background-color 0.2s, transform 0.15s, color 0.2s;
  57. }
  58. .sidebar-donate:hover,
  59. .sidebar-donate:focus-visible {
  60. background-color: rgba(236, 72, 153, 0.12);
  61. color: #ec4899;
  62. transform: scale(1.08);
  63. outline: none;
  64. }
  65. .sidebar-donate .anticon {
  66. font-size: 16px;
  67. }
  68. .sidebar-theme-cycle {
  69. background: transparent;
  70. border: none;
  71. width: 30px;
  72. height: 30px;
  73. border-radius: 50%;
  74. display: inline-flex;
  75. align-items: center;
  76. justify-content: center;
  77. cursor: pointer;
  78. color: var(--ant-color-text-secondary);
  79. padding: 0;
  80. flex-shrink: 0;
  81. transition: background-color 0.2s, transform 0.15s, color 0.2s;
  82. }
  83. .sidebar-theme-cycle:hover,
  84. .sidebar-theme-cycle:focus-visible {
  85. background-color: color-mix(in srgb, var(--ant-color-primary) 12%, transparent);
  86. color: var(--ant-color-primary);
  87. transform: scale(1.08);
  88. outline: none;
  89. }
  90. .sidebar-theme-cycle .anticon {
  91. font-size: 16px;
  92. }
  93. .drawer-header-actions {
  94. display: inline-flex;
  95. align-items: center;
  96. gap: 4px;
  97. }
  98. .drawer-handle {
  99. position: fixed;
  100. top: 12px;
  101. left: 12px;
  102. z-index: 1100;
  103. background: rgba(0, 0, 0, 0.55);
  104. color: #fff;
  105. border: none;
  106. width: 40px;
  107. height: 40px;
  108. border-radius: 50%;
  109. cursor: pointer;
  110. display: none;
  111. align-items: center;
  112. justify-content: center;
  113. font-size: 18px;
  114. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  115. }
  116. .drawer-header {
  117. display: flex;
  118. align-items: center;
  119. justify-content: space-between;
  120. padding: 14px 16px;
  121. border-bottom: 1px solid var(--ant-color-border-secondary);
  122. }
  123. .drawer-close {
  124. background: transparent;
  125. border: none;
  126. width: 32px;
  127. height: 32px;
  128. border-radius: 50%;
  129. display: inline-flex;
  130. align-items: center;
  131. justify-content: center;
  132. cursor: pointer;
  133. font-size: 16px;
  134. color: var(--ant-color-text-secondary);
  135. }
  136. .drawer-close:hover,
  137. .drawer-close:focus-visible {
  138. background: var(--ant-color-fill-tertiary);
  139. }
  140. .drawer-menu .ant-menu-item {
  141. height: 48px;
  142. line-height: 48px;
  143. margin: 0;
  144. border-radius: 0;
  145. }
  146. .drawer-menu .ant-menu-item .anticon {
  147. font-size: 16px;
  148. }
  149. .drawer-utility {
  150. margin-top: auto;
  151. border-top: 1px solid var(--ant-color-border-secondary);
  152. }
  153. .ant-sidebar > .ant-layout-sider .ant-layout-sider-children {
  154. display: flex;
  155. flex-direction: column;
  156. height: 100%;
  157. }
  158. .sider-nav {
  159. flex: 1 1 auto;
  160. overflow-y: auto;
  161. overflow-x: hidden;
  162. min-height: 0;
  163. }
  164. .sider-utility {
  165. flex: 0 0 auto;
  166. border-top: 1px solid var(--ant-color-border-secondary);
  167. }
  168. .sider-footer {
  169. flex: 0 0 auto;
  170. padding: 8px 8px 12px;
  171. }
  172. .sider-version {
  173. display: flex;
  174. align-items: center;
  175. justify-content: flex-start;
  176. gap: 10px;
  177. width: 100%;
  178. padding: 8px 16px;
  179. color: var(--ant-color-text-secondary);
  180. font-size: 13px;
  181. font-weight: 500;
  182. font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  183. text-decoration: none;
  184. transition: color 0.2s;
  185. }
  186. .sider-version .anticon {
  187. font-size: 16px;
  188. }
  189. .sider-version:hover,
  190. .sider-version:focus-visible {
  191. color: var(--ant-color-primary);
  192. outline: none;
  193. }
  194. .sider-version.is-collapsed {
  195. justify-content: center;
  196. padding: 8px 0;
  197. }
  198. .drawer-footer {
  199. flex: 0 0 auto;
  200. padding: 8px 8px 12px;
  201. }
  202. @media (max-width: 768px) {
  203. .drawer-handle {
  204. display: inline-flex;
  205. }
  206. .ant-sidebar > .ant-layout-sider .ant-layout-sider-children,
  207. .ant-sidebar > .ant-layout-sider .ant-layout-sider-trigger {
  208. display: none;
  209. }
  210. .ant-sidebar > .ant-layout-sider {
  211. flex: 0 0 0 !important;
  212. max-width: 0 !important;
  213. min-width: 0 !important;
  214. width: 0 !important;
  215. }
  216. }
  217. body.dark .ant-drawer-content,
  218. body.dark .ant-drawer-body {
  219. background-color: #15161a;
  220. }
  221. html[data-theme="ultra-dark"] body.dark .ant-drawer-content,
  222. html[data-theme="ultra-dark"] body.dark .ant-drawer-body {
  223. background-color: #050507;
  224. }
  225. body.dark .ant-drawer-body .drawer-menu,
  226. body.dark .ant-drawer-body .drawer-menu.ant-menu-dark,
  227. body.dark .ant-drawer-body .drawer-menu .ant-menu-item,
  228. body.dark .ant-drawer-body .drawer-menu .ant-menu-sub,
  229. body.dark .ant-drawer-body .drawer-menu .ant-menu-item-group-list {
  230. background-color: transparent;
  231. }
  232. .sider-nav .ant-menu-item-selected,
  233. .sider-utility .ant-menu-item-selected,
  234. .drawer-menu .ant-menu-item-selected {
  235. background-color: color-mix(in srgb, var(--ant-color-primary) 20%, transparent) !important;
  236. color: var(--ant-color-primary) !important;
  237. }
  238. .sider-nav .ant-menu-item-active:not(.ant-menu-item-selected),
  239. .sider-utility .ant-menu-item-active:not(.ant-menu-item-selected),
  240. .drawer-menu .ant-menu-item-active:not(.ant-menu-item-selected),
  241. .sider-nav .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover,
  242. .sider-utility .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover,
  243. .drawer-menu .ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled):hover {
  244. background-color: color-mix(in srgb, var(--ant-color-primary) 10%, transparent) !important;
  245. color: var(--ant-color-primary) !important;
  246. }