yes, and thanks for that, TIL
where is this transition used in regular Dashboard/Frontend? Must confess I never realized that we have it, and on un-modded cards, I never see that?
e.g. state icon, bulb colors, opening of dialogs, dropdowns, etc.? But I didnāt not check if all this is related to the mentioned single :host entry above. Most probably no, but a lot of transitioning is there, wherever defined everywhere.
I was talking about a preference for using mod-card in combination with those cards. Opposed to some of the other way more complicated suggestions above.
And because of that I also showed the option for modding both stack gap as well as grid card gap in 1 style.
Because that hasnāt been posted in this community before, that seems quite interesting if you ask me.
Would someone be able to help me achieve a blinking entity image based on the entity state please? Iāve looked through this thread searaching for entity card examples, but canāt find one that is state based. I have gone a bit card-mod blind after scanning through the thread so may have missed what Iām looking for!
I have a basic entities card with the following config:
If I want this entity state picture to ONLY blink when the entity card is displaying the picture for the ERROR or WARNING states, how do I configure the card with card-mod?
I believe I need to include some card-mod style such as
animation: blink 2s ease infinite
if
is_state('sensor.oil_status', 'WARNING' or 'ERROR')
but Iām stuck on the syntax so it only applies to this one entity within the entity card, and still shows the static pictures for this entity when itās not in either of these 2 states.
Could somebody help a bloody Beginner to alter an Element inside a Shadow Root?
I managed to find and alter ānormalā Elements, but just donāt get it with the Shadow-Root Thing
I want to remove both Value and Title Elements from a Gauge Card. In Inspector setting Text Size to 0px works quite well.
How can i adress the "svg class="text" or "text class="value-text" ?
Iām at the very limits of my CSS knowledge here, and donāt actually use the Gauge card myself, but in theory this is how you would access these elements, combined with elements before the shadow-root level (here the font-size of the entity name):
However, it depends what aspect of these elements you want to modify. Itās complicated by the fact that these elements are contained within a flexible viewbox, which means that changing things like font-size directly on these elements probably wonāt work, as they just get scaled up again by the viewbox properties.
Instead, you would have to change the dimensions of the viewbox itself. Hereās code that works (Firefox browser on Windows desktop) to change both size and color of the gauge value for example, but I have no idea if this would work desirably and consistently across different views, browsers and devices:
Whoooa amazing!!! You are a true Hero! It works perfectly
Now, as i want to learn it, im gonna go through all Lines and check all of them for their functionā¦ Thank you so much again, highly appreciate your help!
I donāt fancy the date and time picker changes from a few releases ago: Theyāre too high for my taste, so Iām trying to change it. I donāt know if there are theme variables for this (I failed to find any), so Iāve been experimenting with card mod.
I canāt figure out the CSS selector chain to achieve this. I even forced some changes by using the * selector for all elements and setting some property values with !important just to get some kind of effect for testing purposes. I went through the CSS selector docs and combinator docs to see if thereās anything I could use.
I donāt think what I want to do is possible, but perhaps someone here knows (could find anything on the large card mod threads either) how to achieve this.
Here is a screenshot with the styles applied manually. The hour and minute elements must be styled separately from the AM/PM picker: I couldnāt get a parent element styled to do both in one go.
Card mod should be added at <div class=āflex justify-between h-44 p-3 area-buttonā ā¦ >
An this is the yaml code which is added right now. ha-card should be changed to .area-button.
But just this isnāt doing it. I think I am missing something. maybe a class before the area button.
Iām pretty sure this isnāt correct for starters, or at least it doesnāt look like anything Iāve done with card-mod. But I donāt use Dwainās Dashboard, so I might be completely off the mark here. Or maybe you are using a very old version of the card?
Check the card-mod documentation, but I would expect it to start like this:
card_mod:
style: |
...<etc>
EDIT: on second thoughts, you might be trying to follow the guidance on styling cards without an <ha-card> element. But even that would look something like this (shamelessly copied from the documentation):
type: custom:mod-card
card:
type: vertical-stack # for example
...
card_mod:
style: |
...<etc>
Do not think itās required.
The OP should find out how to style these Area cards first, then he could add the code into themeās file - if he really needs it.