- Add Navigation section (Dashboard, Metrics, Agents) with useNavigate - Route items now navigate to /routes/:id - Active state highlights current page based on location.pathname - Replace inline CamelIcon with actual camel-logo.svg asset Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
339 lines
5.5 KiB
CSS
339 lines
5.5 KiB
CSS
.sidebar {
|
|
width: 220px;
|
|
flex-shrink: 0;
|
|
background: var(--sidebar-bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Logo */
|
|
.logo {
|
|
padding: 16px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.logoImg {
|
|
width: 28px;
|
|
height: 24px;
|
|
color: var(--amber-light);
|
|
filter: brightness(0) saturate(100%) invert(76%) sepia(30%) saturate(400%) hue-rotate(5deg) brightness(95%);
|
|
}
|
|
|
|
.brand {
|
|
font-family: var(--font-mono);
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
color: var(--amber-light);
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.version {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: var(--sidebar-muted);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
/* Search */
|
|
.searchWrap {
|
|
padding: 10px 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.searchInner {
|
|
position: relative;
|
|
}
|
|
|
|
.searchInput {
|
|
width: 100%;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: var(--radius-sm);
|
|
padding: 6px 10px 6px 28px;
|
|
color: var(--sidebar-text);
|
|
font-family: var(--font-body);
|
|
font-size: 12px;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.searchInput::placeholder {
|
|
color: var(--sidebar-muted);
|
|
}
|
|
|
|
.searchInput:focus {
|
|
border-color: rgba(198, 130, 14, 0.4);
|
|
}
|
|
|
|
.searchIcon {
|
|
position: absolute;
|
|
left: 9px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--sidebar-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Scrollable nav area */
|
|
.navArea {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Section headers */
|
|
.section {
|
|
padding: 14px 12px 5px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.2px;
|
|
color: var(--sidebar-muted);
|
|
}
|
|
|
|
/* Items container */
|
|
.items {
|
|
padding: 0 6px;
|
|
}
|
|
|
|
/* Nav item */
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 12px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--sidebar-text);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all 0.12s;
|
|
border-left: 3px solid transparent;
|
|
margin-bottom: 1px;
|
|
user-select: none;
|
|
}
|
|
|
|
.item:hover {
|
|
background: var(--sidebar-hover);
|
|
color: #e8dfd4;
|
|
}
|
|
|
|
.item.active {
|
|
background: var(--sidebar-active);
|
|
color: var(--amber-light);
|
|
border-left-color: var(--amber);
|
|
}
|
|
|
|
.item.active .itemCount {
|
|
background: rgba(198, 130, 14, 0.2);
|
|
color: var(--amber-light);
|
|
}
|
|
|
|
/* Indented route items */
|
|
.indented {
|
|
padding-left: 22px;
|
|
}
|
|
|
|
.navIcon {
|
|
font-size: 14px;
|
|
width: 18px;
|
|
text-align: center;
|
|
color: var(--sidebar-muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.item.active .navIcon {
|
|
color: var(--amber-light);
|
|
}
|
|
|
|
.routeArrow {
|
|
color: var(--sidebar-muted);
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* Item sub-elements */
|
|
.itemInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.itemName {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.itemMeta {
|
|
font-size: 11px;
|
|
color: var(--sidebar-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.itemCount {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--sidebar-muted);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Health dots */
|
|
.healthDot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.healthLive {
|
|
background: #5db866;
|
|
box-shadow: 0 0 6px rgba(93, 184, 102, 0.4);
|
|
}
|
|
|
|
.healthStale {
|
|
background: var(--warning);
|
|
}
|
|
|
|
.healthDead {
|
|
background: var(--sidebar-muted);
|
|
}
|
|
|
|
/* Divider */
|
|
.divider {
|
|
height: 1px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
margin: 6px 12px;
|
|
}
|
|
|
|
/* Agents header */
|
|
.agentsHeader {
|
|
padding: 14px 12px 6px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.2px;
|
|
color: var(--sidebar-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.agentBadge {
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
border-radius: 10px;
|
|
background: rgba(93, 184, 102, 0.15);
|
|
color: #5db866;
|
|
}
|
|
|
|
/* Agents list */
|
|
.agentsList {
|
|
padding: 0 0 6px;
|
|
overflow-y: auto;
|
|
max-height: 180px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.agentItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
margin: 0 6px 2px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
color: var(--sidebar-text);
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.agentItem:hover {
|
|
background: var(--sidebar-hover);
|
|
}
|
|
|
|
.agentDot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.agentInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agentName {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.agentDetail {
|
|
font-size: 10px;
|
|
color: var(--sidebar-muted);
|
|
}
|
|
|
|
.agentStats {
|
|
text-align: right;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: var(--sidebar-muted);
|
|
}
|
|
|
|
.agentTps {
|
|
color: var(--sidebar-text);
|
|
}
|
|
|
|
.agentLastSeen {
|
|
color: var(--sidebar-muted);
|
|
}
|
|
|
|
.agentError {
|
|
color: var(--error);
|
|
}
|
|
|
|
/* Bottom links */
|
|
.bottom {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
padding: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.bottomItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 12px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--sidebar-muted);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.12s;
|
|
border-left: 3px solid transparent;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.bottomItem:hover {
|
|
background: var(--sidebar-hover);
|
|
color: var(--sidebar-text);
|
|
}
|
|
|
|
.bottomIcon {
|
|
font-size: 13px;
|
|
width: 18px;
|
|
text-align: center;
|
|
}
|