From 6a427b1819dd1e19509c185a302345c34856bb4f Mon Sep 17 00:00:00 2001 From: wilbiev Date: Sat, 21 Dec 2024 19:00:58 +0000 Subject: [PATCH] Fix: Update card_mod declarations and indentation --- .../2-line_cards/card_graph.yaml | 11 +++---- .../card_templates/cards/card_cover.yaml | 10 +++---- .../card_templates/cards/card_fan.yaml | 10 +++---- .../card_templates/cards/card_light.yaml | 10 +++---- .../card_templates/cards/card_weather.yaml | 29 ++++++++++--------- .../internal_templates/extended_card.yaml | 11 +++---- 6 files changed, 42 insertions(+), 39 deletions(-) diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml index 3aad925bc..8d8791908 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml @@ -83,8 +83,9 @@ card_graph: points_per_hour: "[[[ return variables.ulm_card_graph_points; ]]]" group_by: "[[[ return variables.ulm_card_graph_group_by; ]]]" line_width: "[[[ return variables.ulm_card_graph_line_width; ]]]" - style: | - ha-card { - box-shadow: none; - border-radius: var(--border-radius); - } + card_mod: + style: | + ha-card { + box-shadow: none; + border-radius: var(--border-radius); + } diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_cover.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_cover.yaml index 7dfa80314..8b03143da 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_cover.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_cover.yaml @@ -623,11 +623,11 @@ card_cover: thumbVerticalPadding: "0px" thumbWidth: "0px" card_mod: - style: | - ha-card { - border-radius: 14px; - box-shadow: none; - } + style: | + ha-card { + border-radius: 14px; + box-shadow: none; + } item4: card: type: "custom:button-card" diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_fan.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_fan.yaml index eefda8c75..ee883b831 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_fan.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_fan.yaml @@ -250,11 +250,11 @@ card_fan: thumbVerticalPadding: "0px" thumbWidth: "0px" card_mod: - style: | - ha-card { - border-radius: 14px; - box-shadow: none; - } + style: | + ha-card { + border-radius: 14px; + box-shadow: none; + } button: card: type: "custom:button-card" diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_light.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_light.yaml index dd2180f87..01a81af87 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_light.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_light.yaml @@ -272,11 +272,11 @@ card_light: thumbVerticalPadding: "0px" thumbWidth: "12px" card_mod: - style: | - ha-card { - border-radius: 14px; - box-shadow: none; - } + style: | + ha-card { + border-radius: 14px; + box-shadow: none; + } item3: card: type: "custom:button-card" diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_weather.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_weather.yaml index dc7604f73..4cff98151 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_weather.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_weather.yaml @@ -32,17 +32,18 @@ card_weather: secondary_info: "[[[ return variables.ulm_card_weather_secondary_info ]]]" backdrop: "[[[ return variables.ulm_card_weather_backdrop ]]]" custom: "[[[ return variables?.ulm_card_weather_custom ]]]" - style: | - ha-card { - border-radius: 14px; - box-shadow: none; - } - ha-card.type-custom-simple-weather-card { - padding: 24px; - } - ha-card[bg].type-custom-simple-weather-card{ - color: white; - } - ha-card.type-custom-simple-weather-card .weather__info { - text-align: left - } + card_mod: + style: | + ha-card { + border-radius: 14px; + box-shadow: none; + } + ha-card.type-custom-simple-weather-card { + padding: 24px; + } + ha-card[bg].type-custom-simple-weather-card{ + color: white; + } + ha-card.type-custom-simple-weather-card .weather__info { + text-align: left + } diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/internal_templates/extended_card.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/internal_templates/extended_card.yaml index ec86a3f34..12467eb45 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/internal_templates/extended_card.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/internal_templates/extended_card.yaml @@ -80,8 +80,9 @@ extended_card: item2: card: type: "custom:button-card" - style: | - ha-card { - box-shadow: none; - border-radius: var(--border-radius); - } + card_mod: + style: | + ha-card { + box-shadow: none; + border-radius: var(--border-radius); + }