jeudi 15 juin 2017

Can I apply CSS to only one specific Ember.js template / route

At the moment, I have a webpage (or more like an embedded part of a webpage) that I need to have different CSS from the rest of the Web application. The reason is because I'm transferring Data from one Ember website to another Ember website and I need the data to look exactly the same on both sites.

Is such a thing possible? I tried using things such as

app.css

#remove_style {
  all: initial
}

But that doesn't reset to browser defaults (meaning if I do p {color: blue} then using initial will still make all <p> elements blue.

I also looked at some libraries such as http://ift.tt/2tqV766, but it looks old and unmaintained?

I think ideally, I could have a different stylesheet load for a route but I'm not sure if that's possible.




Aucun commentaire:

Enregistrer un commentaire