mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
87 lines
2.0 KiB
SCSS
87 lines
2.0 KiB
SCSS
#menu
|
|
ul:has(li.hasChildren:is(.active, .bsplus-active))
|
|
li.hasChildren:is(.active, .bsplus-active) {
|
|
box-shadow: inset 0px 0 var(--item-colour, transparent) !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
#menu ul:not(:has(> li.hasChildren:is(.active, .bsplus-active))) {
|
|
overflow-y: scroll !important;
|
|
}
|
|
|
|
/* Move the complete row, including hover fill, arrow and subject stripe.
|
|
A transform on the folder itself would also move its absolute `.sub` panel.
|
|
Resting margins are measured before drilling so auto margins interpolate. */
|
|
#menu#menu ul.bsplus-drill-rows > :is(li, section) {
|
|
margin-left: var(--bsplus-row-margin-left) !important;
|
|
transition:
|
|
margin-left 0.3s ease,
|
|
background-color 0.2s ease,
|
|
box-shadow 0.2s ease !important;
|
|
animation: none !important;
|
|
|
|
> label,
|
|
> svg,
|
|
&::before,
|
|
&::after {
|
|
transform: none !important;
|
|
animation: none !important;
|
|
}
|
|
}
|
|
|
|
#menu#menu
|
|
ul.bsplus-drill-rows:has(> .hasChildren:is(.active, .bsplus-active))
|
|
> :is(li, section) {
|
|
margin-left: calc(
|
|
var(--bsplus-row-margin-left) + var(--bsplus-slide-off, -320px)
|
|
) !important;
|
|
}
|
|
|
|
/* Incoming rows travel only with their native panel. */
|
|
#menu .sub > ul:not(.bsplus-drill-rows) > li {
|
|
&,
|
|
> label,
|
|
> svg,
|
|
&::before,
|
|
&::after {
|
|
animation: none !important;
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
#menu .sub {
|
|
transition:
|
|
transform 0.3s ease,
|
|
left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
#menu
|
|
.sub
|
|
ul:has(> li.hasChildren:is(.active, .bsplus-active))
|
|
> li:not(:is(.active, .bsplus-active)) {
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
#menu
|
|
> ul:has(li.hasChildren:is(.active, .bsplus-active))
|
|
> li:is(.active, .bsplus-active) {
|
|
background: transparent !important;
|
|
}
|
|
|
|
#menu li.hasChildren:not(:is(.active, .bsplus-active)) li .sub {
|
|
display: none; // improves performance
|
|
}
|
|
|
|
.sub .sub {
|
|
top: 0 !important;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.sub:has(ul > li.hasChildren:is(.active, .bsplus-active)) > .nav > .back {
|
|
display: none !important;
|
|
}
|
|
|
|
#menu {
|
|
--bsplus-slide-off: -320px;
|
|
}
|