1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 01:21:49 +02:00

Docs: organize callouts in partials (#37320)

This commit is contained in:
Mark Otto
2022-10-16 09:09:33 -07:00
committed by GitHub
parent c40495cbf8
commit 1095d4a4af
32 changed files with 36 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ toc: true
The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific elements you toggle. Collapsing an element will animate the `height` from its current value to `0`. Given how CSS handles animations, you cannot use `padding` on a `.collapse` element. Instead, use the class as an independent wrapping element.
{{< callout info >}}
{{< partial "callout-info-prefersreducedmotion.md" >}}
{{< partial "callouts/info-prefersreducedmotion.md" >}}
{{< /callout >}}
## Example
@@ -153,7 +153,7 @@ const collapseList = [...collapseElementList].map(collapseEl => new bootstrap.Co
### Methods
{{< callout danger >}}
{{< partial "callout-danger-async-methods.md" >}}
{{< partial "callouts/danger-async-methods.md" >}}
{{< /callout >}}
Activates your content as a collapsible element. Accepts an optional options `object`.