How to change font size for code cell in webpdf output (nbconvert 7.16)?


I am trying to figure out how to change the font size for code cells when exporting a notebook with webpdf using nbconvert 7.16. I have found several suggestions, but they all seem to fit only for old-style templates. I have tried to create my own version of the webpdf template, but have not yet found the right right way to influence font size. An option for automatically folding lines in code cells upon webpdf-output would also do.

I’d much appreciate any suggestions.