fix margin misalignment + hover trick

This commit is contained in:
chapoi 2024-11-20 18:09:23 +08:00
parent 5d3620f70e
commit 9009f582f3
1 changed files with 19 additions and 6 deletions

View File

@ -32,16 +32,29 @@
width: 100%;
gap: 0.25rem;
position: relative;
container-type: inline-size;
.is-collapsed & {
padding-left: 1rem;
&__channel-title:not(:first-child) {
margin-left: 1rem;
}
&:hover {
.c-navbar__toggle-drawer-button {
color: var(--tertiary-hover);
&__toggle-drawer-button {
&:after {
@container (inline-size) {
content: "";
position: absolute;
height: 100%;
left: 0;
width: calc(100cqw - 2.3em + 1rem);
}
.d-icon {
color: inherit;
&:hover {
color: var(--tertiary-hover);
.d-icon {
color: inherit;
}
}
}
}