Bonsoir,
J’essaie en vain de modifier la taille du badge mais sans succès.
Que faut-il que j’ajoute au code pour le faire ? J’ai réussi à agrandir l’image mais pas le badge. Merci
type: custom:mushroom-person-card
entity: person.thomas_favreau
icon_type: entity-picture
fill_container: false
layout: vertical
primary_info: state
secondary_info: last-updated
card_mod:
style:
mushroom-shape-avatar$: |
.picture {
display: flex;
{% if states(config.entity) == 'home' %}
animation: pinggreen 3s infinite;
{% endif %}
{% if states(config.entity) == 'Travail' %}
animation: pingblue 3s infinite;
{% endif %}
{% if states(config.entity) == 'away' %}
animation: pingred 3s infinite;
{% endif %}
}
@keyframes pinggreen {
0% {box-shadow: 0 0 5px 3px rgba(var(--rgb-green), 0.9);}
100% {box-shadow: 0 0 5px 15px transparent;}
}
@keyframes pingblue {
0% {box-shadow: 0 0 5px 3px rgba(var(--rgb-blue), 0.9);}
100% {box-shadow: 0 0 5px 15px transparent;}
}
@keyframes pingred {
0% {box-shadow: 0 0 5px 3px rgba(var(--rgb-red), 0.9);}
100% {box-shadow: 0 0 5px 15px transparent;}
}
.container {
--icon-size: 80px !important;
}