hello
when i use following code for button template, i get this:
hold_action_template1:
hold_action:
action: call-service
service: browser_mod.popup
service_data:
card:
type: custom:vertical-stack-in-card
cards:
- type: entities
show_header_toggle: false
entities:
- entity: >
[[[ return entity.entity_id ]]]
secondary_info: last-changed
- type: 'custom:light-entity-card'
entity: light.wled_tv_top_shelf
brightness: false
color_temp: false
full_width_sliders: true
hide_header: true
show_slider_percent: true
smooth_color_wheel: true
style: |
ha-card {
box-shadow: none;
margin-bottom: -1em;
}
- type: custom:light-popup-card
entity: >
[[[ return entity.entity_id ]]]
icon: none
fullscreen: false
brightnessWidth: 90px
brightnessHeight: 250px
borderRadius: 1.8em
sliderColor: '#c7c7c7'
sliderTrackColor: rgba(25, 25, 25, 0.9)
style: |
#popup > div.action-holder > div > div > span {
background: radial-gradient(circle at 50% 0, rgba(255,0,0,.5), rgba(255,0,0,0) 70.71%),
radial-gradient(circle at 6.7% 75%, rgba(0,0,255,.5), rgba(0,0,255,0) 70.71%),
radial-gradient(circle at 93.3% 75%, rgba(0,255,0,.5), rgba(0,255,0,0) 70.71%) beige;
}
#popup > div.action-holder > div > div {
margin: 0.2em 0 0 0;
}
#brightnessValue {
color: rgba(255, 255, 255, 0.7);
margin: -0.8em 0 0.7em 0;
font-size: 1.9em;
font-weight: 400;
font-family: SF Display;
letter-spacing: 0.04em;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
#popup {
margin: 0 0 0.8em 0;
}
#popup > div.range-holder > input[type=range]::-webkit-slider-thumb {
border: 0;
height: 0;
width: 0;
cursor: pointer;
}
deviceID:
- this
style:
'--ha-card-border-radius': 0 0 0.8em 0.8em
border-radius: 0.8em
opacity: 0.9
title: >
[[[ return entity.attributes.friendly_name ]]]
i want the color wheel and brightness bar as horizontal stack, i changed the code and get this:
hold_action_template1:
hold_action:
action: call-service
service: browser_mod.popup
service_data:
card:
type: custom:vertical-stack-in-card
cards:
- type: entities
show_header_toggle: false
entities:
- entity: >
[[[ return entity.entity_id ]]]
secondary_info: last-changed
- type: horizontal-stack
cards:
- type: 'custom:light-entity-card'
entity: light.wled_tv_top_shelf
brightness: false
color_temp: false
full_width_sliders: true
hide_header: true
show_slider_percent: true
smooth_color_wheel: true
style: |
ha-card {
box-shadow: none;
margin-bottom: -1em;
}
- type: custom:light-popup-card
entity: >
[[[ return entity.entity_id ]]]
icon: none
fullscreen: false
brightnessWidth: 90px
brightnessHeight: 250px
borderRadius: 1.8em
sliderColor: '#c7c7c7'
sliderTrackColor: rgba(25, 25, 25, 0.9)
style: |
#popup > div.action-holder > div > div > span {
background: radial-gradient(circle at 50% 0, rgba(255,0,0,.5), rgba(255,0,0,0) 70.71%),
radial-gradient(circle at 6.7% 75%, rgba(0,0,255,.5), rgba(0,0,255,0) 70.71%),
radial-gradient(circle at 93.3% 75%, rgba(0,255,0,.5), rgba(0,255,0,0) 70.71%) beige;
}
#popup > div.action-holder > div > div {
margin: 0.2em 0 0 0;
}
#brightnessValue {
color: rgba(255, 255, 255, 0.7);
margin: -0.8em 0 0.7em 0;
font-size: 1.9em;
font-weight: 400;
font-family: SF Display;
letter-spacing: 0.04em;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
#popup {
margin: 0 0 0.8em 0;
}
#popup > div.range-holder > input[type=range]::-webkit-slider-thumb {
border: 0;
height: 0;
width: 0;
cursor: pointer;
}
deviceID:
- this
style:
'--ha-card-border-radius': 0 0 0.8em 0.8em
border-radius: 0.8em
opacity: 0.9
title: >
[[[ return entity.attributes.friendly_name ]]]
what i dont like here, the fonts for brightness slider and background is changed. can any one help me what to change here?