-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system HTML classes to Wiki (#3859)
- Loading branch information
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<div class="fvtt advice"> | ||
<figure class="icon"> | ||
<img src="icons/equipment/chest/robe-layered-red.webp" class="round"> | ||
</figure> | ||
<article> | ||
<h4>Casting in Armor</h4> | ||
<p>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.</p> | ||
</article> | ||
</div> | ||
``` | ||
![](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 | ||
<div class="fvtt narrative"> | ||
<p>The horses’ saddlebags have been looted. An empty leather map case lies nearby.</p> | ||
</div> | ||
``` | ||
![](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 | ||
<aside class="notable"> | ||
<h4>Joining a Secret Society</h4> | ||
<p>If the party helps Steve, the thief privately approaches certain members of the group and urges them to join the Secret Society of Stealing.</p> | ||
</aside> | ||
``` | ||
![](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/styles/fvttnotable.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.