Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Textfarbe bei Link UND Binding ändern

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Textfarbe bei Link UND Binding ändern

    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      OliS last edited by

      Hallo zusammen,

      aktuell nutze ich zur Übersicht ob ein Gerät erreichbar ist die Farbumschaltung mit Binding. Um direkt auf das gerät zuzugreifen wollte ich jetzt den reinen Text als Link ersetzen (kein Problem). Der Text wäre jetzt normal blau, auch weniger ein Problem -> über CSS ist der Text jetzt wieder grün. ABER wie kombiniere ich beides und vor allem wie für mehrere Geräte (das CSS gilt ja übergreifend)?

      Das wäre mein Eintrag fürs einfache Binding
      {h:0_userdata.0.WD.WD_AhoyDTU;h == true ? "#00ff00" :"#e92b2d"}

      und das hier ist bei CSS eingetragen:
      .textfarbe a:link,
      .textfarbe a:visited,
      .textfarbe a:active,
      .textfarbe a:hover
      {
      color:#00ff00;
      text-decoration:none;
      }

      Codierknecht 1 Reply Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @OliS last edited by

        @olis
        Das Binding steuert bei mir die CSS-Klasse

        137781fb-53a3-4b88-b875-eb748438fa67-image.png

        {val:sonoff.0.DVES_1E0CF5.POWER;val == 'true' ? 'plugOn' : 'plugOff'}
        

        Und die enthält die Farben

        .plugOn, .plugOn a {
            color: green!important;
            text-decoration: none;
        }
        .plugOff, .plugOff a {
            color: coral!important;
            text-decoration: none;
        }
        
        O 1 Reply Last reply Reply Quote 1
        • O
          OliS @Codierknecht last edited by

          @codierknecht

          da war ich ja fast dran 👍
          Klasse danke für die Hilfe

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          417
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          2
          3
          140
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo