· 1 min read Min read

Ionic headache #2: platform-targeted style

So. I was unable to put a favicon on our app, and I feel really stupid because of that. But I probably could work on something else while my colleagues are trying to set up the favicon, right?

Let's, say, customise the css a little bit. We have some platform-specific code in our previous app as our app must also work on a browser. For example, the class hello-browser is applied only on browsers if you're using ionic 1:

.platform-browser {
  display: flex;
  justify-content: center;
 
  .hello-browser {
    background-color: red;
  }
}

Great! I love that .platform-browser class. What's the equivalent in ionic 3?

In short: there isn't any.

Nooooo! It isn't there anymore! I guess I'll have to post on ionic forum again… And move to another task. Maybe I'll eventually be able to code something?