#Tile card card-mod

1 messages · Page 1 of 1 (latest)

steep matrix
#

He's an example of some card mod stuff for the Tile card.

#
type: vertical-stack
title: Tile card (card_mod)
cards:
  - type: tile
    entity: light.bedroom_lights
    card_mod:
      style:
        ha-tile-info$: |
          .primary {
            font-size: 8px !important;
          }
          .secondary {
             visibility: hidden;
           }
           .secondary:before {
             visibility: visible;
             content: "{{ states(config.entity) | title }}";
             font-size: 12px !important;
           }
        .: |
          ha-card {
            font-family: arial;
            padding: 15px 15px 15px 15px;
          }
  - type: tile
    entity: light.bedroom_lights
    card_mod:
      style:
        ha-tile-info$: |
          .secondary {
             visibility: hidden;
           }
        .: |
          ha-card {
            padding: 0px 0px 0px 0px;
            width: 200px;
          }