havenweb / haven

Self-hostable private blogging
https://havenweb.org
MIT License
650 stars 33 forks source link

docker-compose setup - css and other style changes do not take effect #91

Closed elapse2039 closed 4 months ago

elapse2039 commented 5 months ago

Thanks for this great OSS project... I've got it working in a docker-compose file (see attached example) and trying to customise the font and CSS layout as per the help docs the project sends me to. Nothing seems to happen... even restarting the service makes no difference.

docker-comp.txt

Is there another docker volume I should mount locally for these changes to persist? This is while using Firefox browser.

Thx.

elapse2039 commented 5 months ago

Ok, the fonts now take effect... not sure why there weren't earlier... the only thing I haven't got working yet is to force the dark/light theme.

mawise commented 5 months ago

If you can figure out a way to reproduce the font issue, I would love to fix it. I'm glad to hear it's working now but I don't think the inconsistent behavior is satisfactory.

For dark/light, you can set the same colors in the :root section as the @media screen and (prefers-color-scheme: dark) section, or create a new @media screen section so that printing a page still uses the light colors. Alternately, you can modify the css in the Haven source code here: https://github.com/havenweb/haven/tree/master/app/assets/stylesheets

elapse2039 commented 4 months ago

I think this was due to my misunderstanding of css example. I cant find a problem with this after reading the help guide more closely.