| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- .root {
- position: relative;
- width: 260px;
- background: var(--theme-sidebar-background);
- border-right: 1px solid var(--theme-sidebar-border);
- display: flex;
- flex-direction: column;
- transition: transform 0.3s ease;
- @media (max-width: 1024px) {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- z-index: 40;
- transform: translateX(-100%);
- &.mobileOpen {
- transform: translateX(0);
- }
- }
- }
- .mobileMenuButton {
- display: none;
- @media (max-width: 1024px) {
- display: flex;
- align-items: center;
- justify-content: center;
- position: fixed;
- top: 16px;
- left: 16px;
- z-index: 50;
- width: 40px;
- height: 40px;
- background: var(--theme-background);
- border: 1px solid var(--theme-border);
- border-radius: 8px;
- color: var(--theme-headline);
- cursor: pointer;
- box-shadow: 0 2px 8px var(--theme-shadow);
- transition: all 0.2s ease;
- &:hover {
- background: var(--theme-background-secondary);
- }
- }
- }
- .mobileOverlay {
- display: none;
- @media (max-width: 1024px) {
- display: block;
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.5);
- z-index: 30;
- }
- }
- .logo {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 20px;
- height: 72px;
- border-bottom: 1px solid var(--theme-sidebar-border);
- text-decoration: none;
- transition: background 0.2s ease;
- &:hover {
- background: var(--theme-sidebar-item-hover);
- }
- }
- .logoIcon {
- flex-shrink: 0;
- }
- .logoText {
- flex: 1;
- min-width: 0;
- }
- .logoTitle {
- font-size: 18px;
- font-weight: 700;
- color: var(--theme-headline);
- line-height: 1.2;
- }
- .logoSubtitle {
- font-size: 11px;
- font-weight: 500;
- color: var(--theme-paragraph-subtle);
- margin-top: 2px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- .nav {
- flex: 1;
- padding: 16px 12px;
- overflow-y: auto;
- }
- .menu {
- list-style: none;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .menuItem {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 16px;
- border-radius: 8px;
- text-decoration: none;
- color: var(--theme-paragraph);
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- cursor: pointer;
- &:hover {
- background: var(--theme-sidebar-item-hover);
- color: var(--theme-headline);
- }
- &.active {
- background: var(--theme-sidebar-item-active);
- color: var(--theme-button-text);
- box-shadow: 0 1px 3px var(--theme-shadow);
- }
- }
- .menuIcon {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .menuLabel {
- flex: 1;
- min-width: 0;
- }
- .footer {
- padding: 16px 20px;
- border-top: 1px solid var(--theme-sidebar-border);
- }
- .footerText {
- font-size: 12px;
- font-weight: 500;
- color: var(--theme-paragraph-subtle);
- }
- .footerCopyright {
- font-size: 11px;
- color: var(--theme-paragraph-subtle);
- margin-top: 4px;
- }
|