Update user-portal.component.scss
This commit is contained in:
@@ -336,11 +336,18 @@
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
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;
|
||||
|
||||
// Only apply hover on devices that can truly hover (desktop). On touch, hover
|
||||
// styles "stick" after a tap and leave a muddy box on the last-tapped item.
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
background: rgba(30, 64, 175, 0.1);
|
||||
color: #1e40af;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: rgba(30, 64, 175, 0.15);
|
||||
@@ -612,6 +619,12 @@
|
||||
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 {
|
||||
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
|
||||
@media (min-width: 769px) {
|
||||
.sidebar.collapsed {
|
||||
|
||||
Reference in New Issue
Block a user