Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/schema/document-lightbox.yml
12921 views
1
- name: lightbox
2
schema:
3
anyOf:
4
- boolean
5
- enum: ["auto"]
6
- object:
7
closed: true
8
properties:
9
match:
10
schema:
11
enum: ["auto"]
12
description:
13
short: Set this to `auto` if you'd like any image to be given lightbox treatment.
14
long: |
15
Set this to `auto` if you'd like any image to be given lightbox treatment. If you omit this, only images with the class `lightbox` will be given the lightbox treatment.
16
effect:
17
schema:
18
enum: ["fade", "zoom", "none"]
19
description: The effect that should be used when opening and closing the lightbox. One of `fade`, `zoom`, `none`. Defaults to `zoom`.
20
desc-position:
21
schema:
22
enum: ["top", "bottom", "left", "right"]
23
description: The position of the title and description when displaying a lightbox. One of `top`, `bottom`, `left`, `right`. Defaults to `bottom`.
24
loop:
25
boolean:
26
description: Whether galleries should 'loop' to first image in the gallery if the user continues past the last image of the gallery. Boolean that defaults to `true`.
27
css-class:
28
string:
29
description: A class name to apply to the lightbox to allow css targeting. This will replace the lightbox class with your custom class name.
30
tags:
31
formats: [$html-doc]
32
description: Enable or disable lightbox treatment for images in this document. See [Lightbox Figures](https://quarto.org/docs/output-formats/html-lightbox-figures.html) for more details.
33
34