From 5cc3d6719cd596c9828c8dce5e9a9e934f333f93 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 14 Sep 2020 22:45:31 +0200 Subject: #231, Allow open collapsed menu without changing page --- assets/_main.scss | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'assets/_main.scss') 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; } } -- cgit v1.2.3