not sure if this was posted before, but helping out on discord today and thought Iād share here too:
nice if you dont need the link, or find it lacking. simply hide it.
card-mod-more-info-yaml: |
$: |
.mdc-dialog {
backdrop-filter: blur(17px);
-webkit-backdrop-filter: blur(17px);
}
/* hide the 'Show more' on the modern more-info cards */
ha-more-info-history:
$: |
.header > a, a:visited {
display: none;
}
mm, not sure yetā¦ seems to return the same path in inspectorā¦ /html/body/home-assistant//ha-more-info-dialog//ha-dialog/div[2]/ha-more-info-history//div/a
also, the other mod is not very sticky when used in the card-mod-theme. Ive seen that with other mods, and decided to add those to love cards directly.
Hm. Where is the difference to your first try? I used the same for some months (not to hide, but for other colors). But unfortunately it works only on first tab.
I am using the Compact header code from the cookbook for my custom theme. However, thereās an issue when I enable Edit Dashboard in Lovelace. I am not able to click on the + icon at the top/left of the screen to exit Edit Dashboard mode.
See below screenshot, I am hoping someone who knows CSS much better than me could help modify the CSS Compact Header code from the Cookbook so I can exit Dashboard mode again.
Thank you. That fixed the issue. However, when I enter āEdit Dashboardā mode, it wastes a lot of empty space. Do you (or anyone else) know how to make the āEdit Dashboardā header also compact?
Yes, itās only while Iām editing; which sometimes I use a lot. I thought it would be possible via card-mod since I saw CSS code referencing edit mode in the Cookbook link I posted. I just wasnāt sure what to change.
paper-item-icon-color: var(--primary-text-color) # Icon color
paper-item-icon-active-color: var(--primary-color) #'#F9C536' # Icon color active
is an option, but then all regular icon also are colored like that, and Id like to have the on/off icons stand out from regular icons.
do we have a dedicated theme variabel for on/off?
or would it be āmwc-switch-unchecked-button-color and --mwc-switch-checked-button-color? Didnt find the latter in that file, but hey that would be an estimated guessā¦
The card-mod data does not contain styles for shadowRoot:
The 2nd tab is selected, then the theme is reloaded (as described here) - now the style for shadowRoot is still absent:
But now we got a style inside the ha-more-info-history $:
So, the 1st style is stored in the card-mod element on the ha-dialog level, the 2nd style - on the ha-more-info-history $ level. It is not created on the dialog open.
Thanks for pointing me in this direction. At least I have a work-around for my case (color of text, but if @Mariusthvdb would set text to background, this should āhideā as well).
So first is, what I wanted, other color for the links and smaller. This is only working on 1. tab.
But as primary color is only used there for the link.color and not set before in this shadow the additional second is changing the color on tab 2 as well. So still not able to set the size or other attributes there, but color is fine now on tab 2 as well.
Hm. You wanted to hide the links here: š¹ Card-mod - Super-charge your themes! - #1006 by Mariusthvdb. I only want another color. But then we discussed, that it is not possible to do this on second tab. And I found a way to color the link on second tab. And so, if you set link color to backrund, you should be able to āhideā there as well.