mirror of
https://github.com/imfing/hextra.git
synced 2025-05-13 10:26:26 -04:00

* feat: add prefix to tailwind css classes * fix: remove unnecessary prefixes * fix: add missing prefix in other places * chore: regenerate hugo_stats.json * chore: run `npm run build:css` * chore: add `hx-` prefix to _index.fa.md * fix: lang switcher display issue * fix: add `hx-` prefix to showcase/index.fa.md * fix: lang switch param mistake
18 lines
763 B
HTML
18 lines
763 B
HTML
{{- $name := .Get "name" -}}
|
|
{{- $state := .Get "state" | default "open" }}
|
|
|
|
<li class="hx-group hx-flex hx-list-none hx-flex-col">
|
|
<button class="hextra-filetree-folder hx-inline-flex hx-cursor-pointer hx-items-center hx-py-1 hover:hx-opacity-60">
|
|
<span data-state="{{ $state }}" class="data-[state=open]:hx-hidden">
|
|
{{- partial "utils/icon" (dict "name" "folder" "attributes" "width=1em") -}}
|
|
</span>
|
|
<span data-state="{{ $state }}" class="data-[state=closed]:hx-hidden">
|
|
{{- partial "utils/icon" (dict "name" "folder-open" "attributes" "width=1em") -}}
|
|
</span>
|
|
<span class="hx-ml-1">{{ $name }}</span>
|
|
</button>
|
|
<ul data-state="{{ $state }}" class="hx-pl-5 data-[state=closed]:hx-hidden">
|
|
{{- .Inner -}}
|
|
</ul>
|
|
</li>
|