feat: full JS-less theme transition, better transition animation between themes, better light theme colors

This commit is contained in:
Oleksandr 2026-02-13 07:46:00 +02:00
parent da6dd0100b
commit c0e0266d45
Signed by: Xanazf
GPG key ID: 821EEC32761AC17C
46 changed files with 4031 additions and 2536 deletions

View file

@ -6,7 +6,7 @@ import {
type Component,
} from "solid-js";
import { Article } from "@icons";
import { Article, MenuToX } from "@icons";
import { Table } from "./Table";
import type { TOCProps } from "../types";
import { buildHierarchy } from "@config/io/helpers";
@ -27,7 +27,10 @@ const TableOfContents: Component<TOCProps> = props => {
return type ? (
<Table typeTOC={type} />
) : (
<Table title={title} configTOC={buildHierarchy(config!)} />
<Table
title={title}
configTOC={buildHierarchy(config!)}
/>
);
}
@ -92,13 +95,17 @@ const TableOfContents: Component<TOCProps> = props => {
id="toc-toggle"
>
<div onclick={e => toggle(e)}>
<Article />
<Article class={`toc-icon ${!open() ? "active" : ""}`} />
<MenuToX class={`toc-icon ${open() ? "active" : ""}`} />
</div>
<div class={`toc-mobile ${open() ? "shown" : ""}`}>
{type ? (
<Table typeTOC={type} />
) : (
<Table title={title} configTOC={buildHierarchy(config!)} />
<Table
title={title}
configTOC={buildHierarchy(config!)}
/>
)}
</div>
</div>