diff --git a/wiki/Home.md b/wiki/Home.md index d0e797b81d..2454b6735e 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -21,6 +21,7 @@ - [Journal Pages](Journal-Pages.md) - [Roll Formulas](Roll-Formulas.md) - [Summoning](Summoning.md) +- [System HTML](System-HTML.md) - Tutorials - [Custom Classes](Custom-Class-Advancement.md) - [Custom Races](Custom-Race-Tutorial.md) diff --git a/wiki/System-HTML.md b/wiki/System-HTML.md new file mode 100644 index 0000000000..03e5238a4f --- /dev/null +++ b/wiki/System-HTML.md @@ -0,0 +1,41 @@ +![Up to date as of 3.3.0](https://img.shields.io/static/v1?label=dnd5e&message=3.3.0&color=informational) + +The D&D system provides several new CSS classes for formatting text. These styles can be applied to any text field by editing the Source HTML and following the examples below. + +## Advice and Quest Blocks +The `fvtt advice` and `fvtt quest` classes share the same format, displaying an image on the left with accompanying text in a boxed layout on the right. +Specify the image using the img src attribute within the figure block and the text within the article block. + +```html +
+
+ +
+
+

Casting in Armor

+

Because of the mental focus and precise gestures required for spellcasting, you must be proficient with the armor you are wearing to cast a spell. You are otherwise too distracted and physically hampered by your armor for spellcasting.

+
+
+``` +![](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/styles/fvttadvice.png) + +## Narrative +The `fvtt narrative` class creates a text box for read-aloud text. + +```html +
+

The horses’ saddlebags have been looted. An empty leather map case lies nearby.

+
+``` +![](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/styles/fvttnarrative.png) + +## Notable +The `notable` class is used within an aside tag to create a callout box for additional information. + +```html + +``` +![](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/styles/fvttnotable.png) diff --git a/wiki/images/styles/fvttadvice.png b/wiki/images/styles/fvttadvice.png new file mode 100644 index 0000000000..83e2f4997f Binary files /dev/null and b/wiki/images/styles/fvttadvice.png differ diff --git a/wiki/images/styles/fvttnarrative.png b/wiki/images/styles/fvttnarrative.png new file mode 100644 index 0000000000..78eab4d780 Binary files /dev/null and b/wiki/images/styles/fvttnarrative.png differ diff --git a/wiki/images/styles/fvttnotable.png b/wiki/images/styles/fvttnotable.png new file mode 100644 index 0000000000..84d1e9b856 Binary files /dev/null and b/wiki/images/styles/fvttnotable.png differ