From c0a1c9cbcb7331f7e9b6bc4d2936e84b6ab7f06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 24 Feb 2023 23:29:33 +0100 Subject: [PATCH] menu: rebuild collapsible expander #466 because sizing and positioning was a mess; the follwing things are fixed with this: - resizes and positions correctly according to html elements font-size - IE11 compatiblity is now given - a11y: expander is now correctly given a focus outline - chevron is now coded into html instead of a css content value, which makes it easier to change (was an issue in the past) - the visited checkmark now breaks correctly on long lines and hides behind the text if necessary - some more css classes were introduced to make further extensions (eg. nested shortcut links) easier --- .../content/basics/migration/_index.en.md | 2 + layouts/partials/menu.html | 18 +- static/css/ie.css | 44 ++- static/css/nucleus.css | 3 +- static/css/theme-neon.css | 24 +- static/css/theme.css | 268 +++++++++--------- static/css/variant.css | 14 +- static/js/theme.js | 12 +- 8 files changed, 192 insertions(+), 193 deletions(-) diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 9b439dae5b..e583b01dd4 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -20,6 +20,8 @@ This document shows you what's new in the latest release. For a detailed list of ## 5.12.0 (not yet released) +- {{% badge style="note" title=" " %}}Change{{% /badge %}} In the effort to comply with WCAG standards, the implementation of the collapsible menu was changed (again). While Internet Explorer 11 has issues in displaying it, the functionality still works. + - {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Support for the great [VSCode Front Matter extension](https://github.com/estruyf/vscode-front-matter) which provides on-premise CMS capabilties to Hugo. The theme provides Front Matter snippets for its shortcodes. Currently only English and German is supported. Put a reference into your `frontmatter.json` like this diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 73fddd0bdf..39f3927023 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -24,7 +24,7 @@ {{- end }}
-