ElkArte Community

Project Support => General ElkArte discussions => Topic started by: badmonkey on January 02, 2019, 10:14:32 am

Title: CSS load failure
Post by: badmonkey on January 02, 2019, 10:14:32 am
The specs: Elk 1.1.5, nginx 1.15.8, php7.3, mariadb 10.3.11

The issue: using custom.css to create a besocial variant, occasionally the index_besocial.css and custom.css files fail to load leading to a page with a layout but no color, etc. Hard refresh does not help. This only happens on ONE site on the server, never others running the same setup on the same server. php restart fixes the issue instantly.

Anyone have an idea what is causing the issue? It's rather perplexing!   ;D
Title: Re: CSS load failure
Post by: emanuele on January 02, 2019, 12:41:54 pm
Could it be the "known issue" that the custom is loaded before the "non-custom", invalidating the declarations in it?
If so, a quick (albeit horrible) workaround is to use !important in your custom.css.
Title: Re: CSS load failure
Post by: badmonkey on January 02, 2019, 03:51:11 pm
Quote from: emanuele – Could it be the "known issue" that the custom is loaded before the "non-custom", invalidating the declarations in it?
If so, a quick (albeit horrible) workaround is to use !important in your custom.css.
 
 Perhaps? Does !important need to be used for every detail?
Title: Re: CSS load failure
Post by: emanuele on January 08, 2019, 08:45:39 am
Sorry, I missed your reply @badmonkey .

The answer is... depends. If you want to stay on the safe side you can put it on everything, otherwise you can try and see where it is needed.
I have to track this one, though.