Skip to content

Commit

Permalink
Merge pull request #172 from ccamara/doc
Browse files Browse the repository at this point in the history
Added instructions on how to add custom class to documentation.
  • Loading branch information
regebro committed Sep 5, 2018
2 parents 6e6a9a9 + 782a459 commit 5f208c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/presentations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,20 @@ number. And that means the slide's ID will change if you insert or remove
slides that came before it, and in that case your custom stylings of that
slide will stop working.

Adding a custom class to slides
-------------------------------

If you want to apply the same style to one or more slides you may prefer adding
a class to those slides instead (or in addition to) a unique ID::

:id: my-custom-class

You can then style those slides by adding CSS rules with::

.my-custom-class {
/* Custom CSS here */
}

Portable presentations
----------------------

Expand Down

0 comments on commit 5f208c7

Please sign in to comment.