diff options
author | Pim Snel <pim@lingewoud.nl> | 2021-05-03 21:18:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 21:18:49 +0200 |
commit | e0823c213882489bb4ee3959bf2b306061762bf1 (patch) | |
tree | 3fed97d7ea8ec6141347eb503b8c6a554f34e9cc | |
parent | 51140a802646c3507436c97d39c8928c54ad701c (diff) |
collapsed menu right arrow, uncollapsed down arrow (#332)
-rw-r--r-- | assets/_main.scss | 8 | ||||
-rw-r--r-- | layouts/partials/docs/menu-filetree.html | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/assets/_main.scss b/assets/_main.scss index 6c044cb..883fbda 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -125,6 +125,14 @@ ul.pagination { input.toggle:checked + label + ul { display: block; } + + input.toggle + label::after { + content: "▸"; + } + + input.toggle:checked + label::after { + content: "▾"; + } } .book-section-flat { diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 3ca9db2..a4835b2 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -34,7 +34,6 @@ <a {{ if .Page.Content }}href="{{ .Page.Permalink }}"{{ end }} class="{{ if $current }}active{{ end }}"> {{- partial "docs/title" .Page -}} </a> - <span>▾</span> </label> {{ else if .Page.Content }} <a href="{{ .Page.Permalink }}" class="{{ if $current }} active{{ end }}"> |