Somehow, I don’t have an icon/color RGB at the popup card.
The icon shows the “light-popup-card” but it doesn’t have any color. Do you know how to fix this?
First off, do you have card-mod installed? I’m asking because yours looks like the default light-popup-card.
Regarding the rgb icon, your actions at the bottom are in a different order, it’s relevant because the selector targets the second div in the second div, the last action if you have two by two actions. You have three and then one.
I have installed the card-mod. I do not use your fully setup with picture-elements, but only using the buttons etc. That is why it looks different to your setup.
I tried both, however
‘#popup > div.action-holder > div:nth-child(2) > div:nth-child(2) > span’
gives me the following result on my iPhone:
. Firefox does not recognize the background (second yellow marked text.
I think I should use the selected element background-color for the rgb color picker (first yellow marked text). But in what way do I put this in the button_card_templates.yaml?
The selected element is called “div.action-row:nth-child(2) > div:nth-child(2) > span:nth-child(1)”.
Hopefully an easy one, I’m pretty new to this so apologies if this is a stupid question, tried searching and couldn’t find anything of relevance.
A few months back I started implementing this and I’ve just come back to it and the sensor.time font in the sidebar markdown is showing the same font size as all the other sensors (it’s no longer larger).
I’m just wondering how to change this back so that it is large again.
Thanks for sharing…
Mattias Persson … worse than covid!
(worse than a virus. You are contagious!)
Me too like everyone here … i’m learning basic swedish
So I’m getting somewhere, after quite some weeks of work. My main layout is sort of done. Tweaking of alignment will follow when I debug on my tablet. I do need to work on the pop-ups now and update some code I fear, since I started with the older code where styles became broken due to home-assistant updates.
I still have an issue with markdown cards, that give errors the first time I load the page. After a refresh all is fine. I assume it has something to do with the preload stuff. So according to Mattias’ post a few posts above, should I change the custom:hui-markdown-card to custom:hui-element & card_type: markdown? That means reworking those cards I fear? And I still see both types of these cards in Mattias’ code.
Yes, that’s exactly what you need to do. You should get rid of the custom:hui-markdown-card method, it’s very hacky and chances are you’ll run into issues with later HA versions.
I tried it myself and simply rewritten one by replacing custom:hui-markdown-card with:
type: 'custom:hui-element'
card_type: markdown
Strangely, I only changed one of the multiple custom:hui-markdown-card I have (to test if it works), but the errors disappeared all together of all markdowns.