smapiot/pidoc

Adjust Images in Dark Mode

Closed this issue · 6 comments

We could add an additional CSS class for images such as auto. When used, this class would automatically try to adjust the image's content via the following CSS declaration:

body.dark img.auto {
  filter: invert()hue-rotate(180deg);
}

where do we have to add this code ? are you going to raise pr for it?

@FlorianRappl do we have to add the above code you provided or we have to write some more ? Because this issue seems more simpler since you provided the code as well?

I think this should be mostly it. What would be good is if an image using this class would be added to the example app / docs. But it's not necessary.

@FlorianRappl please review the PR, thank you

Landed in develop - thanks!