thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.05k stars 169 forks source link

Where to put card_mod #309

Closed udouble closed 8 months ago

udouble commented 8 months ago

Fearly new to HA. I created a dashboard, with sensor-info of last clean by my robot vacuum. This font of the text is too large:

Scherm­afbeelding 2023-11-01 om 14 01 37

Tried to paste the card_mod on several places within the code, without succes.

square: false
type: grid
cards:
  - square: false
    type: grid
    cards:
      - show_current: true
        show_forecast: true
        type: weather-forecast
        entity: weather.buienradar
        forecast_type: daily
        theme: skynet_dark_v2
      - type: custom:mushroom-media-player-card
        entity: media_player.keuken_4
        name: Muziek - Keuken
        icon: mdi:music-note
        show_volume_level: true
        use_media_info: true
        volume_controls:
          - volume_mute
          - volume_set
          - volume_buttons
        media_controls:
          - on_off
          - shuffle
          - previous
          - play_pause_stop
          - next
          - repeat
    columns: 1
  - square: false
    type: grid
    cards:
      - type: custom:mushroom-media-player-card
        name: Water bijvullen?
        icon: mdi:water
        show_volume_level: false
        use_media_info: false
        volume_controls: []
        media_controls:
          - repeat
        layout: horizontal
        fill_container: true
        entity: binary_sensor.roborock_s7_maxv_water_shortage
    columns: 3
  - square: false
    type: grid
    cards:
      - graph: none
        type: sensor
        entity: sensor.roborock_s7_maxv_last_clean_end
        detail: 1
        hours_to_show: 1
        name: Laatste schoonmaak
    columns: 1
  - square: false
    type: grid
    cards:
      - type: custom:xiaomi-vacuum-map-card
        map_source:
          camera: camera.roborock_s7_maxv_map
        calibration_source:
          camera: true
        entity: vacuum.roborock_s7_maxv
        vacuum_platform: humbertogontijo/homeassistant-roborock
        map_locked: true
    columns: 1
columns: 1

Can you help me out? (Sorry if my language is not as technical as it should be. I'll learn and eventually rephrase "Tried to paste the card_mod on several places within the code":-).

ildar170975 commented 8 months ago

Suggest to ask similar question here: https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1 and leave GitHub for reporting bugs and proposing feature requests. Definitely you will draw more attention.

udouble commented 8 months ago

Sorry for that. I'm wizer again:-). Thanks!