Closed IamMrandrew closed 3 years ago
Hi @IamMrandrew ,
The question is a bit old but might help others also.
Styling Individual Tile: Yes, but with a work around, you can use the conditionalClass option to add a class to a specific tile like this:
conditionalClass: >
[[[
return "your-custom-class";
]]]
This class can than be used in the style part for specific styling.
Styling Custom Card: Can really help with card-mod but it is trial and error to get the style of custom card right.
Color of Tile's Icon i am gonna search for this bug as it is mentioned multiple times
Different Popup Cards in Same Row: Yes it is possible. You can define the popup on the row and use popupExtend to set specific settings for a tile. But you dont have to set in on the row, you can also just use popup on one tile or on multiple tiles in a row. The option to put it on the row was to get less configuration when using the same popup for a row of lights for example.
Hey there, I am new to this repo but i am definitely in love with it. I got a few questions about styling.
Styling Individual Tile
First, I understand that we can style and change the variables of css with the whole views (which means apply to every cards/ classes). But is there any way for me to apply style to individual tile? (For custom card, I can use cardStyle)
Styling Custom Card
Also, for custom card (custom:mini-media-player), I cannot change the css (due to the shadow-root i guess?) the margin and padding seems a bit offset. I cant do it without handling the shadow-root on (custom:mini-graph-card) but not on the media player card. I tried to implement like card-mod but seems not working for me.![截圖 2020-11-24 11 42 12](https://user-images.githubusercontent.com/62586450/100044233-1afa4900-2e4a-11eb-9b04-1447f14ad5f4.png)
Here is my code for Mini-media-player, which is not important but just post for references
Here is my code for Mini-media-player (Not working)
Color of Tile's Icon
Thirdly, the icon of light change according to its color. I have already set useBrightness and useTemperature to false. But it still following to the light's color (RGB lights), which is not convenient as white light is kind of invisible on my tile![截圖 2020-11-24 11 41 52](https://user-images.githubusercontent.com/62586450/100044214-0d44c380-2e4a-11eb-861e-2df0dd6f41cc.png)
Different Popup Cards in Same Row
Also, is there any option for me to have different pop up cards for different entities in the same rows?
There are a lots of question xddd. Thanks a lot!! You have done a great job