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,12 +32,24 @@
width: 100%; width: 100%;
gap: 0.25rem; gap: 0.25rem;
position: relative; position: relative;
container-type: inline-size;
.is-collapsed & { .is-collapsed & {
padding-left: 1rem; &__channel-title:not(:first-child) {
margin-left: 1rem;
}
&__toggle-drawer-button {
&:after {
@container (inline-size) {
content: "";
position: absolute;
height: 100%;
left: 0;
width: calc(100cqw - 2.3em + 1rem);
}
&:hover { &:hover {
.c-navbar__toggle-drawer-button {
color: var(--tertiary-hover); color: var(--tertiary-hover);
.d-icon { .d-icon {
@ -46,6 +58,7 @@
} }
} }
} }
}
.single-select-header { .single-select-header {
padding: 0.3675rem 0.584rem; padding: 0.3675rem 0.584rem;