hyperdx/packages/app/styles/AppNav.module.scss
Brandon Pereira 1b42180a3d
Fix deprecated @import syntax warning after upgrading react (#1465)
also upgrade stylelint to avoid this issue having a regression

<img width="1243" height="347" alt="Screenshot 2025-12-11 at 1 15 30 PM" src="https://github.com/user-attachments/assets/fb218768-fcd7-41aa-8d05-c12996137539" />
2025-12-11 22:58:08 +00:00

238 lines
4 KiB
SCSS

.wrapper {
height: 100vh;
max-height: 100vh;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
border-right: 1px solid var(--color-border);
background: var(--color-bg-sidebar);
}
.list {
border-top: 1px solid var(--color-border);
overflow-x: hidden;
max-width: 100%;
padding: 4px 16px;
padding-bottom: 0;
}
.scrollbar {
.thumb {
background-color: var(--color-border);
}
}
.listGroupDragEnter {
opacity: 0.7;
background: #ffffff1a;
border-radius: 10px;
}
.listGroupName {
color: var(--color-text-muted);
text-transform: uppercase;
font-size: 11px;
letter-spacing: 1px;
margin-bottom: 2px;
margin-top: 6px;
padding-left: 16px;
width: 100%;
display: flex;
align-items: center;
gap: 6px;
&:hover {
color: var(--color-text);
cursor: pointer;
}
}
.listLink {
display: flex;
justify-content: space-between;
text-decoration: none;
color: var(--color-text);
font-size: 14px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
user-select: none;
gap: 10px;
&:hover {
color: var(--color-text-success);
}
&:focus-visible {
outline: none;
background: var(--color-bg-muted);
}
}
.linkIcon {
margin-right: 8px;
display: inline-flex;
align-items: center;
vertical-align: middle;
transition: all 0.2s ease-in-out;
&:hover {
color: var(--color-text-success);
}
}
.listEmptyMsg {
color: var(--color-text-muted);
font-size: 12px;
margin: 8px 16px;
overflow: hidden;
text-overflow: ellipsis;
}
.nestedLink {
display: block;
color: var(--color-text);
text-decoration: none;
font-size: 13px;
padding-left: 16px;
padding-block: 2px;
transition: all 0.2s ease-in-out;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:hover {
color: var(--color-text-success);
}
&:focus-visible {
outline: none;
background: var(--color-bg-muted);
}
i {
vertical-align: top;
}
}
.nestedLinkActive {
color: var(--color-text-success);
font-weight: 500;
}
.listLinkActive {
color: var(--color-text-success);
font-weight: 500;
}
.kbd {
white-space: nowrap;
letter-spacing: -1px;
color: var(--color-text-muted);
background: var(--color-bg-surface);
border-radius: 4px;
padding: 0 4px;
font-size: 10px;
margin-right: 16px;
}
.searchInput {
input {
min-height: 28px;
height: 28px;
line-height: 28px;
}
}
// User menu trigger styling
.userMenuTrigger {
pointer-events: all;
cursor: pointer;
margin: 8px 0.875rem 0.875rem;
padding: 4px 8px;
border-radius: 8px;
transition:
background-color 0.2s ease,
transform 0.1s ease;
max-width: 100%;
overflow: hidden;
&:hover {
background: var(--color-bg-muted);
}
&:active {
transform: translate(0, 1px);
}
&Collapsed {
padding: 2px;
margin: 8px auto 0.875rem;
background: transparent;
border: none !important;
width: fit-content;
&:hover {
background: var(--color-bg-muted);
}
&:active {
transform: translate(0, 1px);
}
}
}
// Help menu trigger styling
.helpMenuTrigger {
pointer-events: all;
cursor: pointer;
margin: 0 0.875rem 8px;
width: 28px;
height: 28px;
border-radius: 50%;
border: 1px solid var(--color-border);
transition:
background-color 0.2s ease,
transform 0.1s ease,
border-color 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background: var(--color-bg-muted);
border-color: var(--color-border);
}
&:active {
transform: translate(0, 1px);
}
&Collapsed {
margin: 0 auto 8px;
border: none;
background: transparent;
&:hover {
background: var(--color-bg-muted);
}
&:active {
transform: translate(0, 1px);
}
}
}
// Bottom section with gradient overlay
.bottomSection {
position: absolute;
bottom: 0;
pointer-events: none;
background: linear-gradient(
to top,
var(--color-bg-sidebar) 50%,
transparent 100%
);
padding-top: 40px;
}