跳到主要内容

cover-with-rect

Cover content with a rectangle of a specified color. If you set the fill to the background color of the page, you can use this to create a semi-transparent overlay.

Example: #utils.cover-with-rect(fill: "red")[Hidden]

Parameters

..cover-args : args

The arguments to pass to the rectangle.

fill : color    default: auto

The color to fill the rectangle with.

inline : bool    default: true

Indicates whether the content should be displayed inline. Default is true.

body : content

The content to cover.

Returns: content