Comment 0 for bug 1260675

Revision history for this message
Jiri Tomasek (jtomasek) wrote :

Right now, it is possible to include custom stylesheets for custom dashboards into Horizon. (See [1])
But the way it works, it is not possible to use horizon (and through that also bootstrap) less variables in those custom stylesheets.

In short, solution is to import custom stylesheets at the end of horizon.less file.

Implementation:

At the end of horizon.less, @import dashboards.less file, dashboards.less is generated less file, that includes imports of the list of less files with the same name as dashboards that horizon include. eg:
dashboards.less:
@import infrastructure.less
...

Problem is how to generate dashboards.less file. Could it be somehow achieved by using django-compress?

[1] http://docs.openstack.org/developer/horizon/topics/customizing.html#custom-stylesheets