A Reveal.js theme to get a jump-start on a sweet looking OPi presentation
npm install ObjectPartners/object-partners-revealjs-theme --save
This will create node_modules/object-partners-revealjs-theme
with the CSS file inside of node_modules/object-partners-revealjs-theme/dist/object-partners-revealjs-theme.css
.
This file can be imported using webpack (import 'object-partners-revealjs-theme'
), or can be referenced using a regular old <link rel="stylesheet">
The theme should just work upon injection into the page. However, some additional tweaking can lead to a better user experience and increased functionality, specifically:
Add any of the following attributes to a section
tag in order to get "title slide" theming:
data-state="title"
, date-state="title-slide"
, data-state="heading"
, data-state="heading-slide"
As this project includes a custom header that takes up some space, the margins until a slide overflows/wraps should be increased in order to accomodate for the space the header takes up. To do this, please use the following code snippet (along with any other custom settings)
Reveal.initialize({
margin: 0.25
});