Topic
  • 1 reply
  • Latest Post - ‏2013-05-31T13:41:04Z by Michele Buccarello
Rob_Chillingworth
Rob_Chillingworth
12 Posts

Pinned topic Multiple css files in theme.json

‏2013-05-27T14:54:27Z |

Hi,

I'm using a copy of the portal 8.0.0.1 OOB theme.  I would like to include CSS files for different browser devices.  I'm trying to update the theme.json file so that it not only includes the 'master.css' but also my custom css. So in the theme.json there's this:

                "type":"css",
                "uris":[{
                    "value":"/css/master.css"
                }, {
                    "value":"/css/master.css.uncompressed.css",
                    "type":"debug"
                }, {
 

But I'd like to also include another css, ie. mycustom.css, so if I do this:

                "type":"css",
                "uris":[{
                    "value":"/css/master.css"
                },{
                    "value":"/css/mycustom.css"
                }, {
                    "value":"/css/master.css.uncompressed.css",
                    "type":"debug"
                }, {

What happens is that 'mycustom.css' overwrites 'master.css' - I only see the mycustom.css on the portal page. If I reverse the order around, then I only see master.css and not my mycustom.css.

 

For now, I've updated 'master.css' to do an import of mycustom.css

Is this the proper way to go, or is there a way of modifying the .json file?

Thanks.

Rob.