Custom CSS in Indico 2.2


#1

Hello,

At our institute we are currently running indico 2.1.8 in production with some custom css and logos. I wanted to take a look at the next release so I built a custom wheel from the current master branch.

But I am having issues with our custom style sheets:

In the production uses the following files:

  • /opt/indico/custom/scss/e5-theme.scss
  • /opt/indico/custom/static/logo.png (mapped to /custom/static/logo.png)

To get the logo working I had to change it accordingly:

  • /opt/indico/custom/files/logo.png` (mapped to /custom/static/files/logo.png)

But for some reason the style sheets are not picked up. What am I missing? Any help would be greatly appreciated.


#2

In 2.2 it’s css/*.css.

Since we switched to the webpack build pipeline (ie assets are built locally) we no longer support SCSS for customizations.


#3

Thanks! This works. It seems to me that these files are cached. Do I have to restart indico each time I make changes?


#4

IIRC. we don’t cache them, but I’d have to check the code to be sure. Anyway, try reloading with ctrl+f5, maybe it’s just your browser’s cache…


#5

Yes clearing the cache fixed the problem. Thanks.