diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-09-14 22:45:31 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-09-14 22:45:58 +0200 |
commit | 5cc3d6719cd596c9828c8dce5e9a9e934f333f93 (patch) | |
tree | 834076658db112b63566b72851fc2e92aa19005f /assets | |
parent | 4e34988b5db9f4e78e1d27458e867be9a8f2db84 (diff) |
#231, Allow open collapsed menu without changing page
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_main.scss | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/assets/_main.scss b/assets/_main.scss index 5cf81d0..05e5ef9 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -107,8 +107,10 @@ ul.pagination { @include fixed; } - a { + a, + label { color: inherit; + cursor: pointer; word-wrap: break-word; } @@ -116,13 +118,12 @@ ul.pagination { color: var(--color-link); } - a.collapsed { - display: flex; - justify-content: space-between; + input.toggle + label + ul { + display: none; + } - &::after { - content: "▸"; - } + input.toggle:checked + label + ul { + display: block; } } |