Skip to content

Commit

Permalink
Update Docs class name escape hatches
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinSuttle committed Oct 17, 2019
1 parent e568f09 commit 1ade1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/docs/docs/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ addParameters({

The Storybook theme API is narrow by design. If you want to have fine-grained control over the CSS, all of the Docs components are tagged with class names to make this possible. This is advanced usage: use at your own risk.

The classes correspond to markdown elements (e.g. `sbdocs-h1`, `sbdocs-p`, etc.) to UI elements on the page (e.g. `sbdocs-container`, `sbdocs-content`, etc.). To see the currently available classes, use "inspect element" in your browser.
The classes correspond to markdown elements (e.g. `sbdocs-title`, `sbdocs-subtitle`, `sbdocs-p`, etc.) to UI elements on the page (e.g. `sbdocs-container`, `sbdocs-content`, etc.). To see the currently available classes, use "inspect element" in your browser.

You can style these classes in `.storybook/preview-head.html`. For example, here's how to make the content wider for UHD displays:

Expand Down

0 comments on commit 1ade1f7

Please sign in to comment.