I am experiencing a strange error. I am using card-mod for the manual-alarm-panel. When I first load the panel, the new css is applied to all 3 arm buttons.
However when I disarm, the css only applies to the first button.
I checked the styles applied and can confirm that the position and font-size are inserted in the computed style only on the first button.
Thanks! I only noticed it this morning as I was disarming the alarm. If I refresh, all is good, but using Fully Kiosk as my tablet browser is a bit of a pain.
I canāt figure out how to change the stroke color (if thatās the right terminology, meaning the icon outline color) of the icon. no matter what I do, it remains black.
looking to change itās color depending on state
Hey, I have a setup that uses card-mod to modify some widths, backgrounds and shadows. My setup looks great but the loading time is terrible even on high-end device, on mobile itās even worse. The layout resizes and jumps for few seconds before itās usable. It can even hang the tab of my Firefox. Am I doing anything wrong? Can I speed it up?
Thereās you issue. First the cards are loaded then card-mod styles are applied.
If you use the new class feature in card-mod 2.0 this improves the situation considerably as the styles seem to be loaded with the cards.
Documentation on these new features is not available yet but essentially you create a class for each item that needs modding in your theme. e.g. in my day and night themes I have added config like this:
So Iām a little confusedā¦ I use a few different themes. (Downloaded via HACS and I use an input select with an automation to change theme)
Some of the themes seem display different icons with different coloursā¦ So far as I cam tell,
paper-item-icon-color:
state-icon-color:
seem to be the main culprits. So Iād like some global way of mapping paper-item-color to state-icon-colorā¦ now I know I can do that with card mod on a card and I could also just edit the offending themes but that makes it hard when the theme maker updates a theme.
This is an example of what I mean.
With Google Dark Theme:
So Iād like to be able to set a global style that maps paper-item-icon to the state-icon-color etc overiding the theme. Is that something this card-mod can do?