marianoguerra / rst2html5

transform restructuredtext documents to html5 + twitter's bootstrap css, deck.js or reveal.js
http://marianoguerra.github.com/rst2html5
MIT License
177 stars 51 forks source link

Change CSS with --deck-js #50

Open LuisBL opened 10 years ago

LuisBL commented 10 years ago

I have some slides.rst with a lot of code in each slide so I need to cascade a CSS with something like that::

.deck-container .slide pre { font-size: 40%; }

I use deck-js cmd::

$ rst2html5 --deck-js --pretty-print-code slides.rst > slides.html

From the documentation I've try --stylesheet-path and --stylesheet but it did not work in this context.

LuisBL commented 10 years ago

Hello, I've been looking for --deck-js-opts=DECK_JS_OPTS but I can't found exemples on how to use it to modify the final CSS

marianoguerra commented 10 years ago

try adding !important to the css you add and see if it works.

LuisBL commented 10 years ago

it's not a CSS problem, it's about the fact that we can't inject our own CSS directives: --stylesheet-path and --stylesheet are not take into account with --deck-js and --deck-js-opts can't be used to add a CSS file.

I'm probably missing something