Advertisement
tiwing

decluttering normal title

Feb 6th, 2025
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.38 KB | None | 0 0
  1. decluttering_templates:
  2.   normal_title:
  3.     card:
  4.       type: custom:mushroom-title-card
  5.       title: '[[content]]'
  6.       alignment: start
  7.       subtitle: '[[sub-content]]'
  8.       card_mod:
  9.         style: |
  10.          ha-card {
  11.             --title-font-size: 1.3em !important;
  12.             --subtitle-font-size: 0.8em !important;
  13.             font-weight: italic;
  14.             border-bottom: {% if is_state('[[motion_entity]]', 'on') %}
  15.                    {{states('input_text.title_warning_background_color') }} solid 2px !important;
  16.                 {% elif is_state('[[motion_entity2]]', 'on') %} {{states('input_text.title_warning_background_color') }} solid 2px !important;
  17.                 {% elif is_state('[[motion_entity3]]', 'on') %} {{states('input_text.title_warning_background_color') }} solid 2px !important;
  18.                 {% elif is_state('[[motion_entity4]]', 'on') %} {{states('input_text.title_warning_background_color') }} solid 2px !important;
  19.                 {% else %} {{states('input_text.title_normal_background_color') }} solid 2px !important;
  20.                 {% endif %}
  21.             font-variant: small-caps;
  22.             padding-right: 18px !important;
  23.             padding-left: 18px !important;
  24.             padding-bottom: 4px !important;
  25.             padding-top: 4px !important;
  26.             background: {% if is_state('[[motion_entity]]', 'on') %}
  27.               linear-gradient({{states('input_text.title_warning_background_color') }}  50%, rgba(12,12,12,0)) !important;
  28.               {% elif is_state('[[motion_entity2]]', 'on') %} linear-gradient({{states('input_text.title_warning_background_color') }}  50%, rgba(12,12,12,0)) !important;
  29.               {% elif is_state('[[motion_entity3]]', 'on') %} linear-gradient({{states('input_text.title_warning_background_color') }}  50%, rgba(12,12,12,0)) !important;
  30.               {% elif is_state('[[motion_entity4]]', 'on') %} linear-gradient({{states('input_text.title_warning_background_color') }}  50%, rgba(12,12,12,0)) !important;
  31.               {% else %} linear-gradient({{states('input_text.title_normal_background_color') }} 50%, rgba(12,12,12,0)) !important
  32.               {% endif %};
  33.             }
  34.           h1 {
  35.             color: white !important;
  36.             font-weight: 700 !important;
  37.             }
  38.           h2 {
  39.             color: rgb(255,165,0) !important;
  40.             margin-top: -16px !important
  41.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement