Improve TOC logic, reduce code duplication and add changelog entries

This commit is contained in:
daudix
2024-10-02 20:30:55 +03:00
parent a85b1ccfe6
commit 3080a2ca70
7 changed files with 83 additions and 80 deletions

View File

@ -19,9 +19,21 @@
color: transparent;
user-select: none;
:root[dir*="rtl"] & {
transform: scaleX(-1);
&:active {
transform: scaleX(-1) var(--active);
}
}
&:hover {
background-color: var(--accent-color);
}
&:active {
transform: var(--active);
}
}
a + a[href*="#fr-"],
@ -32,10 +44,6 @@
&:hover {
opacity: 1;
}
&:active {
transform: var(--active);
}
}
li:target a[href*="#fr-"] {