From 7d2296671ccd1541f5260543f2b9bd784edfd79e Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 28 Mar 2022 02:50:01 -0600 Subject: [PATCH 01/64] set color inherit on all links in nav --- ui/src/css/nav.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 12e1f0b4c..cf29da15e 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -61,6 +61,10 @@ } } +.nav a { + color: inherit; +} + .nav .panels { display: flex; flex-direction: column; @@ -112,10 +116,6 @@ html.is-clipped--nav { padding: 0.25em 0 0.125em; } -.nav-menu a { - color: inherit; -} - .nav-list { margin: 0 0 0 0.75rem; padding: 0; @@ -240,7 +240,6 @@ html.is-clipped--nav { .nav-panel-explore .component .title { font-weight: var(--body-font-weight-bold); - color: inherit; } .nav-panel-explore .versions { @@ -260,7 +259,6 @@ html.is-clipped--nav { .nav-panel-explore .component .version a { border: 1px solid var(--nav-border-color); border-radius: 0.25rem; - color: inherit; opacity: 0.75; white-space: nowrap; padding: 0.125em 0.25em; From 3100182d27ca5355d2d556d888d0a8a1a0a28fad Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 28 Mar 2022 03:31:45 -0600 Subject: [PATCH 02/64] set list-style on ul in nav instead of li --- ui/src/css/nav.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index cf29da15e..42cdf9a6e 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -117,6 +117,7 @@ html.is-clipped--nav { } .nav-list { + list-style: none; margin: 0 0 0 0.75rem; padding: 0; } @@ -126,7 +127,6 @@ html.is-clipped--nav { } .nav-item { - list-style: none; margin-top: 0.5em; } @@ -245,7 +245,6 @@ html.is-clipped--nav { .nav-panel-explore .versions { display: flex; flex-wrap: wrap; - list-style: none; padding-left: 0; margin-top: -0.25rem; line-height: 1; From 4b50f681e9df3b715b7d0ab5d7ffe6c789102efc Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 29 Mar 2022 15:47:55 -0600 Subject: [PATCH 03/64] simplify selector for active nav item toggle and clear padding --- ui/src/css/nav.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 42cdf9a6e..d7769529f 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -150,6 +150,7 @@ html.is-clipped--nav { border: none; outline: none; line-height: inherit; + padding: 0; position: absolute; height: calc(var(--nav-line-height) * 1em); width: calc(var(--nav-line-height) * 1em); @@ -157,7 +158,7 @@ html.is-clipped--nav { margin-left: calc(var(--nav-line-height) * -1em); } -.nav-item.is-active > .nav-item-toggle { +.is-active > .nav-item-toggle { transform: rotate(90deg); } From 4d17d98581982ceb8071e3d7e4b7e7a42c350592 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 30 Mar 2022 23:47:07 -0600 Subject: [PATCH 04/64] enable smooth scroll by default --- ui/src/css/base.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/css/base.css b/ui/src/css/base.css index f3906f6f5..663eecb61 100644 --- a/ui/src/css/base.css +++ b/ui/src/css/base.css @@ -8,6 +8,7 @@ html { box-sizing: border-box; font-size: var(--body-font-size); height: 100%; + scroll-behavior: smooth; } @media screen and (min-width: 1024px) { From fd7996a5e1388476dcc8f2a7a1b76a0da0f1a7bc Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 31 Mar 2022 02:23:03 -0600 Subject: [PATCH 05/64] set the opacity of the placeholder text for an input field to make it consistent --- ui/src/css/base.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/css/base.css b/ui/src/css/base.css index 663eecb61..d9aaf73ec 100644 --- a/ui/src/css/base.css +++ b/ui/src/css/base.css @@ -99,6 +99,10 @@ object[type="image/svg+xml"]:not([width]) { width: fit-content; } +::placeholder { + opacity: 0.5; +} + @supports (scrollbar-width: thin) { body * { scrollbar-width: thin; From 4c323e34d23c8f9269effd610d7ddcbdba82ed45 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 31 Mar 2022 02:30:39 -0600 Subject: [PATCH 06/64] apply color-adjust to admonition icon so it appears in print --- ui/src/css/print.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/css/print.css b/ui/src/css/print.css index 0df133e01..62fc6b48c 100644 --- a/ui/src/css/print.css +++ b/ui/src/css/print.css @@ -67,6 +67,10 @@ padding-bottom: 2rem; } + .doc .admonitionblock td.icon { + color-adjust: exact; + } + .doc .listingblock code[data-lang]::before { display: block; } From 011ff716b63cf3a25e3b42179200574464a8643f Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 31 Mar 2022 02:38:49 -0600 Subject: [PATCH 07/64] make match for active nav-item-toggle more specific --- ui/src/css/nav.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index d7769529f..f023601de 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -158,7 +158,7 @@ html.is-clipped--nav { margin-left: calc(var(--nav-line-height) * -1em); } -.is-active > .nav-item-toggle { +.nav-item.is-active > .nav-item-toggle { transform: rotate(90deg); } From 697c445cb2a91cf698a261e2df2aa6ed971fc1d5 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 31 Mar 2022 02:39:01 -0600 Subject: [PATCH 08/64] only add cursor pointer to explore context if explore can slide out --- ui/src/css/nav.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index f023601de..21be1d668 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -194,11 +194,14 @@ html.is-clipped--nav { display: flex; align-items: center; justify-content: space-between; - cursor: pointer; line-height: 1; height: var(--drawer-height); } +.nav-panel-explore:not(:first-child) .context { + cursor: pointer; +} + .nav-panel-explore .context .version { display: flex; align-items: inherit; From 7611c9868d090bd1a72f655c741dfb5d0d4b21bf Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 3 Apr 2022 02:48:55 -0600 Subject: [PATCH 09/64] remove list style on version list in explore panel --- ui/src/css/nav.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 21be1d668..4aad9fd6a 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -252,10 +252,10 @@ html.is-clipped--nav { padding-left: 0; margin-top: -0.25rem; line-height: 1; + list-style: none; } .nav-panel-explore .component .version { - display: block; margin: 0.375rem 0.375rem 0 0; } From 5acbc14a40a7328a3a23bab6c8080618894a46ad Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 26 May 2022 00:57:03 -0600 Subject: [PATCH 10/64] add support for float-group and float-gap roles * float-group establishes a block formatting context (without affecting margin collapsing) * float-gap adds side and bottom margin to a floating element --- ui/src/css/doc.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 77bd07b38..32ea8d3e0 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -205,6 +205,20 @@ float: left; } +.doc .float-gap.right { + margin: 0 1rem 1rem 0; +} + +.doc .float-gap.left { + margin: 0 0 1rem 1rem; +} + +.doc .float-group::after { + content: ""; + display: table; + clear: both; +} + .doc .stretch { width: 100%; } From c7a90face00469acdb26a163bf12284ab4584c13 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 26 May 2022 01:18:29 -0600 Subject: [PATCH 11/64] resolves #189 add support for align=left and align=right on block image --- ui/src/css/doc.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 32ea8d3e0..e1d433a7a 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -448,6 +448,16 @@ align-items: center; } +.doc .imageblock.text-left, +.doc .videoblock.text-left { + align-items: flex-start; +} + +.doc .imageblock.text-right, +.doc .videoblock.text-right { + align-items: flex-end; +} + .doc .imageblock img, .doc .imageblock object, .doc .imageblock svg, From 83ad9456f08988ca08318779e140bc8724249b48 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 12 Aug 2022 17:47:40 -0600 Subject: [PATCH 12/64] add styles to make marker and content of checklist line up with other list types --- ui/src/css/doc.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index e1d433a7a..322bf3a09 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -593,7 +593,7 @@ } .doc ul.checklist { - padding-left: 0.5rem; + padding-left: 1.75rem; } .doc ul.checklist p > i.fa-check-square-o:first-child, @@ -601,6 +601,7 @@ display: inline-flex; justify-content: center; width: 1.25rem; + margin-left: -1.25rem; } .doc ul.checklist i.fa-check-square-o::before { From 333eafb407962fc99401302120ec75cd5290d0b0 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 18 Sep 2022 13:36:00 -0600 Subject: [PATCH 13/64] add source toolbox to content div rather than pre --- ui/src/css/doc.css | 5 +++-- ui/src/js/06-copy-to-clipboard.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 322bf3a09..b64dfc739 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -767,7 +767,7 @@ padding: 0.75rem; } -.doc pre.highlight { +.doc .listingblock > .content { position: relative; } @@ -781,6 +781,7 @@ font-family: var(--body-font-family); font-size: calc(13.5 / var(--rem-base) * 1rem); line-height: 1; + white-space: nowrap; } .doc .listingblock:hover .source-toolbox { @@ -804,7 +805,7 @@ display: flex; flex-direction: column; align-items: center; - background: transparent; + background: none; border: none; color: inherit; outline: none; diff --git a/ui/src/js/06-copy-to-clipboard.js b/ui/src/js/06-copy-to-clipboard.js index 9fc24394d..6e04eb811 100644 --- a/ui/src/js/06-copy-to-clipboard.js +++ b/ui/src/js/06-copy-to-clipboard.js @@ -50,7 +50,7 @@ copy.appendChild(toast) toolbox.appendChild(copy) } - pre.appendChild(toolbox) + pre.parentNode.appendChild(toolbox) if (copy) copy.addEventListener('click', writeToClipboard.bind(copy, code)) }) From 0f60adc82dd4fa5e1619327b404385231e3b77ea Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 18 Sep 2022 14:19:15 -0600 Subject: [PATCH 14/64] simplify placement of source toolbox --- ui/src/css/doc.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index b64dfc739..f5199385c 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -782,6 +782,8 @@ font-size: calc(13.5 / var(--rem-base) * 1rem); line-height: 1; white-space: nowrap; + transform: scale(0.95); + transform-origin: top right; } .doc .listingblock:hover .source-toolbox { @@ -791,8 +793,6 @@ .doc .source-toolbox .source-lang { text-transform: uppercase; letter-spacing: 0.075em; - font-size: 0.96em; - line-height: 1.0425; } .doc .source-toolbox > :not(:last-child)::after { From 02875762264471b5fb56b1064fb55db769f657e9 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 18 Sep 2022 14:25:26 -0600 Subject: [PATCH 15/64] simplify size of source toolbox --- ui/src/css/doc.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index f5199385c..9e14f8f95 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -779,11 +779,9 @@ right: 0.5rem; color: var(--pre-annotation-font-color); font-family: var(--body-font-family); - font-size: calc(13.5 / var(--rem-base) * 1rem); + font-size: calc(13 / var(--rem-base) * 1rem); line-height: 1; white-space: nowrap; - transform: scale(0.95); - transform-origin: top right; } .doc .listingblock:hover .source-toolbox { From ce1d19520b729dbbb8024f8e02b0b2858ca8d5cd Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 18 Sep 2022 14:38:04 -0600 Subject: [PATCH 16/64] fade away toast on copy button faster --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 9e14f8f95..0dcbb7313 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -840,7 +840,7 @@ color: var(--color-white); cursor: auto; opacity: 0; - transition: opacity 0.5s ease 0.75s; + transition: opacity 0.5s ease 0.5s; } .doc .source-toolbox .copy-toast::after { From e63b737167cc3b06e1420e241baf5c33f12011f3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 19 Sep 2022 03:08:45 -0600 Subject: [PATCH 17/64] scale padding on code block with font size --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 0dcbb7313..7c50716b7 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -764,7 +764,7 @@ box-shadow: inset 0 0 1.75px var(--pre-border-color); display: block; overflow-x: auto; - padding: 0.75rem; + padding: 0.875em; } .doc .listingblock > .content { From 040da8c55fdd89f4ca2c0c8066b3211cd3ac57f9 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 13 Oct 2022 02:04:12 -0600 Subject: [PATCH 18/64] properly map list style for circle and disc --- ui/src/css/doc.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 7c50716b7..eac30a2b1 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -553,11 +553,11 @@ } .doc ul.circle { - list-style-type: square; + list-style-type: circle; } .doc ul.disc { - list-style-type: square; + list-style-type: disc; } .doc ul.square { From bdb1f058c276fb867ad3a21a2d4a92a69f64255b Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 13 Oct 2022 02:21:26 -0600 Subject: [PATCH 19/64] configure unordered list style to inherit by default --- ui/src/css/doc.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index eac30a2b1..ab24a6ee7 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -568,6 +568,12 @@ list-style-type: decimal; } +.doc ul.circle ul:not([class]), +.doc ul.disc ul:not([class]), +.doc ul.square ul:not([class]) { + list-style: inherit; +} + .doc ol.decimal { list-style-type: decimal-leading-zero; } From f98204247325d82b153cdbdfcf2e717b05b113ef Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 13 Oct 2022 02:23:15 -0600 Subject: [PATCH 20/64] move ordered list selector below unordered list selector --- ui/src/css/doc.css | 12 ++++++++---- ui/src/js/02-on-this-page.js | 8 ++++++++ ui/src/js/03-fragment-jumper.js | 2 ++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index ab24a6ee7..baf1c7628 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -25,6 +25,10 @@ } } +.doc [id] { + scroll-margin-top: var(--toc-top); +} + .doc h1, .doc h2, .doc h3, @@ -564,16 +568,16 @@ list-style-type: square; } -.doc ol.arabic { - list-style-type: decimal; -} - .doc ul.circle ul:not([class]), .doc ul.disc ul:not([class]), .doc ul.square ul:not([class]) { list-style: inherit; } +.doc ol.arabic { + list-style-type: decimal; +} + .doc ol.decimal { list-style-type: decimal-leading-zero; } diff --git a/ui/src/js/02-on-this-page.js b/ui/src/js/02-on-this-page.js index 035bea456..918d0292f 100644 --- a/ui/src/js/02-on-this-page.js +++ b/ui/src/js/02-on-this-page.js @@ -29,6 +29,7 @@ var link = document.createElement('a') link.textContent = heading.textContent links[(link.href = '#' + heading.id)] = link + link.addEventListener('click', reclick.bind(null, link)) var listItem = document.createElement('li') listItem.dataset.level = parseInt(heading.nodeName.slice(1), 10) - 1 listItem.appendChild(link) @@ -111,4 +112,11 @@ function getNumericStyleVal (el, prop) { return parseFloat(window.getComputedStyle(el)[prop]) } + + function reclick (el, e) { + if (!e.isTrusted) return + window.setTimeout(function () { + el.click() + }, 0) + } })() diff --git a/ui/src/js/03-fragment-jumper.js b/ui/src/js/03-fragment-jumper.js index 13f687a17..d8aefe820 100644 --- a/ui/src/js/03-fragment-jumper.js +++ b/ui/src/js/03-fragment-jumper.js @@ -1,6 +1,8 @@ ;(function () { 'use strict' + var ie = /*@cc_on!@*/false || !!document.documentMode + if (!ie) return var article = document.querySelector('article.doc') var toolbar = document.querySelector('.toolbar') From 5271bde3ec50ecf16e63d49a8695a245e6c2cd19 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 3 Nov 2022 02:20:01 -0600 Subject: [PATCH 21/64] revert draft solution for issue #194 --- ui/src/css/doc.css | 4 ---- ui/src/js/02-on-this-page.js | 8 -------- ui/src/js/03-fragment-jumper.js | 2 -- 3 files changed, 14 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index baf1c7628..72bc433a1 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -25,10 +25,6 @@ } } -.doc [id] { - scroll-margin-top: var(--toc-top); -} - .doc h1, .doc h2, .doc h3, diff --git a/ui/src/js/02-on-this-page.js b/ui/src/js/02-on-this-page.js index 918d0292f..035bea456 100644 --- a/ui/src/js/02-on-this-page.js +++ b/ui/src/js/02-on-this-page.js @@ -29,7 +29,6 @@ var link = document.createElement('a') link.textContent = heading.textContent links[(link.href = '#' + heading.id)] = link - link.addEventListener('click', reclick.bind(null, link)) var listItem = document.createElement('li') listItem.dataset.level = parseInt(heading.nodeName.slice(1), 10) - 1 listItem.appendChild(link) @@ -112,11 +111,4 @@ function getNumericStyleVal (el, prop) { return parseFloat(window.getComputedStyle(el)[prop]) } - - function reclick (el, e) { - if (!e.isTrusted) return - window.setTimeout(function () { - el.click() - }, 0) - } })() diff --git a/ui/src/js/03-fragment-jumper.js b/ui/src/js/03-fragment-jumper.js index d8aefe820..13f687a17 100644 --- a/ui/src/js/03-fragment-jumper.js +++ b/ui/src/js/03-fragment-jumper.js @@ -1,8 +1,6 @@ ;(function () { 'use strict' - var ie = /*@cc_on!@*/false || !!document.documentMode - if (!ie) return var article = document.querySelector('article.doc') var toolbar = document.querySelector('.toolbar') From 1774509de6dc1fda8be56594c6994c7056d789c4 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 3 Nov 2022 03:55:13 -0600 Subject: [PATCH 22/64] prevent overscroll on explore panel --- ui/src/css/nav.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 4aad9fd6a..3ae573db7 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -222,6 +222,7 @@ html.is-clipped--nav { padding: 0.5rem 0.75rem 0 0.75rem; margin: 0; overflow-y: scroll; + overscroll-behavior: none; max-height: 100%; display: block; } From 8352cb194be914e3f7d3005e0fbd8211f289113e Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 20 Nov 2022 14:13:05 -0700 Subject: [PATCH 23/64] set z-index on toast for copy to clipboard function --- ui/src/css/doc.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 72bc433a1..b8c42ef3c 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -847,6 +847,7 @@ cursor: auto; opacity: 0; transition: opacity 0.5s ease 0.5s; + z-index: 1; } .doc .source-toolbox .copy-toast::after { From 9896a0bfd07b2b943eff3cbe93d89711d8de740a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 23 Nov 2022 16:52:01 -0700 Subject: [PATCH 24/64] assign z-index to source-toolbox instead of copy toast --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index b8c42ef3c..c95250141 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -788,6 +788,7 @@ font-size: calc(13 / var(--rem-base) * 1rem); line-height: 1; white-space: nowrap; + z-index: 1; } .doc .listingblock:hover .source-toolbox { @@ -847,7 +848,6 @@ cursor: auto; opacity: 0; transition: opacity 0.5s ease 0.5s; - z-index: 1; } .doc .source-toolbox .copy-toast::after { From 8f8ed046f0b4141e98aa6736753abf31fef546e0 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 14 Dec 2022 03:53:54 -0700 Subject: [PATCH 25/64] consolidate margin-top for tableblock and following sibling --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index c95250141..abe9831b4 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -252,9 +252,9 @@ .doc table.tableblock { font-size: calc(15 / var(--rem-base) * 1rem); - margin: 1.5rem 0 0; } +.doc table.tableblock, .doc table.tableblock + * { margin-top: 1.5rem; } From d32b864a02c753f79d03f6c32e7d47e4b3869395 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 17 Dec 2022 03:16:25 -0700 Subject: [PATCH 26/64] set tab size to 4 --- ui/src/css/base.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/css/base.css b/ui/src/css/base.css index d9aaf73ec..7cdad98a2 100644 --- a/ui/src/css/base.css +++ b/ui/src/css/base.css @@ -23,6 +23,7 @@ body { font-family: var(--body-font-family); line-height: var(--body-line-height); margin: 0; + tab-size: 4; word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */ } From 97a013a0f550ef1819b4c3a1fc6b073cf6fda002 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 18 Jul 2023 00:36:25 -0600 Subject: [PATCH 27/64] prevent content in source toolbox from being selected --- ui/src/css/doc.css | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index abe9831b4..aa6b2a801 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -787,6 +787,7 @@ font-family: var(--body-font-family); font-size: calc(13 / var(--rem-base) * 1rem); line-height: 1; + user-select: none; white-space: nowrap; z-index: 1; } From 39f1026dc278a9eca76688d7cd1f129403154465 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 15 Sep 2023 14:48:07 -0600 Subject: [PATCH 28/64] add support for text alignment roles (text-*) --- ui/src/css/doc.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index aa6b2a801..5b78e9a9b 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -219,6 +219,22 @@ clear: both; } +.doc .text-left { + text-align: left; +} + +.doc .text-center { + text-align: center; +} + +.doc .text-right { + text-align: right; +} + +.doc .text-justify { + text-align: justify; +} + .doc .stretch { width: 100%; } From cf38f6cea7c3052173e6c6dccd0f928771f2f5d4 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 20 Sep 2023 02:17:09 -0600 Subject: [PATCH 29/64] restore global word-wrap setting on AsciiDoc table cells --- ui/src/css/doc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 5b78e9a9b..de0226c89 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -279,6 +279,10 @@ margin-top: 0.5rem; } +.doc td.tableblock > .content { + word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */ +} + .doc td.tableblock > .content > :first-child { margin-top: 0; } From 85e000deaffa174faddad088e48e16857106c5fc Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 24 Sep 2023 13:48:55 -0600 Subject: [PATCH 30/64] add support for pre-wrap role on inline --- ui/src/css/doc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index de0226c89..66cb22490 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -1037,6 +1037,10 @@ word-wrap: normal; } +.doc :not(pre).pre-wrap { + white-space: pre-wrap; +} + #footnotes { font-size: 0.85em; line-height: 1.5; From 7d606aa81de4777067cdae3f11e4879c867b38b0 Mon Sep 17 00:00:00 2001 From: Adrian Hall Date: Wed, 4 Oct 2023 06:46:15 +0000 Subject: [PATCH 31/64] resolves #212 add styles to support big and small roles --- ui/src/css/doc.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 66cb22490..38a3e961f 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -239,6 +239,14 @@ width: 100%; } +.doc .big { + font-size: larger; +} + +.doc .small { + font-size: smaller; +} + .doc .underline { text-decoration: underline; } From 85155f17e166ff5a41f856b1c9d46f72241bd407 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 4 Oct 2023 02:45:48 -0600 Subject: [PATCH 32/64] reduce font size of pre inside table --- ui/src/css/doc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 38a3e961f..7bdd91371 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -283,6 +283,10 @@ margin-top: 1.5rem; } +.doc table.tableblock pre { + font-size: inherit; +} + .doc p.tableblock + p.tableblock { margin-top: 0.5rem; } From ded0bfbbcdd548beef3c8f68886455e21686fce3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 4 Nov 2023 01:56:32 -0600 Subject: [PATCH 33/64] fix margin around descriptions in description list * apply margin to top of subsequent terms (using dd + dt selector) instead of end of description * add margin top to principal text --- ui/src/css/doc.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 7bdd91371..5cb87315f 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -909,11 +909,12 @@ } .doc .dlist dd { - margin: 0 0 0.25rem 1.5rem; + margin: 0 0 0 1.5rem; } -.doc .dlist dd:last-of-type { - margin-bottom: 0; +.doc .dlist dd + dt, +.doc .dlist dd > p:first-child { + margin-top: 0.5rem; } .doc td.hdlist1, From 04dddc1d771e5d0a581e5917b49ce3deedf582ee Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 18 Nov 2023 00:52:46 -0700 Subject: [PATCH 34/64] replace String#substr with String#slice and configure lint rule to enforce --- ui/src/helpers/relativize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/helpers/relativize.js b/ui/src/helpers/relativize.js index 6fdfb45e6..ea910a016 100644 --- a/ui/src/helpers/relativize.js +++ b/ui/src/helpers/relativize.js @@ -11,8 +11,8 @@ module.exports = (to, from, ctx) => { let hash = '' const hashIdx = to.indexOf('#') if (~hashIdx) { - hash = to.substr(hashIdx) - to = to.substr(0, hashIdx) + hash = to.slice(hashIdx) + to = to.slice(0, hashIdx) } return to === from ? hash || (isDir(to) ? './' : path.basename(to)) From 5affa0a8bae79c1da6036e76f24d76f8d12ae0a7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 20 Nov 2023 03:05:20 -0700 Subject: [PATCH 35/64] update relativize helper to check to before resolving from --- ui/src/helpers/relativize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/helpers/relativize.js b/ui/src/helpers/relativize.js index ea910a016..b30293c96 100644 --- a/ui/src/helpers/relativize.js +++ b/ui/src/helpers/relativize.js @@ -4,9 +4,9 @@ const { posix: path } = require('path') module.exports = (to, from, ctx) => { if (!to) return '#' + if (to.charAt() !== '/') return to // NOTE only legacy invocation provides both to and from if (!ctx) from = (ctx = from).data.root.page.url - if (to.charAt() !== '/') return to if (!from) return (ctx.data.root.site.path || '') + to let hash = '' const hashIdx = to.indexOf('#') From a8df79aa53e274b0df7fff690a6ca61d541b64fb Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 20 Nov 2023 03:08:29 -0700 Subject: [PATCH 36/64] fix logic in relativize when html-url-extension-style is drop (see antora/antora#1094) --- ui/src/helpers/relativize.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/helpers/relativize.js b/ui/src/helpers/relativize.js index b30293c96..798931915 100644 --- a/ui/src/helpers/relativize.js +++ b/ui/src/helpers/relativize.js @@ -14,9 +14,9 @@ module.exports = (to, from, ctx) => { hash = to.slice(hashIdx) to = to.slice(0, hashIdx) } - return to === from - ? hash || (isDir(to) ? './' : path.basename(to)) - : (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash) + if (to === from) return hash || (isDir(to) ? './' : path.basename(to)) + const rel = path.relative(path.dirname(from + '.'), to) + return rel ? (isDir(to) ? rel + '/' : rel) + hash : (isDir(to) ? './' : '../' + path.basename(to)) + hash } function isDir (str) { From 3ddc68ec5f87846eaa8cc734f82d3b04578150d3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 23 Nov 2023 02:23:52 -0700 Subject: [PATCH 37/64] only style code as block if direct descendant of pre.highlight --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 5cb87315f..6ce32ac8f 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -795,7 +795,7 @@ white-space: pre-wrap; } -.doc pre.highlight code, +.doc pre.highlight > code, .doc .listingblock pre:not(.highlight), .doc .literalblock pre { background: var(--pre-background); From 36ee8a09138c5621e8e99d8c2ff6b4cf1d1cb89b Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 25 Nov 2023 02:51:14 -0700 Subject: [PATCH 38/64] qualify td.icon selector --- ui/src/css/doc.css | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 6ce32ac8f..a1a4f55f6 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -424,7 +424,7 @@ word-wrap: anywhere; } -.doc .admonitionblock .icon { +.doc .admonitionblock td.icon { position: absolute; top: 0; left: 0; @@ -438,41 +438,41 @@ transform: translate(-0.5rem, -50%); } -.doc .admonitionblock.caution .icon { +.doc .admonitionblock td.icon i { + display: inline-flex; + align-items: center; + height: 100%; +} + +.doc .admonitionblock td.icon i::after { + content: attr(title); +} + +.doc .admonitionblock.caution td.icon { background-color: var(--caution-color); color: var(--caution-on-color); } -.doc .admonitionblock.important .icon { +.doc .admonitionblock.important td.icon { background-color: var(--important-color); color: var(--important-on-color); } -.doc .admonitionblock.note .icon { +.doc .admonitionblock.note td.icon { background-color: var(--note-color); color: var(--note-on-color); } -.doc .admonitionblock.tip .icon { +.doc .admonitionblock.tip td.icon { background-color: var(--tip-color); color: var(--tip-on-color); } -.doc .admonitionblock.warning .icon { +.doc .admonitionblock.warning td.icon { background-color: var(--warning-color); color: var(--warning-on-color); } -.doc .admonitionblock .icon i { - display: inline-flex; - align-items: center; - height: 100%; -} - -.doc .admonitionblock .icon i::after { - content: attr(title); -} - .doc .imageblock, .doc .videoblock { display: flex; From 65de4b2f334bf051e782ffca0b87c87f00c9acf3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 25 Nov 2023 02:53:10 -0700 Subject: [PATCH 39/64] consistently style first content block of sidebar with and without title --- ui/src/css/doc.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index a1a4f55f6..17b474328 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -781,10 +781,11 @@ font-size: calc(22.5 / var(--rem-base) * 1rem); font-weight: var(--alt-heading-font-weight); line-height: 1.3; - margin-bottom: -0.3em; + margin-bottom: 0.5rem; text-align: center; } +.doc .sidebarblock > .content > .title + *, .doc .sidebarblock > .content > :not(.title):first-child { margin-top: 0; } From 37b3a3839d1089aaaf4f8cffa51b41b99051392f Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 25 Nov 2023 04:28:15 -0700 Subject: [PATCH 40/64] resolves #196 use i tag instead of td tag to apply admonition label more accurately --- ui/src/css/doc.css | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 17b474328..721284fb9 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -425,50 +425,54 @@ } .doc .admonitionblock td.icon { - position: absolute; - top: 0; - left: 0; font-size: calc(15 / var(--rem-base) * 1rem); - padding: 0 0.5rem; - height: 1.25rem; + left: 0; line-height: 1; - font-weight: var(--admonition-label-font-weight); - text-transform: uppercase; - border-radius: 0.45rem; + padding: 0; + position: absolute; + top: 0; transform: translate(-0.5rem, -50%); } .doc .admonitionblock td.icon i { - display: inline-flex; align-items: center; - height: 100%; + border-radius: 0.45rem; + display: inline-flex; + filter: initial; + height: 1.25rem; + padding: 0 0.5rem; + vertical-align: initial; + width: fit-content; } .doc .admonitionblock td.icon i::after { content: attr(title); + font-weight: var(--admonition-label-font-weight); + font-style: normal; + text-transform: uppercase; } -.doc .admonitionblock.caution td.icon { +.doc .admonitionblock td.icon i.icon-caution { background-color: var(--caution-color); color: var(--caution-on-color); } -.doc .admonitionblock.important td.icon { +.doc .admonitionblock td.icon i.icon-important { background-color: var(--important-color); color: var(--important-on-color); } -.doc .admonitionblock.note td.icon { +.doc .admonitionblock td.icon i.icon-note { background-color: var(--note-color); color: var(--note-on-color); } -.doc .admonitionblock.tip td.icon { +.doc .admonitionblock td.icon i.icon-tip { background-color: var(--tip-color); color: var(--tip-on-color); } -.doc .admonitionblock.warning td.icon { +.doc .admonitionblock td.icon i.icon-warning { background-color: var(--warning-color); color: var(--warning-on-color); } From de51737a833dd2d507e2a694968c7ca6a01db862 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 30 Nov 2023 01:39:07 -0700 Subject: [PATCH 41/64] slightly indent list of versions in explore panel to make association more clear --- ui/src/css/nav.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 3ae573db7..bd33275cd 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -251,7 +251,7 @@ html.is-clipped--nav { display: flex; flex-wrap: wrap; padding-left: 0; - margin-top: -0.25rem; + margin: -0.25rem -0.375rem 0 0.375rem; line-height: 1; list-style: none; } From 068bff84e6e4ce743a8aae75d6670f7ee43c3ec2 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 30 Nov 2023 01:55:24 -0700 Subject: [PATCH 42/64] resolves #215 hide version in explore panel if component is versionless and display version is default --- ui/src/partials/nav-explore.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/partials/nav-explore.hbs b/ui/src/partials/nav-explore.hbs index 730b5f291..b0406d130 100644 --- a/ui/src/partials/nav-explore.hbs +++ b/ui/src/partials/nav-explore.hbs @@ -2,13 +2,14 @@ {{#if page.component}}
{{page.component.title}} - {{page.componentVersion.displayVersion}} + {{#if (or page.componentVersion.version (ne page.componentVersion.displayVersion 'default'))}}{{page.componentVersion.displayVersion}}{{/if}}
{{/if}}
    {{#each site.components}}
  • {{{./title}}} + {{#if (or ./versions.[1] ./versions.[0].version (ne ./versions.[0].displayVersion 'default'))}}
      {{#each ./versions}}
    • - {{{./title}}} + {{#if (or ./versions.[1] ./versions.[0].version (ne ./versions.[0].displayVersion 'default'))}}
        {{#each ./versions}} From 38ac0496b3888f31da947a939c12e5a803b82381 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 18 Jan 2024 18:20:15 -0700 Subject: [PATCH 46/64] tweak spacing between items in explore panel; add hanging indent for wrapped titles --- ui/src/css/nav.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index bdc86ab55..780da2b8a 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -219,7 +219,7 @@ html.is-clipped--nav { flex-grow: 1; box-shadow: inset 0 1px 5px var(--nav-panel-divider-color); background: var(--nav-secondary-background); - padding: 0.5rem 0.75rem 0 0.75rem; + padding: 0.75rem 0.75rem 0 0.75rem; margin: 0; overflow-y: scroll; overscroll-behavior: none; @@ -236,7 +236,7 @@ html.is-clipped--nav { } .nav-panel-explore .component + .component { - margin-top: 0.5rem; + margin-top: 0.75rem; } .nav-panel-explore .component:last-child { @@ -245,13 +245,14 @@ html.is-clipped--nav { .nav-panel-explore .component .title { font-weight: var(--body-font-weight-bold); + text-indent: 0.35rem hanging; } .nav-panel-explore .versions { display: flex; flex-wrap: wrap; padding-left: 0; - margin: -0.25rem -0.375rem 0 0.375rem; + margin: -0.125rem -0.375rem 0 0.375rem; line-height: 1; list-style: none; } From c19c052b693ee0be490b0a2376e69fe663346ef1 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 18 Jan 2024 18:25:09 -0700 Subject: [PATCH 47/64] adjust hanging indent in nav explore panel --- ui/src/css/nav.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/nav.css b/ui/src/css/nav.css index 780da2b8a..d13239484 100644 --- a/ui/src/css/nav.css +++ b/ui/src/css/nav.css @@ -245,7 +245,7 @@ html.is-clipped--nav { .nav-panel-explore .component .title { font-weight: var(--body-font-weight-bold); - text-indent: 0.35rem hanging; + text-indent: 0.375rem hanging; } .nav-panel-explore .versions { From 2400cf67653aac68a259ca63d62e31dce6c518c2 Mon Sep 17 00:00:00 2001 From: Dmitriy Razmakhov <4627811-cpkio@users.noreply.github.com> Date: Tue, 6 Feb 2024 21:02:47 +0300 Subject: [PATCH 48/64] ensure discrete headings are not included in page TOC --- ui/src/js/02-on-this-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/js/02-on-this-page.js b/ui/src/js/02-on-this-page.js index 035bea456..3271eacae 100644 --- a/ui/src/js/02-on-this-page.js +++ b/ui/src/js/02-on-this-page.js @@ -14,7 +14,7 @@ var headingSelector = [articleSelector] if (level) { for (var l = 1; l <= level; l++) headingSelector.push((l === 2 ? '.sectionbody>' : '') + '.sect' + l) - headingSelector.push('h' + (level + 1) + '[id]') + headingSelector.push('h' + (level + 1) + '[id]' + (level > 1 ? ':not(.discrete)' : '')) } else { headingSelector.push('h1[id].sect0') } From 8c70bd55206a1e43c81364936d3a5cc32e843be3 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 13 Feb 2024 02:08:27 -0700 Subject: [PATCH 49/64] allow block SVG image with no width specified to stetch to width of page --- ui/src/css/doc.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 721284fb9..4e337d383 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -484,16 +484,29 @@ align-items: center; } +.doc .imageblock .content { + align-self: stretch; + text-align: center; +} + .doc .imageblock.text-left, .doc .videoblock.text-left { align-items: flex-start; } +.doc .imageblock.text-left .content { + text-align: left; +} + .doc .imageblock.text-right, .doc .videoblock.text-right { align-items: flex-end; } +.doc .imageblock.text-right .content { + text-align: right; +} + .doc .imageblock img, .doc .imageblock object, .doc .imageblock svg, From 800e3e3d8c6382faa0e788637b28bff82f7ae703 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 14 Feb 2024 02:35:23 -0700 Subject: [PATCH 50/64] remove unused selector for is-hidden-toc in toc.css --- ui/src/css/toc.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/src/css/toc.css b/ui/src/css/toc.css index 62f36d767..01a77c2aa 100644 --- a/ui/src/css/toc.css +++ b/ui/src/css/toc.css @@ -91,7 +91,3 @@ .sidebar.toc .toc-menu a:focus { background: var(--panel-background); } - -.toc .toc-menu .is-hidden-toc { - display: none !important; -} From 892bb95121c63adda79b64aa16f3bfb45522208c Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 26 Mar 2025 14:16:40 -0600 Subject: [PATCH 51/64] relativize link to start page in article of 404 page --- ui/src/partials/article-404.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/partials/article-404.hbs b/ui/src/partials/article-404.hbs index 436b28011..e88599594 100644 --- a/ui/src/partials/article-404.hbs +++ b/ui/src/partials/article-404.hbs @@ -1,7 +1,7 @@

        {{{or page.title 'Page Not Found'}}}

        -

        The page you’re looking for does not exist. It may have been moved. You can{{#with site.homeUrl}} return to the start page, or{{/with}} follow one of the links in the navigation to the left.

        +

        The page you’re looking for does not exist. It may have been moved. You can{{#with site.homeUrl}} return to the start page, or{{/with}} follow one of the links in the navigation to the left.

        If you arrived on this page by clicking on a link, please notify the owner of the site that the link is broken. From 25de61188fe8915ce25c69544c07b2e5a67d31cc Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 13 Sep 2025 11:34:26 -0600 Subject: [PATCH 52/64] add CSS to support built-in roles hide and is-hidden --- ui/src/css/base.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/css/base.css b/ui/src/css/base.css index 7cdad98a2..70b28f1ad 100644 --- a/ui/src/css/base.css +++ b/ui/src/css/base.css @@ -100,6 +100,11 @@ object[type="image/svg+xml"]:not([width]) { width: fit-content; } +.hide, +.is-hidden { + display: none !important; +} + ::placeholder { opacity: 0.5; } From 6d5a6c6e055479cae86b7994cffb49b5844b1aac Mon Sep 17 00:00:00 2001 From: Nabil Maynard Date: Mon, 20 Oct 2025 10:34:03 +0100 Subject: [PATCH 53/64] resolves #234 transfer all nodes when converting literal block to CLI prompt --- ui/src/js/06-copy-to-clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/js/06-copy-to-clipboard.js b/ui/src/js/06-copy-to-clipboard.js index 6e04eb811..03096f159 100644 --- a/ui/src/js/06-copy-to-clipboard.js +++ b/ui/src/js/06-copy-to-clipboard.js @@ -21,7 +21,7 @@ pre.classList.add('highlightjs', 'highlight') ;(code = document.createElement('code')).className = 'language-console hljs' code.dataset.lang = 'console' - code.appendChild(pre.firstChild) + while (pre.hasChildNodes()) code.appendChild(pre.firstChild) pre.appendChild(code) } else { return From f1056d9640764ee27d94f98351ccac8469175d9e Mon Sep 17 00:00:00 2001 From: Nabil Maynard Date: Sun, 9 Nov 2025 00:23:04 +0000 Subject: [PATCH 54/64] resolves #235 escape double quotes when detagging text --- ui/src/helpers/detag.js | 9 ++++++++- ui/src/partials/head-info.hbs | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/src/helpers/detag.js b/ui/src/helpers/detag.js index e32f14766..17e65bdcb 100644 --- a/ui/src/helpers/detag.js +++ b/ui/src/helpers/detag.js @@ -2,4 +2,11 @@ const TAG_ALL_RX = /<[^>]+>/g -module.exports = (html) => html && html.replace(TAG_ALL_RX, '') +module.exports = (html, options) => { + if (!html) return html + let result = html.replace(TAG_ALL_RX, '') + if (options.hash.attribute) { + result = result.replace(/"/g, '"') + } + return result +} diff --git a/ui/src/partials/head-info.hbs b/ui/src/partials/head-info.hbs index 07efba14d..853498662 100644 --- a/ui/src/partials/head-info.hbs +++ b/ui/src/partials/head-info.hbs @@ -10,7 +10,7 @@ {{/with}} {{/unless}} {{#with page.description}} - + {{/with}} {{#with page.keywords}} From e55ee921c83f5f64513a99b4d333f292a2192156 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 8 Nov 2025 17:35:13 -0700 Subject: [PATCH 55/64] consolidate detag logic and move rx to const --- ui/src/helpers/detag.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ui/src/helpers/detag.js b/ui/src/helpers/detag.js index 17e65bdcb..e6e70e249 100644 --- a/ui/src/helpers/detag.js +++ b/ui/src/helpers/detag.js @@ -1,12 +1,7 @@ 'use strict' const TAG_ALL_RX = /<[^>]+>/g +const QUOT_RX = /"/g -module.exports = (html, options) => { - if (!html) return html - let result = html.replace(TAG_ALL_RX, '') - if (options.hash.attribute) { - result = result.replace(/"/g, '"') - } - return result -} +module.exports = (html, { hash: { attribute } }) => + html && (attribute ? html.replace(TAG_ALL_RX, '').replace(QUOT_RX, '"') : html.replace(TAG_ALL_RX, '')) From 8837768873c639e47315469dc352e463cdf4b18d Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 4 Feb 2026 09:35:10 -0700 Subject: [PATCH 56/64] tweak line height of breadcrumbs --- ui/src/css/breadcrumbs.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/breadcrumbs.css b/ui/src/css/breadcrumbs.css index be1114028..4bd05a39c 100644 --- a/ui/src/css/breadcrumbs.css +++ b/ui/src/css/breadcrumbs.css @@ -2,7 +2,7 @@ display: none; flex: 1 1; padding: 0 0.5rem 0 0.75rem; - line-height: var(--nav-line-height); + line-height: 1.25; } @media screen and (min-width: 1024px) { From 39a76a1444700f947bb1a06ca6253f2dd2b38a23 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 4 Feb 2026 10:11:44 -0700 Subject: [PATCH 57/64] resolves #237 add script to truncate breadcrumbs to fit in the toolbar --- ui/src/js/07-breadcrumbs.js | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ui/src/js/07-breadcrumbs.js diff --git a/ui/src/js/07-breadcrumbs.js b/ui/src/js/07-breadcrumbs.js new file mode 100644 index 000000000..1e5b80d31 --- /dev/null +++ b/ui/src/js/07-breadcrumbs.js @@ -0,0 +1,38 @@ +;(function () { + 'use strict' + + function truncate (toolbar, breadcrumbs, truncationLength) { + if (toolbar.scrollHeight === toolbar.getBoundingClientRect().height) return + breadcrumbs = breadcrumbs.slice(1, -1).reverse() + while (breadcrumbs.length && toolbar.scrollHeight > toolbar.getBoundingClientRect().height) { + var breadcrumb = breadcrumbs.pop() + var text = (breadcrumb = breadcrumb.querySelector('a') || breadcrumb).innerText.trim() + if (text.length > truncationLength) { + breadcrumb.setAttribute('title', text) + var offset = truncationLength - 3 + var truncatedText = text.slice(0, offset) + (text.charAt(offset) === ' ' ? ' ' : '') + '...' + breadcrumb.innerText = truncatedText + } + } + } + + function onResize (toolbar, breadcrumbs, truncationLength) { + breadcrumbs.forEach(function (breadcrumb) { + if (!(breadcrumb = breadcrumb.querySelector('a') || breadcrumb).hasAttribute('title')) return + breadcrumb.innerText = breadcrumb.getAttribute('title') + breadcrumb.removeAttribute('title') + }) + truncate(toolbar, breadcrumbs, truncationLength) + } + + ;(function () { + var toolbar = document.querySelector('.toolbar') + if (!toolbar) return + var breadcrumbs = Array.prototype.slice.call(toolbar.querySelectorAll('.breadcrumbs li') || []) + if (breadcrumbs.length < 3) return + var truncationLength = parseInt(toolbar.querySelector('.breadcrumbs').dataset.truncationLength || 15, 10) + if (truncationLength < 0) return + truncate(toolbar, breadcrumbs, truncationLength) + window.addEventListener('resize', onResize.bind(null, toolbar, breadcrumbs, truncationLength)) + })() +})() From 8cf1cf0b577fe450c8b7a44335701f510a1cd464 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 30 May 2026 13:03:01 -0600 Subject: [PATCH 58/64] resolves #239 increase font size of lead paragraph --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 4e337d383..bea7390b1 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -194,7 +194,7 @@ } .doc .paragraph.lead > p { - font-size: calc(18 / var(--rem-base) * 1rem); + font-size: calc(19.5 / var(--rem-base) * 1rem); } .doc .right { From 39385aa7f9d4fe12de59d44c438b725910a641de Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 15 Jun 2026 14:30:26 -0600 Subject: [PATCH 59/64] don't present component in nav expore if latest has no navigation --- ui/src/partials/nav-explore.hbs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/partials/nav-explore.hbs b/ui/src/partials/nav-explore.hbs index 1b14168b7..bbddaa6d3 100644 --- a/ui/src/partials/nav-explore.hbs +++ b/ui/src/partials/nav-explore.hbs @@ -7,6 +7,7 @@ {{/if}}

          {{#each site.components}} + {{#if ./latest.navigation}}
        • {{#if (or ./versions.[1] ./versions.[0].version (ne ./versions.[0].displayVersion 'default'))}} @@ -21,6 +22,7 @@
        {{/if}} + {{/if}} {{/each}}
      From b867b0e564b172f1d69e5bbe0ce1a7d19209f667 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 15 Jul 2026 14:03:46 -0600 Subject: [PATCH 60/64] resolves #241 align list markers for checklists consistently with the Asciidoctor default stylesheet --- ui/src/css/doc.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index bea7390b1..3ffa7efa6 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -648,15 +648,14 @@ } .doc ul.checklist { - padding-left: 1.75rem; + padding-left: 1rem; } .doc ul.checklist p > i.fa-check-square-o:first-child, .doc ul.checklist p > i.fa-square-o:first-child { display: inline-flex; justify-content: center; - width: 1.25rem; - margin-left: -1.25rem; + width: 1rem; } .doc ul.checklist i.fa-check-square-o::before { From 7c8629253d3ef9e64a52070285b494df1e43f437 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 16 Jul 2026 11:56:07 -0600 Subject: [PATCH 61/64] make checkbox 1em instead of 1rem --- ui/src/css/doc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/css/doc.css b/ui/src/css/doc.css index 3ffa7efa6..81babc982 100644 --- a/ui/src/css/doc.css +++ b/ui/src/css/doc.css @@ -655,7 +655,7 @@ .doc ul.checklist p > i.fa-square-o:first-child { display: inline-flex; justify-content: center; - width: 1rem; + width: 1em; } .doc ul.checklist i.fa-check-square-o::before { From a3a60c791f4faca35e47d5a246170723f014bb30 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 29 Jul 2026 10:40:40 +0200 Subject: [PATCH 62/64] jump to anchor instantly on page load to avoid timing issues with smooth scroll Manual port of upstream antora-ui-default commit aac2ae9 (the patch does not apply verbatim because our load handler signature drifted). Belongs with f51a4e0 (enable smooth scroll by default), which this batch also ports: without it, the on-load fragment jump animates from the top of every page. --- ui/src/js/03-fragment-jumper.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/js/03-fragment-jumper.js b/ui/src/js/03-fragment-jumper.js index 13f687a17..940857b0a 100644 --- a/ui/src/js/03-fragment-jumper.js +++ b/ui/src/js/03-fragment-jumper.js @@ -3,6 +3,7 @@ var article = document.querySelector('article.doc') var toolbar = document.querySelector('.toolbar') + var supportsScrollToOptions = 'scrollTo' in document.documentElement function decodeFragment (hash) { return hash && (~hash.indexOf('%') ? decodeURIComponent(hash) : hash).slice(1) @@ -18,14 +19,16 @@ window.location.hash = '#' + this.id e.preventDefault() } - window.scrollTo(0, computePosition(this, 0) - toolbar.getBoundingClientRect().bottom) + var y = computePosition(this, 0) - toolbar.getBoundingClientRect().bottom + var instant = e === false && supportsScrollToOptions + instant ? window.scrollTo({ left: 0, top: y, behavior: 'instant' }) : window.scrollTo(0, y) } window.addEventListener('load', function jumpOnLoad () { var fragment, target if ((fragment = decodeFragment(window.location.hash)) && (target = document.getElementById(fragment))) { - jumpToAnchor.bind(target)() - setTimeout(jumpToAnchor.bind(target), 0) + jumpToAnchor.call(target, false) + setTimeout(jumpToAnchor.bind(target, false), 250) } window.removeEventListener('load', jumpOnLoad) }) From 12a5ec045698b69917fe948a78a55876534a6934 Mon Sep 17 00:00:00 2001 From: Lars Francke Date: Wed, 29 Jul 2026 10:40:40 +0200 Subject: [PATCH 63/64] chore: Renumber the search script to resolve the 07- prefix collision Upstream's breadcrumb-truncation script arrived as 07-breadcrumbs.js; our search script already used the 07- prefix. The bundle concatenates the numbered scripts in sorted order and the two are independent, so this only restores the one-number-one-script convention. Co-Authored-By: Claude Fable 5 --- ui/src/js/{07-search.js => 08-search.js} | 0 ui/src/partials/footer-scripts.hbs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename ui/src/js/{07-search.js => 08-search.js} (100%) diff --git a/ui/src/js/07-search.js b/ui/src/js/08-search.js similarity index 100% rename from ui/src/js/07-search.js rename to ui/src/js/08-search.js diff --git a/ui/src/partials/footer-scripts.hbs b/ui/src/partials/footer-scripts.hbs index b22e1a3c9..171536393 100644 --- a/ui/src/partials/footer-scripts.hbs +++ b/ui/src/partials/footer-scripts.hbs @@ -2,7 +2,7 @@