spec-up-t 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/compiled/body.js +7 -5
- package/assets/compiled/head.css +5 -6
- package/assets/css/backToTop.css +1 -0
- package/assets/css/header-navbar.css +1 -1
- package/assets/css/pdf-download.css +27 -12
- package/assets/css/pdf-styles.css +174 -0
- package/assets/css/sidebar-toc.css +109 -2
- package/assets/css/terms-and-definitions.css +65 -47
- package/assets/js/collapse-meta-info.js +5 -1
- package/assets/js/collapsibleMenu.js +133 -0
- package/assets/js/edit-term-buttons.js +19 -4
- package/assets/js/fix-last-dd.js +44 -0
- package/assets/js/highlightMenuItems.js +5 -0
- package/assets/js/insert-trefs.js +2 -1
- package/assets/js/pdf-download.js +18 -5
- package/index.js +100 -54
- package/package.json +1 -1
- package/src/asset-map.json +2 -2
- package/src/create-pdf.js +141 -390
- package/templates/template.html +3 -0
- package/assets/css/collapse-meta-info.css +0 -40
- package/assets/css/terms-and-definitions.1.css +0 -223
- package/assets/js/index.1.js +0 -137
- package/assets/js/insert-xrefs.1.js +0 -372
- package/index.new.js +0 -662
package/assets/compiled/body.js
CHANGED
|
@@ -95,21 +95,23 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
95
95
|
* @license MIT
|
|
96
96
|
* @since 2024-06-09
|
|
97
97
|
*/
|
|
98
|
-
function editTermButtons(){const
|
|
98
|
+
function editTermButtons(){const e=((t=specConfig.spec_directory).startsWith("./")?t=t.substring(2):t.startsWith("/")&&(t=t.substring(1)),t.endsWith("/")&&(t=t.slice(0,-1)),t);var t;document.querySelectorAll('dt:has(> span[id^="term:"])').forEach(t=>{const n=function(e){let t=e;for(;t.querySelector('span[id^="term:"]');)t=t.querySelector('span[id^="term:"]');return t}(t),r=n.getAttribute("id").split(":")[1],i=specConfig.source.branch||"main";n.innerHTML+=`<span class="edit-term-buttons">\n <a title="Link to the term file in the Github repo in a new tab" target="_blank" rel="noopener" \n href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/blob/${i}/${e}/${specConfig.spec_terms_directory}/${r}.md" \n class="p-1 edit-term-button btn">\n <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16" style="shape-rendering: geometricPrecision;">\n <path fill-rule="evenodd" d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/>\n </svg>\n </a>\n <a title="Link to a GitHub page that shows a history of the edits in a new tab" target="_blank" rel="noopener" \n href="https://github.com/${specConfig.source.account}/${specConfig.source.repo}/commits/${i}/${e}/${specConfig.spec_terms_directory}/${r}.md" \n class="p-1 history-term-button btn">\n <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16" style="shape-rendering: geometricPrecision;">\n <path fill-rule="evenodd" d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z"/>\n <path fill-rule="evenodd" d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z"/>\n <circle cx="8" cy="8" r="0.3"/>\n </svg>\n </a>\n </span>`})}document.addEventListener("DOMContentLoaded",(function(){editTermButtons()}));
|
|
99
99
|
function createAlphabetIndex(){const e=document.getElementById("terminology-section-utility-container"),t=document.querySelector(".terms-and-definitions-list").querySelectorAll("dt"),n={};t.forEach(e=>{const t=e.querySelector("span");if(t&&t.id){const e=t.id,o=e.charAt(e.indexOf("term:")+5).toUpperCase();n[o]||(n[o]=t.id)}});const o=document.createElement("div");o.className="alphabet-index-container";const a=document.createElement("p");a.className="number-of-terms",a.textContent=`– There are ${t.length} terms –`,e.appendChild(a),Object.keys(n).sort((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase())).forEach(e=>{const t=document.createElement("a");t.href="#"+n[e],t.textContent=e,o.appendChild(t)}),e.appendChild(o)}document.addEventListener("DOMContentLoaded",(function(){createAlphabetIndex()}));
|
|
100
100
|
function inPageSearch(){const t=document.getElementById("terminology-section-utility-container"),e=specConfig.searchHighlightStyle||"ssi",n="search-h7vc6omi2hr2880",i=document.querySelector(".terms-and-definitions-list"),o=document.createElement("div");o.setAttribute("id","container-"+n),o.classList.add("input-group","mb-1","d-flex","align-items-center"),o.setAttribute("role","search"),t.appendChild(o);const s=document.createElement("input");s.setAttribute("type","text"),s.setAttribute("id",n),s.classList.add("form-control"),s.setAttribute("placeholder","🔍"),s.setAttribute("aria-label","Search terms"),s.setAttribute("autocomplete","off"),o.appendChild(s);const c=document.createElement("div");c.classList.add("input-group-append");const a=document.createElement("button");a.setAttribute("id","one-match-backward-"+n),a.classList.add("btn","btn-outline-secondary"),a.setAttribute("type","button"),a.setAttribute("disabled","true"),a.setAttribute("title","Go to previous match (Left Arrow)"),a.setAttribute("aria-label","Go to previous match"),a.innerHTML='<span aria-hidden="true">▲</span>',c.appendChild(a);const r=document.createElement("button");r.setAttribute("id","one-match-forward-"+n),r.classList.add("btn","btn-outline-secondary"),r.setAttribute("type","button"),r.setAttribute("disabled","true"),r.setAttribute("title","Go to next match (Right Arrow)"),r.setAttribute("aria-label","Go to next match"),r.innerHTML='<span aria-hidden="true">▼</span>',c.appendChild(r);const d=document.createElement("span");d.setAttribute("id","total-matches-"+n),d.classList.add("input-group-text"),d.innerHTML="0 matches",d.setAttribute("aria-live","polite"),d.setAttribute("role","status"),o.appendChild(d),o.appendChild(c),s.addEventListener("input",(function(){f(s.value)})),document.addEventListener("click",t=>{t.target.classList.contains("collapse-all-defs-button")&&f(s.value)});const l="highlight-matches-"+n,u={dif:"highlight-matches-DIF-search-h7vc6omi2hr2880",toip:"highlight-matches-ToIP-search-h7vc6omi2hr2880",btc:"highlight-matches-BTC-search-h7vc6omi2hr2880",keri:"highlight-matches-KERI-search-h7vc6omi2hr2880",ssi:"highlight-matches-SSI-search-h7vc6omi2hr2880",gleif:"highlight-matches-GLEIF-search-h7vc6omi2hr2880"}[e.toLowerCase()];let h=0,m=-1;function p(t){t.scrollIntoView({behavior:"smooth",block:"start"});const e=t.getBoundingClientRect(),n=e.top+window.pageYOffset-(window.innerHeight-e.height)/2;window.scrollTo({top:n,behavior:"smooth"})}function b(){m<=0?document.getElementById("one-match-backward-"+n).setAttribute("disabled","disabled"):document.getElementById("one-match-backward-"+n).removeAttribute("disabled"),m>=h-1?document.getElementById("one-match-forward-"+n).setAttribute("disabled","disabled"):document.getElementById("one-match-forward-"+n).removeAttribute("disabled")}function g(){d.innerHTML=h+" matches"}const f=function(t,e){let n;return function(){const i=this,o=arguments;clearTimeout(n),n=setTimeout(()=>t.apply(i,o),e)}}((function(t){void document.querySelectorAll("span."+l).forEach(t=>{Array.from(t.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.removeChild(e)}),t.classList.contains(l)&&(t.outerHTML=t.innerHTML)}),h=0,m=-1,t.length>=2&&('"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1])&&(t=t.substring(1,t.length-1));if(""===t)return void g();let e=0;!function i(o){if(3!==o.nodeType||function(t){for(;t;){if(t.classList&&t.classList.contains("hidden"))return!0;t=t.parentNode}return!1}(o))1===o.nodeType&&Array.from(o.childNodes).forEach(i);else{const i=function(i){const o=i.nodeValue,s=new RegExp(t,"gi");let c,a=0,r=document.createDocumentFragment();for(;null!==(c=s.exec(o));){r.appendChild(document.createTextNode(o.substring(a,c.index)));const t=document.createElement("span");t.textContent=c[0],t.classList.add(l),t.classList.add(u),t.setAttribute("id",n+"-"+e),r.appendChild(t),h=e+1,e++,a=c.index+c[0].length}return r.appendChild(document.createTextNode(o.substring(a))),r}(o);i.childNodes.length>1&&o.parentNode.replaceChild(i,o)}}(i);let o=document.querySelector("."+u);null!==o&&p(o);g(),b(),m=-1}),600);a.addEventListener("click",(function(){m--;const t=document.querySelector("#"+n+"-"+m);t&&p(t),t.classList.add("active"),setTimeout(()=>{t.classList.remove("active")},3e3),b()})),r.addEventListener("click",(function(){m++;const t=document.querySelector("#"+n+"-"+m);t&&p(t),t.classList.add("active"),setTimeout(()=>{t.classList.remove("active")},3e3),b()})),document.addEventListener("keyup",t=>{switch(t.key){case"ArrowRight":r.click();break;case"ArrowLeft":a.click()}})}document.addEventListener("DOMContentLoaded",(function(){inPageSearch()}));
|
|
101
|
-
function highlightMenuItems(){let
|
|
101
|
+
function highlightMenuItems(){let e=null;function t(e){document.querySelectorAll("#toc_list a").forEach(e=>{e.classList.remove("highlight-cfib41dyhcd99sm")});const t=document.querySelector(`#toc_list a[href="#${e.id}"]`);t&&(t.classList.add("highlight-cfib41dyhcd99sm"),t.scrollIntoView({behavior:"smooth",block:"center"}),document.dispatchEvent(new CustomEvent("highlight-menu-item",{detail:{menuItem:t,headingId:e.id}})))}const n=new IntersectionObserver((n,o)=>{const i=n.filter(e=>e.isIntersecting).map(e=>e.target);i.length>0?(e=i[0],t(e)):e&&t(e)},{root:null,rootMargin:"0px",threshold:.1});document.querySelectorAll("h2, h3, h4, h5, h6").forEach(e=>n.observe(e))}document.addEventListener("DOMContentLoaded",(function(){highlightMenuItems()}));
|
|
102
|
+
function initCollapsibleMenu(){const e=document.getElementById("toc");if(!e)return void console.warn("TOC container not found");e.querySelectorAll(".collapse-toggle").forEach(e=>e.remove());e.querySelectorAll("ul li").forEach((e,t)=>{const l=e.querySelector("ul");if(l){e.classList.add("has-children");const o=document.createElement("button");o.className="collapse-toggle",o.setAttribute("aria-label","Toggle section"),o.setAttribute("type","button"),o.id="toc-toggle-"+t;const n=e.querySelector(":scope > a");if(n){const e=n.textContent.trim();o.setAttribute("aria-label",`Toggle ${e} section`),n.parentNode.insertBefore(o,n.nextSibling),l.setAttribute("role","group"),l.setAttribute("aria-labelledby",n.id||"toc-item-"+t),n.id||(n.id="toc-item-"+t)}else e.appendChild(o);o.setAttribute("aria-controls","toc-children-"+t),l.id="toc-children-"+t,o.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation();e.classList.contains("collapsed")?(e.classList.remove("collapsed"),o.classList.remove("collapsed"),o.setAttribute("aria-expanded","true")):(e.classList.add("collapsed"),o.classList.add("collapsed"),o.setAttribute("aria-expanded","false"))}),o.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o.click())});e.querySelector("a.highlight-cfib41dyhcd99sm, a.active")?o.setAttribute("aria-expanded","true"):(e.classList.add("collapsed"),o.classList.add("collapsed"),o.setAttribute("aria-expanded","false"))}}),console.log("Collapsible menu initialized with accessibility improvements")}function logTOCStructure(){const e=document.getElementById("toc");if(e){console.log("TOC container found:",e),console.log("TOC container children:",e.children);const t=e.querySelector("ul");if(t){console.log("First UL found:",t),console.log("UL class list:",t.classList);const e=t.querySelectorAll("li");console.log("List items count:",e.length)}else console.warn("No UL found in TOC container")}else console.warn("TOC container not found")}document.addEventListener("DOMContentLoaded",()=>{initCollapsibleMenu(),logTOCStructure()}),document.addEventListener("highlight-menu-item",initCollapsibleMenu);
|
|
102
103
|
function backToTop(){const n=document.createElement("a");n.id="back-to-top-a1zncgtqfpzsig8",n.href="#content",n.innerHTML="↑",document.body.appendChild(n);const t=function(n,t){let e;return function(){const o=this,c=arguments;clearTimeout(e),e=setTimeout(()=>n.apply(o,c),t)}}((function(){window.scrollY>300?n.style.display="flex":n.style.display="none"}),600);window.addEventListener("scroll",(function(){t()}))}document.addEventListener("DOMContentLoaded",(function(){backToTop()}));
|
|
103
104
|
function addAnchorsToTerms(){document.querySelectorAll('dt:has(> span[id^="term:"])').forEach(e=>{const t=function(e){let t=e;for(;t.querySelector('span[id^="term:"]');)t=t.querySelector('span[id^="term:"]');return t}(e),n=t.getAttribute("id"),r=document.createElement("a");r.setAttribute("href","#"+n),r.setAttribute("class","toc-anchor d-print-none"),r.innerHTML="# ",t.parentNode.insertBefore(r,t)})}document.addEventListener("DOMContentLoaded",(function(){addAnchorsToTerms()}));
|
|
104
105
|
function copyAnchorToCliboard(){document.addEventListener("click",(function(o){if(o.target.classList.contains("toc-anchor")){const c=o.target.href;navigator.clipboard.writeText(c).then(()=>{console.log("Anchor copied to clipboard"),notyf.success("Anchor copied to clipboard: "+c)}).catch(o=>{console.error("Failed to copy anchor to clipboard",o)})}}))}document.addEventListener("DOMContentLoaded",(function(){copyAnchorToCliboard()}));
|
|
105
106
|
var Notyf=function(){"use strict";var t,i=function(){return(i=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++)for(var o in i=arguments[e])Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);return t}).apply(this,arguments)},e=(n.prototype.on=function(t,i){var e=this.listeners[t]||[];this.listeners[t]=e.concat([i])},n.prototype.triggerEvent=function(t,i){var e=this;(this.listeners[t]||[]).forEach((function(t){return t({target:e,event:i})}))},n);function n(t){this.options=t,this.listeners={}}(s=t=t||{})[s.Add=0]="Add",s[s.Remove=1]="Remove";var o,s,a=(r.prototype.push=function(i){this.notifications.push(i),this.updateFn(i,t.Add,this.notifications)},r.prototype.splice=function(i,e){return e=this.notifications.splice(i,e)[0],this.updateFn(e,t.Remove,this.notifications),e},r.prototype.indexOf=function(t){return this.notifications.indexOf(t)},r.prototype.onUpdate=function(t){this.updateFn=t},r);function r(){this.notifications=[]}(s=o=o||{}).Dismiss="dismiss";var c={types:[{type:"success",className:"notyf__toast--success",backgroundColor:"#3dc763",icon:{className:"notyf__icon--success",tagName:"i"}},{type:"error",className:"notyf__toast--error",backgroundColor:"#ed3d3d",icon:{className:"notyf__icon--error",tagName:"i"}}],duration:2e3,ripple:!0,position:{x:"right",y:"bottom"},dismissible:!(s.Click="click")},p=(d.prototype.on=function(t,e){var n;this.events=i(i({},this.events),((n={})[t]=e,n))},d.prototype.update=function(i,e){e===t.Add?this.addNotification(i):e===t.Remove&&this.removeNotification(i)},d.prototype.removeNotification=function(t){var i,e,n=this;(t=this._popRenderedNotification(t))&&((e=t.node).classList.add("notyf__toast--disappear"),e.addEventListener(this.animationEndEventName,i=function(t){t.target===e&&(e.removeEventListener(n.animationEndEventName,i),n.container.removeChild(e))}))},d.prototype.addNotification=function(t){var i=this._renderNotification(t);this.notifications.push({notification:t,node:i}),this._announce(t.options.message||"Notification")},d.prototype._renderNotification=function(t){var i=this._buildNotificationCard(t),e=t.options.className;return e&&(t=i.classList).add.apply(t,e.split(" ")),this.container.appendChild(i),i},d.prototype._popRenderedNotification=function(t){for(var i=-1,e=0;e<this.notifications.length&&i<0;e++)this.notifications[e].notification===t&&(i=e);if(-1!==i)return this.notifications.splice(i,1)[0]},d.prototype.getXPosition=function(t){return(null===(t=null==t?void 0:t.position)||void 0===t?void 0:t.x)||"right"},d.prototype.getYPosition=function(t){return(null===(t=null==t?void 0:t.position)||void 0===t?void 0:t.y)||"bottom"},d.prototype.adjustContainerAlignment=function(t){var i=this.X_POSITION_FLEX_MAP[this.getXPosition(t)],e=this.Y_POSITION_FLEX_MAP[this.getYPosition(t)];(t=this.container.style).setProperty("justify-content",e),t.setProperty("align-items",i)},d.prototype._buildNotificationCard=function(t){var i=this,e=t.options,n=e.icon;this.adjustContainerAlignment(e);var s=this._createHTMLElement({tagName:"div",className:"notyf__toast"}),a=this._createHTMLElement({tagName:"div",className:"notyf__ripple"}),r=this._createHTMLElement({tagName:"div",className:"notyf__wrapper"}),c=this._createHTMLElement({tagName:"div",className:"notyf__message"});c.innerHTML=e.message||"";var p,d,l,u,f=e.background||e.backgroundColor;return n&&(p=this._createHTMLElement({tagName:"div",className:"notyf__icon"}),("string"==typeof n||n instanceof String)&&(p.innerHTML=new String(n).valueOf()),"object"==typeof n&&(d=n.tagName,l=n.className,u=n.text,n=void 0===(n=n.color)?f:n,u=this._createHTMLElement({tagName:void 0===d?"i":d,className:l,text:u}),n&&(u.style.color=n),p.appendChild(u)),r.appendChild(p)),r.appendChild(c),s.appendChild(r),f&&(e.ripple?(a.style.background=f,s.appendChild(a)):s.style.background=f),e.dismissible&&(a=this._createHTMLElement({tagName:"div",className:"notyf__dismiss"}),f=this._createHTMLElement({tagName:"button",className:"notyf__dismiss-btn"}),a.appendChild(f),r.appendChild(a),s.classList.add("notyf__toast--dismissible"),f.addEventListener("click",(function(e){var n,s;null!==(s=(n=i.events)[o.Dismiss])&&void 0!==s&&s.call(n,{target:t,event:e}),e.stopPropagation()}))),s.addEventListener("click",(function(e){var n,s;return null===(s=(n=i.events)[o.Click])||void 0===s?void 0:s.call(n,{target:t,event:e})})),e="top"===this.getYPosition(e)?"upper":"lower",s.classList.add("notyf__toast--"+e),s},d.prototype._createHTMLElement=function(t){var i=t.tagName,e=t.className;t=t.text,i=document.createElement(i);return e&&(i.className=e),i.textContent=t||null,i},d.prototype._createA11yContainer=function(){var t=this._createHTMLElement({tagName:"div",className:"notyf-announcer"});t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),t.style.border="0",t.style.clip="rect(0 0 0 0)",t.style.height="1px",t.style.margin="-1px",t.style.overflow="hidden",t.style.padding="0",t.style.position="absolute",t.style.width="1px",t.style.outline="0",document.body.appendChild(t),this.a11yContainer=t},d.prototype._announce=function(t){var i=this;this.a11yContainer.textContent="",setTimeout((function(){i.a11yContainer.textContent=t}),100)},d.prototype._getAnimationEndEventName=function(){var t,i=document.createElement("_fake"),e={MozTransition:"animationend",OTransition:"oAnimationEnd",WebkitTransition:"webkitAnimationEnd",transition:"animationend"};for(t in e)if(void 0!==i.style[t])return e[t];return"animationend"},d);function d(){this.notifications=[],this.events={},this.X_POSITION_FLEX_MAP={left:"flex-start",center:"center",right:"flex-end"},this.Y_POSITION_FLEX_MAP={top:"flex-start",center:"center",bottom:"flex-end"};var t=document.createDocumentFragment(),i=this._createHTMLElement({tagName:"div",className:"notyf"});t.appendChild(i),document.body.appendChild(t),this.container=i,this.animationEndEventName=this._getAnimationEndEventName(),this._createA11yContainer()}function l(t){var e=this;this.dismiss=this._removeNotification,this.notifications=new a,this.view=new p;var n=this.registerTypes(t);this.options=i(i({},c),t),this.options.types=n,this.notifications.onUpdate((function(t,i){return e.view.update(t,i)})),this.view.on(o.Dismiss,(function(t){var i=t.target;t=t.event;e._removeNotification(i),i.triggerEvent(o.Dismiss,t)})),this.view.on(o.Click,(function(t){var i=t.target;t=t.event;return i.triggerEvent(o.Click,t)}))}return l.prototype.error=function(t){return t=this.normalizeOptions("error",t),this.open(t)},l.prototype.success=function(t){return t=this.normalizeOptions("success",t),this.open(t)},l.prototype.open=function(t){var n=this.options.types.find((function(i){return i.type===t.type}))||{};n=i(i({},n),t);return this.assignProps(["ripple","position","dismissible"],n),n=new e(n),this._pushNotification(n),n},l.prototype.dismissAll=function(){for(;this.notifications.splice(0,1););},l.prototype.assignProps=function(t,i){var e=this;t.forEach((function(t){i[t]=(null==i[t]?e.options:i)[t]}))},l.prototype._pushNotification=function(t){var i=this;this.notifications.push(t);var e=(void 0!==t.options.duration?t:this).options.duration;e&&setTimeout((function(){return i._removeNotification(t)}),e)},l.prototype._removeNotification=function(t){-1!==(t=this.notifications.indexOf(t))&&this.notifications.splice(t,1)},l.prototype.normalizeOptions=function(t,e){return t={type:t},"string"==typeof e?t.message=e:"object"==typeof e&&(t=i(i({},t),e)),t},l.prototype.registerTypes=function(t){var e=(t&&t.types||[]).slice();return c.types.map((function(t){var n=-1;e.forEach((function(i,e){i.type===t.type&&(n=e)}));var o=-1!==n?e.splice(n,1)[0]:{};return i(i({},t),o)})).concat(e)},l}(),notyf=new Notyf({types:[{type:"success",background:"#1D6DAE",duration:3e3},{type:"error",background:"orange",duration:1e7,dismissible:!0}]});
|
|
106
107
|
function showModal(e){const n=document.createElement("div");n.className="spec-up-t-modal-overlay";const c=document.createElement("div");c.className="spec-up-t-modal";const t=document.createElement("button");function o(){document.body.removeChild(n)}t.className="spec-up-t-modal-close",t.innerHTML="×",t.onclick=o,c.innerHTML=e,c.appendChild(t),n.appendChild(c),document.body.appendChild(n),n.onclick=function(e){e.target===n&&o()},document.addEventListener("keydown",(function(e){"Escape"===e.key&&o()}),{once:!0})}
|
|
107
108
|
function tokenInput(){document.querySelector(".button-token-input").addEventListener("click",()=>{const t=prompt("Please enter your GitHub token:");t?(localStorage.setItem("githubToken",t),console.log("GitHub token is set.")):alert("GitHub token is not set.")})}document.addEventListener("DOMContentLoaded",(function(){tokenInput()}));
|
|
108
|
-
function pdfDownload(){fetch("index.pdf",{method:"HEAD"}).then(e=>{if(e.ok){let e=document.createElement("a");e.classList.add("button-pdf-download"),e.classList.add("btn"),e.target="_blank",e.rel="noopener noreferrer",e.href="index.pdf",e.title="Download this page as a PDF",e.innerHTML="
|
|
109
|
-
function insertTrefs(e){e&&e.xtrefs?function(e){const n=[];document.querySelectorAll("dt span.transcluded-xref-term").forEach(e=>{const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent.trim()).join("");n.push({element:e,textContent:t})}),n.forEach(n=>{const t=n.element,r=n.textContent,o=e.xtrefs.find(e=>e.term===r),s=t.closest("dt");if(s){const e=s.nextElementSibling;if(e&&e.classList.contains("transcluded-xref-term")&&e.classList.contains("meta-info-content-wrapper"))return}if(o){const e=s.parentNode,n=document.createElement("dd");n.classList.add("transcluded-xref-term","meta-info-content-wrapper","collapsed");const t=`\n| Property | Value |\n| -------- | ----- |\n| Owner | ${o.avatarUrl?``:""} ${o.owner||"Unknown"} |\n| Repo | ${o.repo&&o.repoUrl?`[${o.repo}](${o.repoUrl})`:"Unknown"} |\n| Commit hash | ${o.commitHash||"Unknown"} |\n `;n.innerHTML=md.render(t),e.insertBefore(n,s.nextSibling);let r=o.content.replace(/\[\[def:[^\]]*?\]\]/g,"").split("\n").map(e=>e.replace(/^\s*~\s*/,"")).join("\n").replace(/\[\[ref:/g,"").replace(/\]\]/g,"");const d=document.createElement("div");d.innerHTML=md.render(r);const a=d.querySelectorAll("dd");if(a.length>0){let t=n;Array.from(a).forEach(n=>{const r=n.cloneNode(!0);r.classList.add("transcluded-xref-term","transcluded-xref-term-embedded"),e.insertBefore(r,t.nextSibling),t=r})}else{const t=document.createElement("dd");t.classList.add("transcluded-xref-term","transcluded-xref-term-embedded"),t.innerHTML=d.innerHTML,e.insertBefore(t,n.nextSibling)}}else{const e=s.parentNode,n=document.createElement("dd");n.classList.add("transcluded-xref-term","meta-info-content-wrapper","collapsed");const t="\n| Property | Value |\n| -------- | ----- |\n| Owner | Unknown |\n| Repo | Unknown |\n| Commit hash | not found |\n ";n.innerHTML=md.render(t),e.insertBefore(n,s.nextSibling);const r=document.createElement("dd");r.classList.add("transcluded-xref-term","transcluded-xref-term-embedded"),r.innerHTML="<p>This term was not found in the external repository.</p>",e.insertBefore(r,n.nextSibling)}})}(e):console.error("allXTrefs is undefined or missing xtrefs property")}document.addEventListener("DOMContentLoaded",()=>{"undefined"!=typeof allXTrefs?insertTrefs(allXTrefs):console.warn("allXTrefs is not available in the global scope. Transcluded references will not be inserted.")});
|
|
109
|
+
function pdfDownload(){fetch("./index.pdf",{method:"HEAD"}).then(e=>{if(e.ok){let e=document.createElement("a");e.classList.add("button-pdf-download"),e.classList.add("btn","d-block","btn-sm","btn-outline-secondary"),e.target="_blank",e.rel="noopener noreferrer",e.href="./index.pdf",e.title="Download this page as a PDF",e.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" class="me-1" viewBox="0 0 16 16">\n <path d="M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5L9.5 0H4zm0 1h5v4h4v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm7 4h-1V2l3 3h-2z"/>\n <path d="M6.5 10.5a.5.5 0 0 1-.5-.5V7.5a.5.5 0 0 1 .5-.5H8a.5.5 0 0 1 .5.5V10a.5.5 0 0 1-.5.5H6.5z"/>\n </svg>\n ',e.style.display="inline-flex",e.style.alignItems="center",e.style.justifyContent="center",document.querySelector(".service-menu").prepend(e)}else console.log("PDF file does not exist. No PDF download button will be added.")}).catch(e=>{console.error("Error checking PDF file:",e)})}document.addEventListener("DOMContentLoaded",(function(){pdfDownload()}));
|
|
110
|
+
function insertTrefs(e){e&&e.xtrefs?function(e){const n=[];document.querySelectorAll("dt span.transcluded-xref-term").forEach(e=>{const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent.trim()).join("");n.push({element:e,textContent:t})}),n.forEach(n=>{const t=n.element,r=n.textContent,o=e.xtrefs.find(e=>e.term===r),s=t.closest("dt");if(s){const e=s.nextElementSibling;if(e&&e.classList.contains("transcluded-xref-term")&&e.classList.contains("meta-info-content-wrapper"))return}if(o){const e=s.parentNode,n=document.createElement("dd");n.classList.add("transcluded-xref-term","meta-info-content-wrapper","collapsed");const t=`\n| Property | Value |\n| -------- | ----- |\n| Owner | ${o.avatarUrl?``:""} ${o.owner||"Unknown"} |\n| Repo | ${o.repo&&o.repoUrl?`[${o.repo}](${o.repoUrl})`:"Unknown"} |\n| Commit hash | ${o.commitHash||"Unknown"} |\n `;n.innerHTML=md.render(t),e.insertBefore(n,s.nextSibling);let r=o.content.replace(/\[\[def:[^\]]*?\]\]/g,"").split("\n").map(e=>e.replace(/^\s*~\s*/,"")).join("\n").replace(/\[\[ref:/g,"").replace(/\]\]/g,"");const d=document.createElement("div");d.innerHTML=md.render(r);const a=d.querySelectorAll("dd");if(a.length>0){let t=n;Array.from(a).forEach(n=>{const r=n.cloneNode(!0);r.classList.add("transcluded-xref-term","transcluded-xref-term-embedded"),e.insertBefore(r,t.nextSibling),t=r})}else{const t=document.createElement("dd");t.classList.add("transcluded-xref-term","transcluded-xref-term-embedded"),t.innerHTML=d.innerHTML,e.insertBefore(t,n.nextSibling)}}else{const e=s.parentNode,n=document.createElement("dd");n.classList.add("transcluded-xref-term","meta-info-content-wrapper","collapsed");const t="\n| Property | Value |\n| -------- | ----- |\n| Owner | Unknown |\n| Repo | Unknown |\n| Commit hash | not found |\n ";n.innerHTML=md.render(t),e.insertBefore(n,s.nextSibling);const r=document.createElement("dd");r.classList.add("transcluded-xref-term","transcluded-xref-term-embedded","last-dd"),r.innerHTML="<p>This term was not found in the external repository.</p>",e.insertBefore(r,n.nextSibling)}})}(e):console.error("allXTrefs is undefined or missing xtrefs property")}document.addEventListener("DOMContentLoaded",()=>{"undefined"!=typeof allXTrefs?insertTrefs(allXTrefs):console.warn("allXTrefs is not available in the global scope. Transcluded references will not be inserted.")});
|
|
110
111
|
function collapseDefinitions(){const t=document.querySelectorAll("#content dl.terms-and-definitions-list > dd"),e=document.querySelectorAll("#content dl.terms-and-definitions-list > dt"),n=document.querySelectorAll(".collapse-all-defs-button");e.forEach(t=>{const e=document.createElement("button");e.classList.add("collapse-all-defs-button","d-print-none","btn","p-0","fs-5","d-flex","align-items-center","justify-content-center"),e.innerHTML="▲",e.setAttribute("id","toggleButton"),t.appendChild(e)}),document.addEventListener("click",e=>{e.target.classList.contains("collapse-all-defs-button")&&(!function(){const e=t[0].classList.contains("hidden");t.forEach(t=>{t.classList.toggle("hidden",!e),t.classList.toggle("visible",e)}),n.forEach(t=>{t.innerHTML=e?"▲":"▼",t.title=e?"Collapse all definitions":"Expand all definitions"}),document.querySelector("html").classList.toggle("defs-hidden")}(),e.target.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),setTimeout(()=>{window.scrollBy({top:-100,behavior:"smooth"})},500))})}document.addEventListener("DOMContentLoaded",(function(){collapseDefinitions()}));
|
|
111
112
|
function createTermFilter(){const e=document.getElementById("terminology-section-utility-container"),c=document.createElement("div");c.className="d-flex mt-0";const t=document.createElement("div");t.className="form-check me-3",t.innerHTML='\n <input class="form-check-input" type="checkbox" id="showLocalTermsCheckbox" checked>\n <label class="form-check-label" for="showLocalTermsCheckbox">\n Show local terms\n </label>\n ';const n=document.createElement("div");n.className="form-check ms-3",n.innerHTML='\n <input class="form-check-input" type="checkbox" id="showExternalTermsCheckbox" checked>\n <label class="form-check-label" for="showExternalTermsCheckbox">\n Show external terms\n </label>\n ',t.querySelector("#showLocalTermsCheckbox").addEventListener("change",(function(e){e.target.checked?document.querySelector("html").classList.remove("hide-local-terms"):document.querySelector("html").classList.add("hide-local-terms")})),n.querySelector("#showExternalTermsCheckbox").addEventListener("change",(function(e){e.target.checked?document.querySelector("html").classList.remove("hide-external-terms"):document.querySelector("html").classList.add("hide-external-terms")})),c.appendChild(t),c.appendChild(n),e.appendChild(c)}document.addEventListener("DOMContentLoaded",(function(){createTermFilter()}));
|
|
112
|
-
function createToggleButton(
|
|
113
|
+
function createToggleButton(e){const t=document.createElement("button");t.classList.add("meta-info-toggle-button","btn"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16" style="shape-rendering: geometricPrecision;"><path fill-rule="evenodd" d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/><path d="M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588z"/><path d="M9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/></svg>',t.title="Meta info",t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation();e.classList.contains("collapsed")?(e.classList.remove("collapsed"),e.getBoundingClientRect()):e.classList.add("collapsed")}));let n=e.previousElementSibling;for(;n&&"DT"!==n.tagName;)n=n.previousElementSibling;n?n.appendChild(t):e.insertBefore(t,e.firstChild)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("dl > dd:has(table)").forEach((function(e){e.classList.add("meta-info-content-wrapper");const t=document.createElement("div");for(t.classList.add("meta-info-inner-wrapper");e.firstChild&&e.firstChild!==e.querySelector(".meta-info-toggle-button");)t.appendChild(e.firstChild);e.querySelector(".meta-info-toggle-button")||createToggleButton(e),e.appendChild(t),e.classList.add("collapsed")}))}));
|
|
114
|
+
function fixLastDd(){document.querySelectorAll("dl.terms-and-definitions-list").forEach(t=>{t.querySelectorAll(":scope > dd").forEach((t,e)=>{let d=t.nextElementSibling;d&&"DT"!==d.tagName||t.classList.contains("last-dd")||t.classList.add("last-dd")})})}document.addEventListener("DOMContentLoaded",(function(){fixLastDd()}));
|
|
113
115
|
/**
|
|
114
116
|
* @file This file adds an href attribute to the snapshot link on the page via client side JS DOM manipulation.
|
|
115
117
|
* @author Kor Dwarshuis
|
package/assets/compiled/head.css
CHANGED
|
@@ -7,20 +7,19 @@
|
|
|
7
7
|
slide-panels{position:fixed;top:0;left:0;height:100%;width:100%;pointer-events:none;z-index:100;contain:paint}slide-panels:before{content:" ";display:block;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.3);transition:opacity .35s ease;opacity:0;cursor:pointer;pointer-events:none}slide-panels[open]:before{opacity:1;pointer-events:all}slide-panel{display:flex;flex-direction:column;box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;background:#fff;box-shadow:0 0 5px 1px rgba(0,0,0,.15);transform:translate3d(-100%,0,0);transition:transform .35s ease;z-index:1;pointer-events:all}slide-panel[options~=right]{left:auto;right:0;transform:translate3d(100%,0,0)}slide-panel[open]{transform:translate3d(0,0,0)}detail-box{display:block}detail-box>header [detail-box-toggle]{width:2em;height:2em;text-align:center;cursor:pointer}detail-box>header [detail-box-toggle]:before{content:" ";display:inline-block;width:0;height:0;border-left:.55em solid transparent;border-right:.55em solid transparent;border-top:.8em solid;vertical-align:sub;cursor:pointer}detail-box[open] header [detail-box-toggle]:before{border-top:none;border-bottom:.8em solid}detail-box>section{height:0;opacity:0;min-width:100%;transition:height .3s ease,opacity .3s;overflow:hidden}detail-box[open]>section{opacity:1}tab-panels>nav{display:flex}tab-panels>nav>*{margin-left:-2px;padding:.5em 1em;background:#e0e0e0;border:1px solid #aaa;border-radius:0;cursor:pointer}tab-panels>nav>:focus{outline:0;background:#ccc}tab-panels>nav>:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}tab-panels>nav>:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}tab-panels>nav>[selected]{color:var(--themed-element-text);background:var(--themed-element-bk);border:var(--themed-element-border);opacity:.9999}tab-panels>section{display:none}tab-panels>section[selected]{display:block}
|
|
8
8
|
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}
|
|
9
9
|
@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}
|
|
10
|
-
#logo img{width:100px}.bi{display:inline-block;width:1.2rem;height:1.2rem}#header,#header *{background-color:var(--header-navbar-bg);color:var(--header-navbar-text)}[issue-count]:after{content:"(" attr(issue-count) ")";margin:0 0 0 .3em;padding:.1em 0 0}[issue-count=""][animate]{display:none;opacity:0}[issue-count][animate]:not([issue-count=""]){animation:display-show 1s}#header button,#header button *{background:#a9dde0}
|
|
11
|
-
.container{min-height:100vh}@media (min-width:768px){.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;z-index:100}}ul.toc{padding:1em 0 1.75em;font-size:.85em}ul.toc,ul.toc ul{margin:0;padding:0;list-style:none}ul.toc li a{display:block;padding:.4em .8em;text-decoration:none;color:var(--toc-text);transition:background .2s ease,padding-left .2s ease,border-left .2s ease;padding-left:.8em;border-left:3px solid transparent}ul.toc ul{margin-left:1.2em!important;margin-top:.3em}ul.toc a:hover{background:#f9f9f9;padding-left:1em;border-left:3px solid #007bff}ul.toc>li>ul>li>a{padding-left:1.5em}ul.toc>li>ul>li>ul>li>a{padding-left:2em}ul.toc a:focus{box-shadow:
|
|
12
|
-
h2,h3,h4,h5,h6{margin-top:1.5em!important}#terminology-section-utility-container{display:flex;flex-wrap:wrap;justify-content:center;margin:1em auto;padding:0;width:100%}@media (min-width:576px){#terminology-section-utility-container{position:sticky;top:3.5em;z-index:10}}.toc-anchor{font-size:.875em;color:#73c2df;text-decoration:none;transition:opacity .3s ease}.toc-anchor:hover{opacity:1}dl.terms-and-definitions-list{margin:0;padding:0;position:relative;z-index:1}dl.terms-and-definitions-list>dt{font-weight:700;margin:0;background-color:var(--card-bg-dt);border:1px solid var(--card-border);padding:.5rem 1.25rem;border-radius:.375rem .375rem 0 0;
|
|
10
|
+
#logo img{width:100px}.bi{display:inline-block;width:1.2rem;height:1.2rem}#header,#header *{background-color:var(--header-navbar-bg);color:var(--header-navbar-text)}[issue-count]:after{content:"(" attr(issue-count) ")";margin:0 0 0 .3em;padding:.1em 0 0}[issue-count=""][animate]{display:none;opacity:0}[issue-count][animate]:not([issue-count=""]){animation:display-show 1s}#header a:not(#logo),#header a:not(#logo) *,#header button,#header button *{background:#a9dde0}
|
|
11
|
+
.container{min-height:100vh}@media (min-width:768px){.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;z-index:100}}ul.toc{padding:1em 0 1.75em;font-size:.85em}ul.toc,ul.toc ul{margin:0;padding:0;list-style:none}ul.toc li a{display:block;padding:.4em .8em;text-decoration:none;color:var(--toc-text);transition:background .2s ease,padding-left .2s ease,border-left .2s ease;padding-left:.8em;border-left:3px solid transparent}ul.toc ul{margin-left:1.2em!important;margin-top:.3em}ul.toc a:hover{background:#f9f9f9;padding-left:1em;border-left:3px solid #007bff}ul.toc>li>ul>li>a{padding-left:1.5em}ul.toc>li>ul>li>ul>li>a{padding-left:2em}ul.toc a:focus{outline:2px solid #007bff;outline-offset:-2px;box-shadow:0 0 0 3px rgba(0,123,255,.25);position:relative;z-index:1}.powered-by{font-size:.7em}ul.toc li a.active,ul.toc li a[aria-current=page]{border-left:3px solid #007bff;font-weight:500;background:#f0f0f0}ul.toc li a{border-bottom:1px solid rgba(0,0,0,.03)}ul.toc li:last-child a{border-bottom:none}#toc ul li{position:relative}#toc ul li.has-children{position:relative}.collapse-toggle{position:absolute;top:.35em;right:0;width:28px;height:28px;background:0 0;border:1px solid transparent;border-radius:3px;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,border-color .2s;z-index:2}.collapse-toggle:hover{background-color:rgba(0,0,0,.05)}.collapse-toggle:focus{outline:2px solid #007bff;outline-offset:1px;border-color:#007bff;box-shadow:0 0 0 3px rgba(0,123,255,.25)}.collapse-toggle::after{content:"";border-style:solid;border-width:.15em .15em 0 0;display:inline-block;height:.5em;width:.5em;position:relative;transform:rotate(135deg);transition:transform .2s ease}.collapse-toggle.collapsed::after{transform:rotate(45deg)}#toc ul li.has-children>ul{max-height:1000px;overflow:hidden;transition:max-height .3s ease-in-out,opacity .3s ease-in-out;opacity:1}#toc ul li.has-children.collapsed>ul{max-height:0;overflow:hidden;opacity:.6}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{width:auto;height:auto;clip:auto;display:block;padding:15px 23px 14px;background-color:#fff;color:#007bff;z-index:100000;font-size:1em;font-weight:700;text-decoration:none;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.2)}
|
|
12
|
+
h2,h3,h4,h5,h6{margin-top:1.5em!important}#terminology-section-utility-container{display:flex;flex-wrap:wrap;justify-content:center;margin:1em auto;padding:0;width:100%}@media (min-width:576px){#terminology-section-utility-container{position:sticky;top:3.5em;z-index:10}}.toc-anchor{font-size:.875em;color:#73c2df;text-decoration:none;transition:opacity .3s ease}.toc-anchor:hover{opacity:1}dl.terms-and-definitions-list{margin:0;padding:0;position:relative;z-index:1}dl.terms-and-definitions-list>dt{font-weight:700;margin:0;background-color:var(--card-bg-dt);border:1px solid var(--card-border);padding:.5rem 1.25rem;border-radius:.375rem .375rem 0 0;color:var(--card-text);position:relative;line-height:1.5;font-size:1.05em;align-items:center}dl.terms-and-definitions-list>dt>span{margin-right:1.5em}dl.terms-and-definitions-list>dt .btn{font-size:1.2em!important}dl.terms-and-definitions-list>dt:hover{background-color:var(--card-hover-bg);transition:background-color .2s ease-in-out}dl.terms-and-definitions-list>dd{margin:0;background-color:var(--card-bg);border:1px solid var(--card-border);border-top:none;padding:.5rem 2rem;color:var(--card-text);width:100%;position:relative}dl.terms-and-definitions-list dd p{margin:0;color:var(--card-text);padding-left:.5rem}dl.terms-and-definitions-list>dd::before{display:none}dl.terms-and-definitions-list dd table{margin:.5em 0;width:100%;border-collapse:collapse}dl.terms-and-definitions-list dd table td,dl.terms-and-definitions-list dd table th{padding:.5em;border:1px solid #ddd}dl.terms-and-definitions-list dd table th{background-color:#f5f5f5}dl>dd:has(table).meta-info-content-wrapper{display:block;font-size:.7em;position:relative;max-height:none;height:auto;overflow:visible;transition:all .3s ease-out}dl>dd:has(table).meta-info-content-wrapper td,dl>dd:has(table).meta-info-content-wrapper th{padding:.3em}dl>dd:has(table).collapsed.meta-info-content-wrapper{max-height:0;height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;overflow:hidden;transition:all .3s ease-out;line-height:0}dl>dd:has(table).meta-info-content-wrapper>div{display:block;padding:inherit}.meta-info-toggle-button{position:relative;cursor:pointer}dl.terms-and-definitions-list dt+dd{border-bottom:none}dl.terms-and-definitions-list dd+dd{border-top:none;border-bottom:none}dl.terms-and-definitions-list dd+dt{margin-top:1rem}dl.terms-and-definitions-list dd.last-dd{border-radius:0 0 .375rem .375rem;border-bottom:1px solid var(--card-border)}html.dense-info dl.terms-and-definitions-list>dt{padding:.1rem 1.25rem;display:block;line-height:inherit;font-size:inherit}html.dense-info dl.terms-and-definitions-list dd+dt{margin-top:.3rem}html.dense-info dl.terms-and-definitions-list>dt::before{display:none}html.dense-info dl.terms-and-definitions-list>dt>span{margin-right:0}.transcluded-xref-term{position:relative}dd.transcluded-xref-term,dt.transcluded-xref-term{background:#a9dde03b!important}.btn{font-variant:small-caps;text-transform:uppercase;position:relative;z-index:5}.collapse-all-defs-button{float:right}.transclusion-heading{font-size:1.3em;font-weight:700;margin:.2em 0 .2em}dl.terms-and-definitions-list>dd.transcluded-xref-term-embedded{position:relative;padding-left:2.5rem;padding-top:.3rem;padding-bottom:.3rem}dl.terms-and-definitions-list span.transcluded-xref-term::after{content:"";position:absolute;left:.5rem;top:50%;width:1rem;height:1rem;transform:translateY(-50%);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-box-arrow-right' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:center}dl.terms-and-definitions-list span.transcluded-xref-term{padding-left:1.5rem;display:inline-block}dl.terms-and-definitions-list span.transcluded-xref-term::after{width:.8rem;height:.8rem;left:.2rem}.placeholder-tref{display:none}.no-xref-found-message{background:#f8c481;color:#03365f;margin:0 .5em;padding:0 .8em;border-radius:.25rem;font-size:.8rem;font-variant:small-caps;text-transform:uppercase}
|
|
13
13
|
.btn{font-size:.7em!important;margin:0 0 0 .5em!important}
|
|
14
14
|
.highlight-matches-search-h7vc6omi2hr2880{font-size:1em;outline:3px solid #1d6dae39;outline-offset:5px;transition:outline .3s ease-in-out}.highlight-matches-search-h7vc6omi2hr2880.active{outline:3px solid #1d6dae;transition:outline .3s ease-in-out}.highlight-matches-DIF-search-h7vc6omi2hr2880{background-color:#1d6dae11}.highlight-matches-ToIP-search-h7vc6omi2hr2880{background-color:#a9dde0b0}.highlight-matches-BTC-search-h7vc6omi2hr2880{background-color:#f19019a1}.highlight-matches-KERI-search-h7vc6omi2hr2880{background-color:#b5d070d5}.highlight-matches-SSI-search-h7vc6omi2hr2880{background-color:#ff0}.highlight-matches-GLEIF-search-h7vc6omi2hr2880{background-color:#52dac6a6}
|
|
15
15
|
.highlight-cfib41dyhcd99sm{background-color:#1d6dae11}
|
|
16
|
-
#back-to-top-a1zncgtqfpzsig8{position:fixed;bottom:20px;text-decoration:none;left:calc(100% - 1.8em);width:1.5em;height:1.5em;margin:0;padding:0;background-color:#1e6eae;color:#222;border-radius:50px;text-align:center;font-size:30px;color:#fff;box-shadow:0 0 1.3px rgba(0,0,0,.07),0 0 3.6px rgba(0,0,0,.1),0 0 8.7px rgba(0,0,0,.13),0 0 29px rgba(0,0,0,.2);cursor:pointer;border:none;display:none;align-items:center;justify-content:center}
|
|
16
|
+
#back-to-top-a1zncgtqfpzsig8{position:fixed;bottom:20px;text-decoration:none;left:calc(100% - 1.8em);width:1.5em;height:1.5em;margin:0;padding:0;background-color:#1e6eae;color:#222;border-radius:50px;text-align:center;font-size:30px;color:#fff;box-shadow:0 0 1.3px rgba(0,0,0,.07),0 0 3.6px rgba(0,0,0,.1),0 0 8.7px rgba(0,0,0,.13),0 0 29px rgba(0,0,0,.2);cursor:pointer;border:none;display:none;align-items:center;justify-content:center;z-index:2}
|
|
17
17
|
@-webkit-keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@-webkit-keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@-webkit-keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;-webkit-animation:notyf-fadeinup .3s ease-in forwards;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px 0 rgba(0,0,0,.25);position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{-webkit-animation:notyf-fadeoutright .3s forwards;animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translateX(0)}.notyf__toast--disappear .notyf__message{-webkit-animation-delay:.05s;animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translateX(13%);z-index:5;-webkit-animation:ripple .4s ease-out forwards;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.3s;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;-webkit-animation:notyf-fadeinleft .3s forwards;animation:notyf-fadeinleft .3s forwards;-webkit-animation-delay:.35s;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:rgba(0,0,0,.25);border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:0;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:rgba(0,0,0,.15)}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;-webkit-animation-duration:.5s;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px 0 rgba(0,0,0,.13);width:100%}.notyf__dismiss{width:56px}}
|
|
18
18
|
#content dl dd.hidden{display:none}#content dl dd.visible{display:block}.collapse-all-defs-button{float:right}
|
|
19
19
|
.hide-local-terms #content dl.terms-and-definitions-list>dd:not(.transcluded-xref-term),.hide-local-terms #content dl.terms-and-definitions-list>dt:not(.transcluded-xref-term){display:none!important}.hide-external-terms #content dl.terms-and-definitions-list>dd.transcluded-xref-term,.hide-external-terms #content dl.terms-and-definitions-list>dt.transcluded-xref-term{display:none!important}
|
|
20
|
-
dl>dd:has(table).meta-info-content-wrapper{display:block;position:relative;max-height:none;height:auto;overflow:visible;transition:all .3s ease-out}dl>dd:has(table).collapsed.meta-info-content-wrapper{max-height:0;height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;overflow:hidden;transition:all .3s ease-out;line-height:0}dl>dd:has(table).meta-info-content-wrapper>div{display:block;padding:inherit}.meta-info-toggle-button{position:relative;cursor:pointer}
|
|
21
20
|
.spec-up-t-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:1000}.spec-up-t-modal{background-color:#fff;padding:2rem 20px 20px;border-radius:8px;max-width:80%;max-height:80%;overflow-y:auto;position:relative;box-shadow:0 2px 10px rgba(0,0,0,.1)}.spec-up-t-modal-close{position:absolute;top:0;right:5px;background-color:transparent;border:none;font-size:2rem;line-height:1;cursor:pointer}
|
|
22
21
|
.alphabet-index-container{margin-bottom:1em}.alphabet-index-container,.number-of-terms{font-size:.8em;text-align:center;width:100%}.alphabet-index-container a{background-color:#f5f5f5;border:1px solid #e0e0e0;border-radius:50%;color:#333;display:inline-block;font-size:.9rem;height:30px;line-height:30px;margin:2px;text-align:center;text-decoration:none;width:30px}
|
|
23
|
-
.button-pdf-download{
|
|
22
|
+
.button-pdf-download{transition:all .2s ease;border-radius:4px;cursor:pointer;font-weight:500;box-shadow:0 1px 3px rgba(0,0,0,.1);padding:5px}.button-pdf-download:hover{background-color:#e74c3c!important;border-color:#e74c3c!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 3px 5px rgba(0,0,0,.15)}.button-pdf-download svg{vertical-align:middle;margin-right:4px}.button-pdf-download:active{transform:translateY(0);box-shadow:0 1px 2px rgba(0,0,0,.1)}
|
|
24
23
|
.loader{width:20px;height:20px;margin:auto;display:block;text-align:center;border:8px solid #ccc;border-top-color:#3498db;border-radius:50%;animation:spin 1s linear infinite}.loadertext{text-align:center;margin:.5em 0}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
|
|
25
24
|
article a[href^="https://"]:not(.btn)::after,article a[href^=http]:not(.btn)::after{content:'';width:12px;height:12px;margin-left:4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:contain;display:inline-block}
|
|
26
25
|
#repo_issues>header{background:#eee;border-bottom:1px solid #ddd}#repo_issues>header span:first-of-type{font-weight:700;padding-top:.1em}#repo_issues>header .repo-issue-toggle{margin-left:auto;color:inherit;font-weight:700;text-decoration:none}#repo_issue_list{list-style:none;margin:0;padding:0 1.25em 1.25em;font-size:.85em;overflow:auto;-ms-overflow-style:none;scrollbar-width:none}#repo_issue_list::-webkit-scrollbar{display:none}#repo_issue_list:empty:before{content:"No issues found";display:block;text-align:center;font-size:1.1em;color:#aaa;margin:1em 0 0}.repo-issue detail-box{display:flex;flex-direction:column;padding:1em 0;border-bottom:1px solid #ddd}.repo-issue detail-box>section{order:1}.repo-issue detail-box>section:empty+.repo-issue-title [detail-box-toggle]{display:none}.repo-issue-title{display:flex;align-items:center}.repo-issue-link{flex:1;margin:0 0 0 .5em}.repo-issue-number{height:1em;margin:0 .4em 0 0;padding:.3em .25em 0;border-radius:3px;font-weight:700;background:#eee;border:1px solid #ddd;text-align:center;line-height:1em}.repo-issue-number:before{content:"#";font-weight:400;margin:0 .1em 0 0}.repo-issue [detail-box-toggle]{margin:0 0 0 1em;opacity:.35;transition:opacity .4s}.repo-issue [detail-box-toggle]:hover,.repo-issue detail-box[open] [detail-box-toggle]{opacity:1}
|
package/assets/css/backToTop.css
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PDF Download Button Styles
|
|
3
|
+
*/
|
|
1
4
|
.button-pdf-download {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
transition: all 0.2s ease;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
10
|
+
padding: 5px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.button-pdf-download:hover {
|
|
14
|
+
background-color: #e74c3c !important;
|
|
15
|
+
border-color: #e74c3c !important;
|
|
16
|
+
color: white !important;
|
|
17
|
+
transform: translateY(-1px);
|
|
18
|
+
box-shadow: 0 3px 5px rgba(0,0,0,0.15);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.button-pdf-download svg {
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
margin-right: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.button-pdf-download:active {
|
|
27
|
+
transform: translateY(0);
|
|
28
|
+
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
14
29
|
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/* PDF Styling for optimized print layout */
|
|
2
|
+
|
|
3
|
+
/* Target the pdf-document class that's added during PDF generation */
|
|
4
|
+
|
|
5
|
+
/* Reset all margins and paddings */
|
|
6
|
+
.pdf-document * {
|
|
7
|
+
box-sizing: border-box !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Body and main container styling */
|
|
11
|
+
body.pdf-document {
|
|
12
|
+
max-width: 100% !important;
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
margin: 0 !important;
|
|
15
|
+
padding: 0 !important;
|
|
16
|
+
overflow-x: hidden !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Extremely aggressive content width adjustment */
|
|
20
|
+
.pdf-document .container,
|
|
21
|
+
.pdf-document main,
|
|
22
|
+
.pdf-document section,
|
|
23
|
+
.pdf-document article,
|
|
24
|
+
.pdf-document .content,
|
|
25
|
+
.pdf-document div[class*="container"],
|
|
26
|
+
.pdf-document div[class*="col-"],
|
|
27
|
+
.pdf-document .row {
|
|
28
|
+
max-width: 95% !important;
|
|
29
|
+
width: 95% !important;
|
|
30
|
+
margin-left: auto !important;
|
|
31
|
+
margin-right: auto !important;
|
|
32
|
+
padding-left: 0 !important;
|
|
33
|
+
padding-right: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Override any Bootstrap container constraints */
|
|
37
|
+
.pdf-document .container,
|
|
38
|
+
.pdf-document .container-sm,
|
|
39
|
+
.pdf-document .container-md,
|
|
40
|
+
.pdf-document .container-lg,
|
|
41
|
+
.pdf-document .container-xl {
|
|
42
|
+
max-width: 95% !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Table adjustments */
|
|
46
|
+
.pdf-document table {
|
|
47
|
+
width: 100% !important;
|
|
48
|
+
max-width: 100% !important;
|
|
49
|
+
margin-bottom: 1rem;
|
|
50
|
+
table-layout: fixed !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Header styling */
|
|
54
|
+
.pdf-document .pdf-title {
|
|
55
|
+
font-size: 24pt !important;
|
|
56
|
+
margin-bottom: 0.5rem !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Images in PDF */
|
|
60
|
+
.pdf-document img {
|
|
61
|
+
max-width: 100% !important;
|
|
62
|
+
height: auto !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Code blocks */
|
|
66
|
+
.pdf-document pre,
|
|
67
|
+
.pdf-document code {
|
|
68
|
+
white-space: pre-wrap !important;
|
|
69
|
+
word-break: break-word !important;
|
|
70
|
+
max-width: 100% !important;
|
|
71
|
+
overflow: visible !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Ensure proper page breaks */
|
|
75
|
+
.pdf-document h1,
|
|
76
|
+
.pdf-document h2,
|
|
77
|
+
.pdf-document h3,
|
|
78
|
+
.pdf-document h4 {
|
|
79
|
+
page-break-after: avoid;
|
|
80
|
+
page-break-inside: avoid;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pdf-document table,
|
|
84
|
+
.pdf-document figure {
|
|
85
|
+
page-break-inside: avoid;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Force any fixed-position elements to static */
|
|
89
|
+
.pdf-document .fixed-top,
|
|
90
|
+
.pdf-document .fixed-bottom,
|
|
91
|
+
.pdf-document .sticky-top,
|
|
92
|
+
.pdf-document .position-fixed,
|
|
93
|
+
.pdf-document .position-sticky {
|
|
94
|
+
position: static !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Aggressively set all columns to take up more space */
|
|
98
|
+
.pdf-document .col,
|
|
99
|
+
.pdf-document [class*="col-"] {
|
|
100
|
+
flex: 0 0 100% !important;
|
|
101
|
+
max-width: 100% !important;
|
|
102
|
+
padding-left: 0 !important;
|
|
103
|
+
padding-right: 0 !important;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* ====== DEFINITION LIST STYLING FOR PDF ====== */
|
|
107
|
+
/* Remove background and borders from terms and definitions in PDF */
|
|
108
|
+
.pdf-document dl.terms-and-definitions-list > dt,
|
|
109
|
+
.pdf-document dl.terms-and-definitions-list > dd {
|
|
110
|
+
background-color: transparent !important;
|
|
111
|
+
border: none !important;
|
|
112
|
+
border-radius: 0 !important;
|
|
113
|
+
padding: 0.5rem 0 !important;
|
|
114
|
+
color: #000 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Fix spacing between terms */
|
|
118
|
+
.pdf-document dl.terms-and-definitions-list > dt {
|
|
119
|
+
margin-top: 1em !important;
|
|
120
|
+
font-weight: bold !important;
|
|
121
|
+
page-break-after: avoid !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Hide toggle buttons in PDF output */
|
|
125
|
+
.pdf-document .meta-info-toggle-button {
|
|
126
|
+
display: none !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Always show meta-info content in PDF */
|
|
130
|
+
.pdf-document dl > dd.meta-info-content-wrapper,
|
|
131
|
+
.pdf-document dl > dd.collapsed.meta-info-content-wrapper {
|
|
132
|
+
display: block !important;
|
|
133
|
+
max-height: none !important;
|
|
134
|
+
height: auto !important;
|
|
135
|
+
overflow: visible !important;
|
|
136
|
+
padding: 0.5rem 0 !important;
|
|
137
|
+
margin: 0 !important;
|
|
138
|
+
line-height: normal !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Transclusion styling for PDF */
|
|
142
|
+
.pdf-document dt.transcluded-xref-term,
|
|
143
|
+
.pdf-document dd.transcluded-xref-term {
|
|
144
|
+
background: transparent !important;
|
|
145
|
+
background-color: transparent !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Remove any other visual indicators that aren't needed in PDF */
|
|
149
|
+
.pdf-document dl.terms-and-definitions-list > dt::before,
|
|
150
|
+
.pdf-document dl.terms-and-definitions-list > dd::before {
|
|
151
|
+
display: none !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Ensure all definition content is visible in PDF */
|
|
155
|
+
.pdf-document dl.terms-and-definitions-list dd p {
|
|
156
|
+
padding-left: 0 !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Ensure good page breaks in definition lists */
|
|
160
|
+
.pdf-document dl.terms-and-definitions-list > dt,
|
|
161
|
+
.pdf-document dl.terms-and-definitions-list > dd {
|
|
162
|
+
page-break-inside: avoid !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Improve table display in definitions for PDF */
|
|
166
|
+
.pdf-document dl.terms-and-definitions-list dd table {
|
|
167
|
+
margin: 0.5em 0 !important;
|
|
168
|
+
border-collapse: collapse !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.pdf-document dl.terms-and-definitions-list dd table th,
|
|
172
|
+
.pdf-document dl.terms-and-definitions-list dd table td {
|
|
173
|
+
border: 0.5pt solid #888 !important;
|
|
174
|
+
}
|
|
@@ -81,9 +81,13 @@ ul.toc>li>ul>li>ul>li>a {
|
|
|
81
81
|
padding-left: 2.0em;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
/* Accessibility: Focus styles */
|
|
84
|
+
/* Accessibility: Focus styles - improved for keyboard navigation */
|
|
85
85
|
ul.toc a:focus {
|
|
86
|
-
|
|
86
|
+
outline: 2px solid #007bff;
|
|
87
|
+
outline-offset: -2px;
|
|
88
|
+
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
|
|
89
|
+
position: relative;
|
|
90
|
+
z-index: 1; /* Ensure the focus outline is visible */
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
.powered-by {
|
|
@@ -109,4 +113,107 @@ ul.toc li a {
|
|
|
109
113
|
/* Remove bottom border from last list item */
|
|
110
114
|
ul.toc li:last-child a {
|
|
111
115
|
border-bottom: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Collapsible menu styles - Docusaurus inspired */
|
|
119
|
+
#toc ul li {
|
|
120
|
+
position: relative;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Fixed position for the list item to allow absolute positioning of the toggle */
|
|
124
|
+
#toc ul li.has-children {
|
|
125
|
+
position: relative;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Collapse toggle button styles - enhanced for accessibility */
|
|
129
|
+
.collapse-toggle {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 0.35em;
|
|
132
|
+
right: 0;
|
|
133
|
+
width: 28px;
|
|
134
|
+
height: 28px;
|
|
135
|
+
background: transparent;
|
|
136
|
+
border: 1px solid transparent; /* Border for focus state */
|
|
137
|
+
border-radius: 3px;
|
|
138
|
+
padding: 0;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
transition: background-color 0.2s, border-color 0.2s;
|
|
144
|
+
z-index: 2;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.collapse-toggle:hover {
|
|
148
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Improved focus styles for keyboard navigation */
|
|
152
|
+
.collapse-toggle:focus {
|
|
153
|
+
outline: 2px solid #007bff;
|
|
154
|
+
outline-offset: 1px;
|
|
155
|
+
border-color: #007bff;
|
|
156
|
+
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Arrow icon for the toggle */
|
|
160
|
+
.collapse-toggle::after {
|
|
161
|
+
content: "";
|
|
162
|
+
border-style: solid;
|
|
163
|
+
border-width: 0.15em 0.15em 0 0;
|
|
164
|
+
display: inline-block;
|
|
165
|
+
height: 0.5em;
|
|
166
|
+
width: 0.5em;
|
|
167
|
+
position: relative;
|
|
168
|
+
transform: rotate(135deg);
|
|
169
|
+
transition: transform 0.2s ease;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Rotate arrow when collapsed */
|
|
173
|
+
.collapse-toggle.collapsed::after {
|
|
174
|
+
transform: rotate(45deg);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Hide submenu when collapsed - with screen reader considerations */
|
|
178
|
+
#toc ul li.has-children > ul {
|
|
179
|
+
max-height: 1000px; /* Arbitrary large value */
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
#toc ul li.has-children.collapsed > ul {
|
|
186
|
+
max-height: 0;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
opacity: 0.6; /* Better visual cue that content is hidden */
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Skip to content - accessibility enhancement */
|
|
192
|
+
.screen-reader-text {
|
|
193
|
+
position: absolute;
|
|
194
|
+
width: 1px;
|
|
195
|
+
height: 1px;
|
|
196
|
+
padding: 0;
|
|
197
|
+
margin: -1px;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
clip: rect(0,0,0,0);
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
border: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* But make it visible on focus - for keyboard users */
|
|
205
|
+
.screen-reader-text:focus {
|
|
206
|
+
width: auto;
|
|
207
|
+
height: auto;
|
|
208
|
+
clip: auto;
|
|
209
|
+
display: block;
|
|
210
|
+
padding: 15px 23px 14px;
|
|
211
|
+
background-color: #fff;
|
|
212
|
+
color: #007bff;
|
|
213
|
+
z-index: 100000;
|
|
214
|
+
font-size: 1em;
|
|
215
|
+
font-weight: bold;
|
|
216
|
+
text-decoration: none;
|
|
217
|
+
line-height: normal;
|
|
218
|
+
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
|
|
112
219
|
}
|