Skip to content

Commit 1627439

Browse files
committed
Documentation
1 parent 0be8640 commit 1627439

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/reference/admonitions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,14 @@ _Result_:
231231
:octicons-beaker-24: Experimental
232232

233233
Admonitions and [Details][11] can also be rendered as inline blocks (i.e.
234-
sidebars), moving them to the right using the `inline` + `end` modifiers, or
234+
sidebars), placing them to the right using the `inline` + `end` modifiers, or
235235
to the left using only the `inline` modifier.
236236

237+
__Important__: Admonitions that use the `inline` modifiers _must_ be declared
238+
prior to the content block you want to place them beside. If there's
239+
insufficient space to render the admonition next to the block, the admonition
240+
will stretch to the full width of the viewport, e.g. on mobile viewports.
241+
237242
=== "inline end"
238243

239244
_Example_ / _Result_:
@@ -276,10 +281,6 @@ to the left using only the `inline` modifier.
276281

277282
Use `inline` to align to the left (right for rtl languages).
278283

279-
_If there's insufficient space to render the admonition next to the block, the
280-
admonition will stretch to the full width of the viewport, e.g. on mobile
281-
viewports._
282-
283284
[12]: https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/_modifiers.scss
284285

285286
### Supported types
@@ -456,4 +457,4 @@ _Result_:
456457

457458
[13]: https://github.com/squidfunk/mkdocs-material/tree/master/material/.icons
458459
[14]: ../customization.md#additional-css
459-
[15]: ./icons-emojis.md#with-animations
460+
[15]: ./icons-emojis.md#with-animations

0 commit comments

Comments
 (0)