Spaces:
Paused
Paused
Download frontend/apps/internal/src/components/SideNav.module.css from 3SCError404/miracle: direct link, hf CLI and curl.
- Browser
- Download file 7.75 kB
-
https://huggingface.co/spaces/3SCError404/miracle/resolve/main/frontend/apps/internal/src/components/SideNav.module.css
- Command line
-
hf download hf://spaces/3SCError404/miracle/frontend/apps/internal/src/components/SideNav.module.css
-
curl -L -o SideNav.module.css https://huggingface.co/spaces/3SCError404/miracle/resolve/main/frontend/apps/internal/src/components/SideNav.module.css
7.75 kB
| .nav { | |
| width: 280px; | |
| background-color: var(--bg-dark); | |
| border-right: 1px solid var(--border-subtle); | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .collapsed { | |
| width: 72px; | |
| } | |
| .header { | |
| padding: 24px 14px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| align-items: center; | |
| overflow: hidden; | |
| } | |
| .logoRow { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| width: 100%; | |
| gap: 8px; | |
| min-height: 48px; | |
| } | |
| .toggleBtn { | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| padding: 8px; | |
| border-radius: 8px; | |
| color: var(--text-muted); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.2s; | |
| } | |
| .toggleBtn:hover { | |
| background: var(--bg-hover); | |
| color: var(--primary); | |
| } | |
| .collapsed .header { | |
| padding: 24px 0; | |
| } | |
| .collapsed .logoRow { | |
| flex-direction: column; | |
| justify-content: center; | |
| gap: 20px; | |
| padding: 0; | |
| } | |
| /* Force the logo icon to be smaller and centered when collapsed */ | |
| .collapsed div[class*="logoIconContainer"] { | |
| width: 36px ; | |
| height: 36px ; | |
| transform: scale(0.85); | |
| } | |
| /* Ensure Logo Circle is Theme Color (Violet/Blue) */ | |
| div[class*="logoIcon"] { | |
| background: var(--primary) ; | |
| box-shadow: 0 4px 15px var(--primary-glow) ; | |
| } | |
| div[class*="pulseRing"] { | |
| background: var(--primary) ; | |
| } | |
| .logoGroup { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| min-width: 0; | |
| } | |
| .logoIcon { | |
| width: 38px; | |
| height: 38px; | |
| background: var(--primary); | |
| color: white; | |
| border-radius: 10px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-weight: 900; | |
| font-size: 20px; | |
| box-shadow: 0 4px 12px var(--primary-glow); | |
| } | |
| .logoTextWrapper { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .logoText { | |
| font-size: 16px; | |
| font-weight: 800; | |
| color: var(--text-main); | |
| letter-spacing: -0.02em; | |
| display: flex; | |
| align-items: baseline; | |
| gap: 6px; | |
| } | |
| .poweredBy { | |
| font-size: 8px; | |
| color: var(--error); | |
| font-weight: 900; | |
| } | |
| .logoSubtext { | |
| font-size: 10px; | |
| font-weight: 700; | |
| color: #64748b; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin-top: -2px; | |
| } | |
| /* Workspace Selector */ | |
| .workspaceSelector { | |
| position: relative; | |
| width: 100%; | |
| } | |
| .select { | |
| width: 100%; | |
| appearance: none; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 8px; | |
| padding: 10px 32px 10px 12px; | |
| font-size: 12px; | |
| font-weight: 800; | |
| color: var(--text-main); | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); | |
| } | |
| .select:hover { | |
| border-color: var(--primary); | |
| background: var(--bg-hover); | |
| } | |
| .selectArrow { | |
| position: absolute; | |
| right: 12px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| font-size: 8px; | |
| color: var(--text-muted); | |
| pointer-events: none; | |
| } | |
| .menu { | |
| flex: 1; | |
| padding: 0 12px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| overflow-y: auto; | |
| overflow-x: hidden; | |
| scrollbar-width: none; /* Hide for Firefox */ | |
| -ms-overflow-style: none; /* Hide for IE/Edge */ | |
| } | |
| .menu::-webkit-scrollbar { | |
| display: none; /* Hide scrollbar for Chrome/Safari by default */ | |
| } | |
| .menu:hover::-webkit-scrollbar { | |
| display: block; | |
| width: 4px; | |
| } | |
| .menu::-webkit-scrollbar-thumb { | |
| background: var(--border-subtle); | |
| border-radius: 10px; | |
| } | |
| .onboardBtn { | |
| margin-bottom: 12px; | |
| padding: 12px 16px; | |
| background: var(--primary); | |
| color: white; | |
| border: none; | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| font-weight: 800; | |
| font-size: 11px; | |
| letter-spacing: 0.5px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| box-shadow: 0 4px 15px var(--primary-glow); | |
| width: 100%; | |
| } | |
| .onboardBtn:hover { | |
| background: var(--primary); | |
| opacity: 0.9; | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px var(--primary-glow); | |
| } | |
| .onboardBtn .label { | |
| white-space: nowrap; | |
| font-weight: 800; | |
| } | |
| .collapsed .onboardBtn { | |
| padding: 12px; | |
| justify-content: center; | |
| width: 100%; | |
| } | |
| .item { | |
| width: 100%; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 12px 16px; | |
| border-radius: var(--radius-md); | |
| color: var(--text-muted); | |
| font-size: 14px; | |
| font-weight: 600; | |
| transition: all 0.2s; | |
| position: relative; | |
| background: none; | |
| border: none; | |
| } | |
| .item:hover { | |
| background-color: var(--bg-hover); | |
| color: var(--text-main); | |
| } | |
| .item.active { | |
| background-color: var(--primary-glow); | |
| color: var(--primary); | |
| border-left: 3px solid var(--primary); | |
| } | |
| .icon { | |
| font-size: 16px; | |
| width: 20px; | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .label { | |
| flex: 1; | |
| text-align: left; | |
| } | |
| .badge { | |
| font-size: 10px; | |
| font-weight: 800; | |
| background-color: #cbd5e1; | |
| color: #475569; | |
| padding: 2px 8px; | |
| border-radius: 12px; | |
| } | |
| .active .badge { | |
| background-color: var(--primary); | |
| color: white; | |
| } | |
| .collapsedBadge { | |
| position: absolute; | |
| top: 12px; | |
| right: 12px; | |
| width: 8px; | |
| height: 8px; | |
| background-color: var(--primary); | |
| border: 2px solid var(--bg-card); | |
| border-radius: 50%; | |
| } | |
| .collapsed .item { | |
| padding: 12px; | |
| justify-content: center; | |
| } | |
| .collapsed .icon { | |
| width: 24px; | |
| } | |
| .footer { | |
| padding: 20px 12px; | |
| border-top: 1px solid var(--border-subtle); | |
| } | |
| .collapsed .footer { | |
| padding: 20px 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .profile { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 10px; | |
| border-radius: 12px; | |
| background-color: var(--bg-hover); | |
| transition: all 0.2s; | |
| } | |
| .collapsed .profile { | |
| background: none; | |
| padding: 0; | |
| flex-direction: column; | |
| gap: 16px; | |
| width: 100%; | |
| align-items: center; | |
| } | |
| .collapsed .settingsBtn { | |
| padding: 8px; | |
| width: 36px; | |
| height: 36px; | |
| } | |
| .avatar { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 8px; | |
| background: var(--primary); | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 13px; | |
| font-weight: 700; | |
| box-shadow: 0 4px 12px var(--primary-glow); | |
| } | |
| .info { | |
| flex: 1; | |
| overflow: hidden; | |
| } | |
| .name { | |
| font-size: 13px; | |
| font-weight: 700; | |
| color: var(--text-main); | |
| margin: 0; | |
| } | |
| .roleBadge { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 10px; | |
| font-weight: 800; | |
| color: var(--text-muted); | |
| margin-top: 2px; | |
| } | |
| .roleDot { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| background-color: var(--success); | |
| } | |
| .settingsBtn { | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| padding: 6px; | |
| border-radius: 6px; | |
| color: var(--text-muted); | |
| font-size: 14px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .settingsBtn:hover { | |
| background-color: rgba(0, 0, 0, 0.05); | |
| color: var(--primary); | |
| transform: rotate(90deg); | |
| } | |
| /* --- MOBILE RESPONSIVENESS --- */ | |
| .mobileClose { | |
| display: none; | |
| background: none; | |
| border: none; | |
| font-size: 20px; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| padding: 8px; | |
| } | |
| @media (max-width: 1024px) { | |
| .nav { | |
| position: fixed; | |
| left: 0; | |
| top: 0; | |
| bottom: 0; | |
| transform: translateX(-100%); | |
| box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1); | |
| z-index: 1000; | |
| } | |
| .showMobile { | |
| transform: translateX(0); | |
| width: 280px ; | |
| } | |
| .mobileClose { | |
| display: block; | |
| } | |
| .headerActions { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| /* Hide toggle button on mobile menu unless we want to allow collapsing the drawer itself */ | |
| .showMobile .toggleBtn { | |
| display: none; | |
| } | |
| } | |
| /* For dark mode consistency if vars shift */ | |
| [data-theme='dark'] .settingsBtn:hover { | |
| background-color: rgba(255, 255, 255, 0.1); | |
| } |