New modules I wrote for bubble cards
This commit is contained in:
17
bubble/main_button_state_red.yaml
Normal file
17
bubble/main_button_state_red.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
main_button_state_red:
|
||||
name: Main Button State Red
|
||||
version: '1.0'
|
||||
creator: Tony Stork
|
||||
supported:
|
||||
- button
|
||||
description: Will turn the button red if the entity state is on, otherwise default style applies
|
||||
code: |-
|
||||
.is-unavailable {
|
||||
opacity: 0.5 !important;
|
||||
}
|
||||
.bubble-button-background {
|
||||
opacity: 1 !important;
|
||||
background-color: ${state === 'on' ? 'var(--error-color)' : 'var(--bubble-main-background-color)'} !important;
|
||||
transition: background-color 1s !important;
|
||||
}
|
||||
editor: ''
|
Reference in New Issue
Block a user