Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. [Erledigt] CSS Anpassung jqui-Button State

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    [Erledigt] CSS Anpassung jqui-Button State

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

      Hallo zusammen,

      ich passe gerade ein wenig meine Views an.

      Bei einer CSS Anpassung komme ich einfach nicht mehr weiter.

      Ich nutze den Button jqui-Button State.
      394_vis-button.png

      Wie bekomme ich es nun hin das der Text weiter links beginnt und nicht erst nach ein paar px?

      Hier meine aktuelle CSS config:

      .button4 .ui-corner-all
      {
      border-radius: 0px !important;
      }
      
      .button4 .ui-state-default {
          background: rgba(77, 77, 77, 1) !important;
          color: #ffffff !important;
          font-weight: normal !important;
          font-family: RobotoCondensed-Regular !important;
          font-size: 16px !important;
          border: 0px solid #ffffff !important;
          box-shadow: inset 0px 0px 1px #FFFFCC !important;;
          padding: 0px !important;
      }
      
      

      Vielen Dank für die Hilfe.

      Gruß

      Michael

      1 Reply Last reply Reply Quote 0
      • P
        pix last edited by

        Hallo,

        habe das reproduziert: 261_bildschirmfoto_2017-06-22_um_14.22.44.jpg
        Zu Ansteuerung habe ih allerdings die individuelle Widget-ID verwendet #w01250

        Den Text kannst du mit dem Padding im Rahmen positionieren. Ein negatives Padding für links ist der Schlüssel.

        padding: oben rechts unten links
        ````Wenn der Wert 0 gesetzt wird, ist keine Einheit nötig.
        
        

        #w01250 .ui-button
        {
        border-radius: 0 !important;
        }

        #w01250 .ui-state-default {
        background: rgba(77, 77, 77, 1) !important;
        color: #ffffff !important;
        font-weight: normal !important;
        font-family: RobotoCondensed-Regular !important;
        font-size: 16px !important;
        border: 0 solid #ffffff !important;
        box-shadow: inset 0 0 1px #FFFFCC !important;;
        padding: 0 0 0 -10px !important;
        }

        
        Gruß
        
        Pix
        1 Reply Last reply Reply Quote 0
        • M
          mctom last edited by

          Hallo Pic,

          mit deiner Variante hat es leider auch nicht geklappt aber ich habe es jetzt trotzdem geschafft.

          Hier die CSS mit denen es klappt:

          .button4 .ui-button-text-only .ui-button-text {
              padding: 0 !important;
          }
          

          Gruß

          MIchael

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

          Support us

          ioBroker
          Community Adapters
          Donate

          757
          Online

          32.1k
          Users

          80.6k
          Topics

          1.3m
          Posts

          2
          3
          2298
          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