Switch/push/button hintergrund immer transparent .. wie?

Begonnen von HB86, 19 September 2016, 20:41:03

Vorheriges Thema - Nächstes Thema

HB86

Hallo,

wie krieg ich das hin, dass der Hintergrund der Buttons, Push usw. immer transparent ist ohne das bei jedem Element einzeln einzustellen?

Habe in die user css schon folgendes eingefügt:


.symbol.on{color:#aa6900;background-color:#transparent;}
.symbol.off{color:#2A2A2A;background-color:#transparent;}
.switch.on{color:#aa6900;background-color:#transparent;}
.switch.off{color:#2A2A2A;background-color:#transparent;}
.link{color:#aa6900;}


Leider funktioniert das so nicht.
Jemand ne Idee?

Tobias

Maintainer: Text2Speech, TrashCal, MediaList

Meine Projekte: https://github.com/tobiasfaust
* PumpControl v2: allround Bewässerungssteuerung mit ESP und FHEM
* Ein Modbus RS485 zu MQTT Gateway für SolarWechselrichter

HB86

#2
Wäre auch ne variante, ich wollt das aber bisschen "eleganter" lösen und das nicht bei jedem Element einzeln eingeben.

Zudem müsste ich dann auch bei jedem Element data-on-color und data-off-color seperat einstellen.

setstate

dafür müsste sowas in das User CSS


i#bg {
    color: transparent !important;
}

HB86

Danke .. das funktioniert!

Aber wie stelle ich die data-on-color und data-off-color global ein?


setstate

So wie in deinem ersten Post, in den pseudo classes ändern. Die werden beim Initialisieren der Widgets ausgelesen. Nur "#transparent" gibt es nicht, nur "transparent"

HB86

so hab ich das jetzt in der user css stehen:


.symbol.on{color:#aa6900;background-color:transparent;}
.symbol.off{color:#d1d1d1;background-color:transparent;}
.switch.on{color:#aa6900;background-color:transparent;}
.switch.off{color:#d1d1d1;background-color:transparent;}
.link{color:#aa6900;}


Nur leider funktioniert das nicht!
Jemand ne Idee?