Files
signoz/frontend/src/container/SideNav/NavItem/NavItem.styles.scss
SagarRajput-7 c9cd974dca
Some checks are pending
build-staging / prepare (push) Waiting to run
build-staging / js-build (push) Blocked by required conditions
build-staging / go-build (push) Blocked by required conditions
build-staging / staging (push) Blocked by required conditions
Release Drafter / update_release_draft (push) Waiting to run
feat: sidebar enhancement (#10157)
* feat: sidebar enhancement (#9748)

* fix: sidebar enhancement

* fix: new source btn changes

* fix: shortcut order changes

* fix: changes in more section collapse behaviour

* fix: sidebar shortcut changes, consistency, cleanup in collapse mode

* fix: sidebar pin, tooltip and other changes

* feat: updated alignment issues

* fix: sidenav enhancement - fixes

* fix: code fix

* fix: sidenav enhancement

* feat: addressed comments and feedback

* feat: fix default shortcut empty issue

* feat: code clean and improvements

* feat: refactor and cleanup

* feat: refactor and addressed comment

* feat: removed isscrolled

* feat: corrected the ref intialization
2026-02-03 07:58:21 +00:00

163 lines
2.2 KiB
SCSS

.nav-item {
border-radius: 2px;
display: flex;
flex-direction: row;
align-items: center;
height: 32px;
margin-bottom: 4px;
cursor: pointer;
&.active {
.nav-item-active-marker {
background: #4e74f8;
}
.nav-item-data {
.nav-item-label {
color: var(--bg-vanilla-100, #fff);
}
}
}
&.disabled {
.nav-item-data {
opacity: 0.5;
cursor: not-allowed;
}
}
&:hover {
cursor: pointer;
.nav-item-data {
color: white;
background: var(--bg-slate-500, #161922);
}
}
&.active {
.nav-item-data {
color: white;
background: var(--bg-slate-500, #161922);
// color: #3f5ecc;
}
}
.nav-item-active-marker {
margin: 4px 0;
width: 8px;
height: 24px;
background: transparent;
border-radius: 2px;
margin-left: -5px;
}
.nav-item-data {
flex-grow: 1;
max-width: calc(100% - 20px);
display: flex;
margin: 0px 0px 0px 6px;
padding: 2px 8px;
flex-direction: row;
align-items: center;
gap: 8px;
align-self: stretch;
color: #c0c1c3;
font-family: Inter;
font-size: 13px;
font-style: normal;
font-weight: 300;
line-height: 18px;
background: transparent;
transition: 0.08s all ease;
border-radius: 3px;
.nav-item-icon {
height: 16px;
}
.nav-item-label {
// width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #c0c1c3;
font-family: Inter;
font-size: 13px;
font-style: normal;
font-weight: 300;
line-height: normal;
letter-spacing: 0.14px;
}
.nav-item-pin-icon {
margin-left: auto;
cursor: pointer;
display: none;
}
&:hover {
.nav-item-label {
color: var(--bg-vanilla-100, #fff);
}
.nav-item-pin-icon {
display: block;
}
}
}
.beta-tag {
padding-right: 0;
}
}
.lightMode {
.nav-item {
&.active {
.nav-item-active-marker {
background: #4e74f8;
}
.nav-item-data {
.nav-item-label {
color: var(--bg-slate-500);
}
}
}
&:hover {
cursor: pointer;
.nav-item-data {
color: #121317;
background: var(--bg-vanilla-300);
}
}
&.active {
.nav-item-data {
color: #121317;
background: var(--bg-vanilla-300);
}
}
.nav-item-data {
color: #121317;
.nav-item-label {
color: var(--bg-ink-400);
}
}
}
}