Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CSS with --deck-js #50

Open
LuisBL opened this issue Jun 30, 2014 · 3 comments
Open

Change CSS with --deck-js #50

LuisBL opened this issue Jun 30, 2014 · 3 comments

Comments

@LuisBL
Copy link

LuisBL commented Jun 30, 2014

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
Copy link
Author

LuisBL commented Jul 3, 2014

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
Copy link
Owner

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

@LuisBL
Copy link
Author

LuisBL commented Jul 26, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants