Not sure if it’s right place to ask, but please help me to reduce space between icon and text. TY
type: custom:stack-in-card
mode: vertical
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: First Floor
icon: mdi:home-floor-1
icon_color: teal
card_mod:
style: |
ha-card {
--card-primary-font-size: 1rem;
border: none;
box-shadow: none;
background: rgba(0,0,0,0);
margin-top: rem;
margin-left:5rem
}
- type: horizontal-stack
cards:
- type: custom:button-card
show_name: true
show_icon: true
icon: mdi:sofa
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.living_room_lights') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.living_room_lights','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: living-room
layout: icon_name
name: Living Room
theme: ios-dark-mode
- type: custom:button-card
show_name: true
show_icon: true
icon: mdi:pot-steam
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.kitchen_lights_2') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.kitchen_lights_2','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: kitchen
layout: icon_name_state
name: 'Kitchen '
theme: ios-dark-mode
- type: horizontal-stack
cards:
- type: custom:button-card
show_name: true
show_icon: true
icon: mdi:hat-fedora
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.hallway_lights') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.hallway_lights','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: hallway
layout: icon_name_state
name: Hallway
theme: ios-dark-mode
- type: custom:button-card
show_name: true
show_icon: true
icon: mdi:bathtub
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.light') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.light','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: my-bathroom
layout: icon_name_state
name: My Bathroom
theme: ios-dark-mode
- type: horizontal-stack
cards:
- type: custom:button-card
show_name: true
show_icon: true
icon: mdi:go-kart
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.garage_lights_light') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.garage_lights_light','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: garage
layout: icon_name_state
name: Garage
theme: ios-dark-mode
- type: custom:button-card
show_name: true
show_icon: true
icon: phu:outside
size: 25px
color: teal
card_mod:
style: |-
ha-card {
{% if states('light.outside_lights') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.outside_lights','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
font-size: 10px !important;
}
tap_action:
action: navigate
navigation_path: outside
layout: icon_name_state
name: Outside
theme: ios-dark-mode
card_mod:
style: |
ha-card {
background-size: 100% 100%;
background-image: url({{/local/png/weather/cloudy.gif}});
}
TY