Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adjust font size in reveal.js

I'm trying to use Reveal.js to build a UX portfolio which is responsive. However, I noticed that most of the properties I write in a style sheet are overridden. Is there a way to force slideshows using Reveal.js to use custom CSS for font sizes and other settings?

like image 336
Jurgen Mantzke Avatar asked May 12 '17 00:05

Jurgen Mantzke


1 Answers

Yes there is. For sure it's not the best way, but is simple and functional. Carefully, add "!important" to the setting you want to be adjusted. Like:

.reveal section p {
    font-weight: bold !important;
    font-size: 1.1em !important;
}

.reveal section pre code {
    font-size: 0.7em !important;
}

Hope this helps!

like image 153
Sabucodonozorr Avatar answered Oct 20 '22 09:10

Sabucodonozorr