Comment 4 for bug 1273931

Revision history for this message
Valerii Kuznetsov (valerii-kuznetsov) wrote :

Added patch to review.
Now any blocktype on page can use it's own CSS without changing main Mahara CSS.
Just put CSS code into blocktype/[blockname]/theme/raw/static/style/style.css
This works not only in artefacts, but independent blocktypes as well.
It supports theming as it's done for plugins. Updated CSS should go to: blocktype/[blockname]/theme/[themename]/static/style/style.css

Also, I've created sample blocktype that shows example of usage of CSS for blocks. It is simple chat that works site wide allowing everyone to chat with each other.

https://github.com/solival/MaharaChat