#Mushroom Text Wrap
1 messages · Page 1 of 1 (latest)
entity: sensor.weather_station_temperature
name: Outdoor Temperature
fill_container: false
icon: mdi:thermometer
layout: vertical
grid_options:
columns: 4
rows: auto```
entity: sensor.weather_station_temperature
name: Outdoor Temperature
fill_container: false
icon: mdi:thermometer
layout: vertical
grid_options:
columns: 4
rows: auto
card_mod:
style:
mushroom-state-info$: |
.primary {
white-space: normal !important;}```
Have fun
Thank you very much TPC!
One more hopefully quick question, I am trying to remove the background and shadow. I have done this for other cards and it works but not finding how to combine the text wrap and background removal. Any suggestions? I followed a the card mod guide but not sure what is wrong.
style:
mushroom-state-info$: |
.primary {
white-space: normal !important;}
ha-card {
background-color: none;
box-shadow: none;```
style:
mushroom-state-info$: |
.primary {
white-space: normal !important;}
.: |
ha-card {
box-shadow: none;
background: none;}```
Might have to add !important in some cases
But it's cleaner if you can make it work without it
thank you, so the .: | is essentially an "and"?
It's the main class I think?
It acts the same as styles: |
That's all I know. I don't really know css well. I just learned some basic patterns for my dashboard lol
yeah i'm trying to pick all these little things up. very confusing to me as I don't code. lots of copy paste. Thank you again!
No problem! I'm not a coder either. But if you have a basic understanding and know exactly what you want you'll eventually get there. Might just take a bit longer.
i am an architect / designer so i know EXACTLY what I want. getting there is tricky because things need to look good hahah
Go to the Mushroom/card_mod thread in the forum. https://community.home-assistant.io/t/mushroom-cards-card-mod-styling-config-guide/600472
After the list of cards, expand the section called What the $ and .: | symbols do for more info.
oh fantastic. this will help a lot. thank you