Iāve managed to get the position state to show on the card, but now how can I get more info of the position sensor when clicking it? Also can I add a valve icon in front of the position %?
You seem to have changed a height of the heading, right? Probably you need to align a container (which includes all elements) vertically. Check in Code Inspector, find this container and play with corr attributes, cannot tell more, no access to pc
I have this weird issue that my column id (in hui view) has a certain width but the class for some reason has a max-width (purple is the āpaddingā)
It is basically nor dynamically adjusting to the screen width (e.g. when I flip the phone)
My theme file does not command any sizes or widths and each view starts with a simple vertical-stack. I tried to apply widths directly to the cards to no avail.
The only thing I could think of was my use of kiosk mode but even without it, the column width is not dynamic.
Any help is appreciated. Iām running out of ideas here.
This is wrong syntax. You placed a media query between 2 selectors. It must be topmost. Imagine that simple removing media query should not break the syntax - but it breaks in your case.
This is also wrong.
Do you want to say that ānav-barā class contains ha-card element?
Anyway, suggest you first to achieve your goal in a theme without using media query - to find out a proper DOM path.
If āhav-barā is a class of a card - then probably a proper path should be āha-card.nav-barā.
So try this (untested):
card-mod-card: |
/* Styles for mobile devices */
@media (max-width: 767px) {
ha-card.nav-bar {
ā¦.
}
}
Also, discussing themes is not supposed to be done here, find a dedicated card-mod-themes thread.
I knew that there was a proposal for that, but I learned that it became baseline just some months ago. If he is using one of the major browsers, that sintax should not be the issue, the issue should be somehere else.
This is the link to the documentation in MDN. Now it is possible to make all those cool stuff directly in CSS
It will work too. One thing that doesnāt work is class concatenation, but nowadays you can write almost a SASS code and it will be interpreted by the browser.
Well I have been using CSS for a long time and this is a new world also for me
I would not use it in production code yet though, I would wait for 90+ compatibility.
Hello! I am trying to increase the icon size of the built-in weather card (forecast) using card mod. I am a newbie with CSS. I went to the design inspector in Firefox and inspected the first icon on the card. Hereās the screenshot:
If I change the width and height of .forecast-image-icon to 64px in the design inspector, it works as intended. All the forecast icons get bigger. I have another card for weekly forecast. Itās icons get bigger too, which is fine. I think I updated the .forecast-image-icon class attributes globally.