Move more button card button theming to modules
This commit is contained in:
@@ -214,15 +214,9 @@ streamline_templates:
|
|||||||
action: none
|
action: none
|
||||||
hold_action:
|
hold_action:
|
||||||
action: none
|
action: none
|
||||||
styles: |-
|
modules:
|
||||||
.is-unavailable {
|
- default
|
||||||
opacity: 0.5 !important;
|
- popup_security_button
|
||||||
}
|
|
||||||
.bubble-button-background {
|
|
||||||
opacity: 1 !important;
|
|
||||||
background-color: ${state === 'on' ? 'var(--error-color)' : 'var(--background-color-2)'} !important;
|
|
||||||
transition: background-color 1s !important;
|
|
||||||
}
|
|
||||||
popup_accent_color_button:
|
popup_accent_color_button:
|
||||||
defaults:
|
defaults:
|
||||||
- name: ''
|
- name: ''
|
||||||
@@ -244,14 +238,14 @@ streamline_templates:
|
|||||||
action: none
|
action: none
|
||||||
hold_action:
|
hold_action:
|
||||||
action: none
|
action: none
|
||||||
styles: |-
|
modules:
|
||||||
.bubble-button-background {
|
- default
|
||||||
opacity: 1 !important;
|
- popup_accent_color_button
|
||||||
background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important;
|
|
||||||
}
|
|
||||||
popup_temperature_button:
|
popup_temperature_button:
|
||||||
defaults:
|
defaults:
|
||||||
- name: ''
|
- name: ''
|
||||||
|
- hot_entity: ''
|
||||||
|
- cold_entity: ''
|
||||||
card:
|
card:
|
||||||
type: custom:bubble-card
|
type: custom:bubble-card
|
||||||
card_type: button
|
card_type: button
|
||||||
@@ -259,15 +253,12 @@ streamline_templates:
|
|||||||
entity: '[[entity]]'
|
entity: '[[entity]]'
|
||||||
name: '[[name]]'
|
name: '[[name]]'
|
||||||
show_attribute: false
|
show_attribute: false
|
||||||
styles: |
|
modules:
|
||||||
.is-unavailable {
|
- default
|
||||||
opacity: 0.5 !important;
|
- popup_temperature_button
|
||||||
}
|
popup_temperature_button:
|
||||||
.bubble-button-background {
|
hot_entity: '[[hot_entity]]'
|
||||||
opacity: 1 !important;
|
cold_entity: '[[cold_entity]]'
|
||||||
background-color: ${hass.states['[[hot_entity]]'].state === 'on' ? 'var(--error-color)' : 'var(--background-color-2)'} !important;
|
|
||||||
transition: background-color 1s !important;
|
|
||||||
}
|
|
||||||
popup_timer_card:
|
popup_timer_card:
|
||||||
defaults:
|
defaults:
|
||||||
name: ''
|
name: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user