Browse Source

light: hide colorpicker when color is disabled

pull/2561/head
Maxim Prokhorov 1 year ago
parent
commit
4021c4d14d
22 changed files with 13332 additions and 13339 deletions
  1. BIN
      code/espurna/data/index.all.html.gz
  2. BIN
      code/espurna/data/index.curtain.html.gz
  3. BIN
      code/espurna/data/index.garland.html.gz
  4. BIN
      code/espurna/data/index.light.html.gz
  5. BIN
      code/espurna/data/index.lightfox.html.gz
  6. BIN
      code/espurna/data/index.rfbridge.html.gz
  7. BIN
      code/espurna/data/index.rfm69.html.gz
  8. BIN
      code/espurna/data/index.sensor.html.gz
  9. BIN
      code/espurna/data/index.small.html.gz
  10. BIN
      code/espurna/data/index.thermostat.html.gz
  11. +2287
    -2287
      code/espurna/static/index.all.html.gz.h
  12. +1042
    -1042
      code/espurna/static/index.curtain.html.gz.h
  13. +1003
    -1003
      code/espurna/static/index.garland.html.gz.h
  14. +1987
    -1987
      code/espurna/static/index.light.html.gz.h
  15. +1405
    -1405
      code/espurna/static/index.lightfox.html.gz.h
  16. +1037
    -1037
      code/espurna/static/index.rfbridge.html.gz.h
  17. +1415
    -1415
      code/espurna/static/index.rfm69.html.gz.h
  18. +1137
    -1137
      code/espurna/static/index.sensor.html.gz.h
  19. +990
    -990
      code/espurna/static/index.small.html.gz.h
  20. +1024
    -1025
      code/espurna/static/index.thermostat.html.gz.h
  21. +1
    -8
      code/html/custom.css
  22. +4
    -3
      code/html/custom.js

BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.curtain.html.gz View File


BIN
code/espurna/data/index.garland.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.lightfox.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


BIN
code/espurna/data/index.thermostat.html.gz View File


+ 2287
- 2287
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 1042
- 1042
code/espurna/static/index.curtain.html.gz.h
File diff suppressed because it is too large
View File


+ 1003
- 1003
code/espurna/static/index.garland.html.gz.h
File diff suppressed because it is too large
View File


+ 1987
- 1987
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 1405
- 1405
code/espurna/static/index.lightfox.html.gz.h
File diff suppressed because it is too large
View File


+ 1037
- 1037
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 1415
- 1415
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 1137
- 1137
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 990
- 990
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 1024
- 1025
code/espurna/static/index.thermostat.html.gz.h
File diff suppressed because it is too large
View File


+ 1
- 8
code/html/custom.css View File

@ -605,20 +605,13 @@ input::placeholder {
display: none;
}
#light-picker.light-on {
#light-picker.light-color.light-on:not(.light-cct) {
display: block;
opacity: 1;
content-visibility: visible;
contain: style layout paint;
}
#light-picker.light-cct,
#light-picker.light-on.light-cct {
content-visibility: hidden;
opacity: 0;
display: none;
}
#light-cct {
content-visibility: hidden;
}

+ 4
- 3
code/html/custom.js View File

@ -2205,9 +2205,10 @@ function colorPickerState(value) {
}
function colorEnabled(value) {
styleInject([
styleVisible("#light-picker", value)
]);
if (value) {
const picker = document.getElementById("light-picker");
picker.classList.add("light-color");
}
channelVisible({
"r": !value,


Loading…
Cancel
Save