minimal icon indicating copy to clipboard operation
minimal copied to clipboard

Help trying to change CSS for this theme

Open nikitavoloboev opened this issue 7 years ago • 5 comments

I can't figure out why when I change main.css file and use my own custom css, the things don't actually go in effect after I restart the web page. It seems Hugo doesn't care about the values I put in main.css.

Also I am trying to change the colour of the text. This one:

2017-12-02 at 22 10

But I cannot find anywhere where it is defined in the theme. I can only change the colour in the browser.

Thank you for any help.

nikitavoloboev avatar Dec 02 '17 21:12 nikitavoloboev

For reference, I was trying to change these two values in main.css

nikitavoloboev avatar Dec 02 '17 21:12 nikitavoloboev

It took me a while to figure this out, but:

Put your custom css files in static/css/:

$ ls
archetypes	content		layouts		themes
config.toml	data		static
$ ls static/css
intro_customization.css

And refer to them in your config.toml:

[params]
    css = ["css/intro_customization.css"]

discentem avatar Dec 31 '17 18:12 discentem

Does this help @nikitavoloboev?

discentem avatar Dec 31 '17 18:12 discentem

I can't for the life of me figure out how to customize the css of the posts though :(

discentem avatar Dec 31 '17 20:12 discentem

@discentem This really helped me, thanks a lot!

polzak avatar Nov 05 '19 05:11 polzak