Cesar Mendivil c7a4f163b2 feat: add new logo component and SVG logo asset
- Introduced a new Logo component in TypeScript that supports different sizes and optional text display.
- Added hover effects for the logo image.
- Included a new SVG logo asset for AvanzaCast.
2025-11-06 11:05:31 -07:00

185 lines
3.2 KiB
CSS

.sidebar {
position: fixed;
left: 0;
top: 0;
width: 260px;
height: 100vh;
background-color: var(--surface-color);
border-right: 1px solid var(--border-light);
display: flex;
flex-direction: column;
overflow-y: auto;
z-index: 100;
transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.logoSection {
display: flex;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border-light);
}
.logoIcon {
width: 32px;
height: 32px;
object-fit: contain;
}
.logoText {
font-size: 22px;
font-weight: 600;
color: var(--text-primary);
}
.navMenu {
flex: 1;
padding: 16px 0;
}
.navList {
list-style: none;
}
.navItem {
margin: 2px 0;
}
.navLink {
display: flex;
align-items: center;
padding: 12px 18px;
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
gap: 12px;
border-left: 3px solid transparent;
/* move slightly to the left (-1 spacing ≈ 4px) for a tighter alignment */
width: calc(100% + 26px);
margin-left: -10px;
transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.navLink:hover {
background-color: var(--active-bg-light);
color: var(--primary-blue);
transform: translateX(4px);
}
.activeLink .navLink {
background-color: var(--active-bg-light);
color: var(--primary-blue);
border-left-color: var(--primary-blue);
}
.navIcon {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.secondaryNavGroup {
margin-top: 0;
padding-top: 0;
border-top: 1px solid var(--border-light);
}
.secondaryNavGroup .navList {
margin: 0;
padding: 0;
}
.secondaryNavGroup .navItem {
margin: 2px 0;
}
/* separator between secondary items (not above the first) */
.secondaryNavGroup .navItem + .navItem {
border-top: 1px solid var(--border-light);
}
.secondaryNavGroup .navLink {
padding: 12px 18px;
}
.storageInfo {
padding: 12px 20px 20px 20px;
border-top: 1px solid var(--border-light);
margin-top: auto;
}
.secondaryNavGroup .navLink {
padding-left: 18px;
/* match main nav left offset */
width: calc(100% + 44px);
}
.storageTitle {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.infoIcon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: var(--border-light);
font-size: 10px;
font-weight: 700;
color: var(--text-secondary);
}
.progressBarContainer {
width: 100%;
height: 6px;
background-color: var(--border-light);
border-radius: 3px;
overflow: hidden;
margin-bottom: 8px;
}
.progressBarFill {
height: 100%;
background-color: var(--primary-blue);
border-radius: 3px;
transition: width 0.3s ease;
}
.storageUsage {
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 8px;
}
.addMoreLink {
font-size: 12px;
color: var(--primary-blue);
font-weight: 500;
cursor: pointer;
}
.addMoreLink:hover {
text-decoration: underline;
}
@media (max-width: 1024px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
}