Vorlage:Wahldiagramm einfach/Style.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Markierungen: Manuelle Zurücksetzung Zurückgesetzt
Keine Bearbeitungszusammenfassung
Markierung: Manuelle Zurücksetzung
Zeile 83: Zeile 83:
     }
     }


     /* Balken-Container erweitern für Labels */
     /* Balken ohne eigenen Hintergrund */
     dl.vertical dd {
     dl.vertical dd {
         background: none;
         background: none;
         overflow: visible;
         overflow: visible;
         position: relative;
         position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
     }
     }


     /* Labels direkt nach dem Balken */
     /* Labels neu positionieren */
     dl.vertical dt {
     dl.vertical dt {
         position: static;
         position: absolute;
        top: 200px;
        left: 50%;
        transform: translateX(-50%);
         margin: 5px 0 0 0;
         margin: 5px 0 0 0;
         width: 100%;
         width: auto;
        min-width: 0;
         text-align: center;
         text-align: center;
         font-size: 85%;
         font-size: 85%;
         white-space: nowrap;
         white-space: nowrap;
         order: 2;
         z-index: 10;
        flex-shrink: 0;
    }
 
    /* Balken-Bereich definieren */
    dl.vertical dd::before {
        content: '';
        width: 100%;
        height: 200px;
        position: relative;
        order: 1;
     }
     }


Zeile 118: Zeile 109:
         min-width: 100%;
         min-width: 100%;
         width: 100%;
         width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        order: 1;
     }
     }