Iâm assuming youâre trying to remove the colored circle around the icon, right? If so, youâre targeting the wrong element. The background color is given by the ::before element. You were probably able to overwrite this with another color because you literally just put another color over top of the existing one. But you tried to set something to none that isnât there.
You need to look at the html to see where the color is set and then target that element specifically.
Give this a try. If it doesnât work, please let me know whatâs happening in the browser dev tools - is it not being applied to the elements at all or is it just being overwritten by different styles? is it being applied to the wrong element? âŚ
How can I style the badge wrapper so that all badges appear on a single line with horizontal scrolling? I know itâs a simple CSS task, but how do I apply it to the .badges class within the view component? Also, is it possible to use card mod for this?
@rgroothuis You can add !important just before the semicolon to make sure the style gets applied.
But I really donât think this is going to get you what youâre looking for. Youâll need to figure out which font size youâre actually trying to change. I doubt itâs the ha-card. ha-card doesnât have any text in it, but just a bunch of children that contain the actual text.
Figure out which element(s) youâre trying to target using your browserâs dev tools and then put that as the css selector instead of ha-card. And then first try it without the !important and if that doesnât work add ain !important
Most of your questions may be resolved if you check the 1st post â link at the bottom.
Particularly for Entity card: changing a font-size for elements also described there.
Does anyone know how I can get an image that can be resized and looks like this attached image? With the text on the same side and everything. I tried with a grid⌠but I canât make the image smaller.
Mine is getting like this. Everything is really big.
good morning, I have a problem
I would need the background to change when the value is = or greater than 0.100. but I canât do it in any way.
currently Iâm like this
Of course, substituting a color directly in place of ${this.hass.themes.darkMode ? 'green' : 'yellow' works, but itâs not dynamic. Do I have to handle this through themes or is there a way to directly query the deviceâs dark mode like this?
Thanks, but after making the change and a refresh across three test devices, that doesnât seem to be working quite right for me:
Edge on Windows 11 - Green regardless of dark mode
Companion App on iOS - Yellow regardless of dark mode
Fully Kiosk Browser on Fire Tablet - Yellow regardless of dark mode