Search code examples
pythonpelican

Pelican custom.css not changing font size


I'm using THEME = 'bootstrap' in pelican to generate a static site. I have followed the instructions in this answer which addresses bootstrap3

  1. create a custom.css file and put it in an extras folder
  2. edit pelicanconf.py and add three lines

but I don't see any change in font size. Is there something further I need to do to 'invoke' the change? When I edit/corrupt the css file to see if pelican notices, nothing happens, which leads me to believe there is something missing. Any helpful explanations are appreciated - I'm new at this.

I would be happy with just making all font 150% of current size, but targeting some sections would be super.

EDIT: I use restructured text.


Solution

  • Unlike bootstrap3, bootstrap isn't configured to add in custom CSS. So, your CUSTOM_CSS setting has no effect.

    You need a clone of bootstrap and directly modify the CSS (probably local.css). You can place the cloned bootstrap anywhere you like and provide the path, either absolute or relative to the settings file, via THEME setting.