PageSourceSearch

https://touying-typ.github.io/assets/js/96743480.a8b842c3.js

js touying-typ.github.io collected 2026-10-03 10:06:26 UTC 3,945 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1512],{96394:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var t=r(85893),a=r(11151);const o={sidebar_position:34,description:"Cover content with a semi-transparent rectangle matching the page background color.",toc_max_heading_level:2},s="semi-transparent-cover",i={id:"reference/utils/semi-transparent-cover",title:"semi-transparent-cover",description:"Cover content with a semi-transparent rectangle matching the page background color.",source:"@site/docs/reference/utils/semi-transparent-cover.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/semi-transparent-cover",permalink:"/docs/reference/utils/semi-transparent-cover",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:34,frontMatter:{sidebar_position:34,description:"Cover content with a semi-transparent rectangle matching the page background color.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"update-alpha",permalink:"/docs/reference/utils/update-alpha"},next:{title:"color-changing-cover",permalink:"/docs/reference/utils/color-changing-cover"}},c={},l=[{value:"alpha : <TypeLink></TypeLink> <Default><code>85%</code></Default>",id:"alpha",level:3},{value:"body : <TypeLink></TypeLink>",id:"body",level:3}];function d(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,a.a)(),...e.components},{Default:r,Param:o,Parameters:s,Signature:i,SignatureName:c,SignatureParam:l,SourceLink:d,TypeLink:h}=n;return r||p("Default",!0),o||p("Param",!0),s||p("Parameters",!0),i||p("Signature",!0),c||p("SignatureName",!0),l||p("SignatureParam",!0),d||p("SourceLink",!0),h||p("TypeLink",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"semi-transparent-cover",children:"semi-transparent-cover"}),"\n",(0,t.jsx)(i,{children:(0,t.jsxs)("code",{children:[(0,t.jsx)(c,{children:"semi-transparent-cover"}),"(",(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#self",children:"self: none"}),", "]}),(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#alpha",children:"alpha: 85%"}),", "]}),(0,t.jsxs)(l,{children:[(0,t.jsx)(n.a,{href:"#cover-args",children:"..cover-args"}),", "]}),(0,t.jsx)(l,{children:(0,t.jsx)(n.a,{href:"#body",children:"body"})}),")",(0,t.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L1527"})]})}),"\n",(0,t.jsx)(n.p,{children:"Cover content with a semi-transparent rectangle matching the page background color."}),"\n",(0,t.jsxs)(n.p,{children:["Example: ",(0,t.jsx)(n.code,{children:"config-methods(cover: utils.semi-transparent-cover)"})]}),"\n",(0,t.jsxs)(s,{children:[(0,t.jsxs)(n.h3,{id:"alpha",children:["alpha : ",(0,t.jsx)(h,{type:"ratio"})," ",(0,t.jsx)(r,{children:(0,t.jsx)(n.code,{children:"85%"})})]}),(0,t.jsx)(o,{children:(0,t.jsxs)(n.p,{children:["The opacity of the covering rectangle (higher means more opaque/more hidden). Default is ",(0,t.jsx)(n.code,{children:"85%"}),"."]})}),(0,t.jsxs)(n.h3,{id:"body",children:["body : ",(0,t.jsx)(h,{type:"content"})]}),(0,t.jsx)(o,{children:(0,t.jsx)(n.p,{children:"The content to cover."})})]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Returns:"})," ",(0,t.jsx)(h,{type:"content"})]})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}function p(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>s});var t=r(67294);const a={},o=t.createContext(a);function s(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.