Go to the 1st post of this thread.
At the end of this post you will find a link. (Same also explained in the post right before your post)
Select this link - you will find a post with many links.
Find “Entities card” (closer to a top), select “post” to open the main post about Entities card.
Scroll down to “styling button row”.
Hi… I have been racking my brain. I have been fighting my way through Card Mod CSS for about two years and I think I got pretty good… but this is breaking me.
I want to make the styles for this separate from which is what shows up when you do use a secondary info line. I want different styles for core rows with secondary information (but above the secondary information classes .info .pointer .secondary) and this tag seems to differentiate them…
My use case is that I have my rows very tight together using line-height at the ha-card level and then I adjust the entity rows. But the rows that have secondary information, of course, just expand into the other entities space… I can adjust the inside of the secondary info just fine, but there is no way to make just the rows (the whole row, with the info, pointer, and secondary all together) that have secondary info use a different ha-card level line-height… ONLY when the card has secondary info…
So it looks like this tag in the rows that do not have secondary info is the ticket, but how to I incorporate the “no-secondary” part in the path?
Yeah, went down that hole a bit and basically just got inundated with ::before ::after stuff. I mean… IS that a pseudo class? Is that what that extra text is called even when not hashed or ::'ed? Do you have a resource that would be helpful?
@Ildar_Gabdullin I’m trying to disable the custom:slider-entity-row with your example from custom button card, but I don’t succed.
This is my code in a template (I’m not using entities, though):
With the inspector, I saw that I can use input[type=“range”], but I’m not able to configure it correctly…
I want to disable the slider when the value passed to it is outside 1-100 range.
Could you please point me to the right direction?
Interestingly, I was able to change the thikness and color of the slider using:
I mean, I am sure I am just missing something, but its having no effect. I know your trying to lead me to water but the google machine has run out of results…
BUT I’m not able to disable the slider with “pointer-events: none;” inside the if statement ? All the controls are disabled except for the slider…, and I need the opposite :-))
Where shall put it?
Many thanks.
Actually, I think I have found somewhat of a solution (it would require some adjustments on your part). It seems that if you put the cards in a layout-card instead of a vertical or horizontal-stack that the sticky part simply works again.
Now I want to keep all the sensors around it tight the way they are, but I want the sensors that DO use the secondary info to be able to have an accommodating height.
I use the code below to accomplish the above results, but I can’t find to way to change ONLY the rows with secondary_info to, for example, height: 20px.
Adding the “,no-secondary” seems to make no difference. In fact, when I threw your code in to see what it did, removing the “,no-secondary” made no difference even there, leaving all your changes in tact. Most of those changes are under the generic row anyway, and so the two “mini-rows” inside the generic row were what would be changed. I am trying to change the full generic row that contains those “mini” rows, just like when there is no secondary info, but to something larger when there is.
The very inelegant solution I use now is to add a “type: divider” above and below the secondary_info entities… but this requires manual manipulation and doesnt look clean as you can see below:
Given there is this “no_secondary” part of the element, I was hoping I could use it to differentiate the rows that have it form those that dont, and use card_mod to adjust them both separately according to that tag. Thus far, though, I havent been smart enough to figure it out, or experienced enough to know if it just cant be done.
On my dear lord! You are a Prince… @Ildar_Gabdullin was pointing me in the right direction, and I have been barking up that general tree, but the key piece I was missing what the “[ ]”. I literally wrote that code 90 ways and just never came across a single resource in hours of searching that use that syntax! I have had to teach myself (and beg to be taught like this) so I never know what “totally obvious” thing I just don’t know. my dashboard are in yaml, I have custom themes, design my own button cards, but all just futzing around and not really knowing what I am doing. I really appreciate you taking the time to show me this. You made my week. It was driving me nuts.