From ceb8b509e2ce0646f94a5e3e910508fdef1cfc00 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 8 Sep 2023 13:27:02 -0700 Subject: [PATCH] Add more guides to stock CSS classes --- guide/src/format/mdbook.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/guide/src/format/mdbook.md b/guide/src/format/mdbook.md index 15b8d1a7..45fb506a 100644 --- a/guide/src/format/mdbook.md +++ b/guide/src/format/mdbook.md @@ -317,7 +317,29 @@ contents (sidebar) by including a `\{{#title ...}}` near the top of the page. ## HTML classes provided by mdBook -The `class="warning"` can be applied to make a warning, or similar note, stand out. +The Rust logo + +### `class="left"` and `"right"` + +These classes are provided by default, for inline HTML to float images. + +```html +The Rust logo +``` + +### `class="hidden"` + +HTML tags with class `hidden` will not be shown. + +```html + +``` + + + +### `class="warning"` + +To make a warning or similar note stand out, wrap it in a warning div. ```html