diff --git a/docs/site/assets/css/page.css b/docs/site/assets/css/page.css index 6f5b50aa896..3c82fae7d63 100644 --- a/docs/site/assets/css/page.css +++ b/docs/site/assets/css/page.css @@ -40,21 +40,50 @@ header .nav a.uplink { color: white; } -header .nav div.subpages { +div.showmap { + position: absolute; + right: 1em; + color: white; +} + +div.showmap:hover { + text-decoration: underline; + color: white; +} + +header .nav div.subpages, +div.sitemap { box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); z-index: 1; background-color: white; - position: absolute; + position: fixed; color: black; padding: 0.5em; } -div.subpages .hamburger { - left: 1em; +div.submap { + margin-left: 1em; + border-left: 1px solid gray; + padding-left: 0.5em; +} + +div.subpages > .hamburger, +div.sitemap .hamburger { + position: absolute; + right: 1em; top: 1em; color: darkslateblue; } +div.sitemap { + height: 90%; +} + +div.sitemap > div.submap { + height: 95%; + overflow-y: scroll; +} + .subpages .hamburger:hover { color: gray; } diff --git a/docs/site/assets/js/cldrsite.js b/docs/site/assets/js/cldrsite.js index 57342cf5768..7fdcf4410a3 100644 --- a/docs/site/assets/js/cldrsite.js +++ b/docs/site/assets/js/cldrsite.js @@ -51,8 +51,107 @@ async function siteData() { return j; } +const AncestorPages = { + props: ["ancestorPages"], + setup() {}, + template: ` + + {{ ancestor.title }}❱ + +`, +}; + +const SubPagesPopup = { + props: { + children: { + type: Object, + required: true, + }, + }, + emits: ["hide"], // when user clicks hide + setup() {}, + methods: { + hide() { + this.$emit("hide"); + }, + }, + template: ` +