haven icon indicating copy to clipboard operation
haven copied to clipboard

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

Open elapse2039 opened this issue 1 year ago • 2 comments

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 avatar Jun 02 '24 20:06 elapse2039

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.

elapse2039 avatar Jun 02 '24 23:06 elapse2039

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

mawise avatar Jun 03 '24 15:06 mawise

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.

elapse2039 avatar Jul 07 '24 01:07 elapse2039