Update user-portal.component.scss

This commit is contained in:
Chris Chen
2026-06-23 13:53:57 -07:00
parent 47aec287aa
commit 9d7c224ad2
@@ -336,10 +336,17 @@
transition: all 0.2s ease; transition: all 0.2s ease;
position: relative; position: relative;
margin: 0.125rem 0; margin: 0.125rem 0;
// Suppress the grey native tap-flash on touch devices; the active state below
// is the intended feedback.
-webkit-tap-highlight-color: transparent;
&:hover { // Only apply hover on devices that can truly hover (desktop). On touch, hover
background: rgba(30, 64, 175, 0.1); // styles "stick" after a tap and leave a muddy box on the last-tapped item.
color: #1e40af; @media (hover: hover) {
&:hover {
background: rgba(30, 64, 175, 0.1);
color: #1e40af;
}
} }
&.active { &.active {
@@ -612,6 +619,12 @@
display: block; display: block;
} }
// The top-header hamburger toggles the drawer on mobile, so the duplicate
// toggle inside the open drawer header is redundant — hide it.
.sidebar-toggle {
display: none;
}
.page-content { .page-content {
padding: 1rem; padding: 1rem;
} }
@@ -635,20 +648,6 @@
} }
} }
// Overlay for mobile sidebar
@media (max-width: 768px) {
.sidebar:not(.collapsed)::before {
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}
}
// Desktop sidebar collapsed state // Desktop sidebar collapsed state
@media (min-width: 769px) { @media (min-width: 769px) {
.sidebar.collapsed { .sidebar.collapsed {