Zum Inhalt springen

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

Aus HammWiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 9: Zeile 9:
     float: none !important;
     float: none !important;
}
}


.divider{
.divider{
Zeile 60: Zeile 58:
     display: inline;
     display: inline;
}
}


/* Mobile/Minerva-spezifische Anpassungen */
/* Mobile/Minerva-spezifische Anpassungen */
Zeile 66: Zeile 63:
     .wahldiagramm {
     .wahldiagramm {
         float: none !important;
         float: none !important;
         margin: 10px 0 20px 0 !important;
         margin: 10px auto 20px auto !important;
         clear: both;
         clear: both;
         display: block;
         display: block;
         width: 100% !important;
         width: max-content !important;
         max-width: 100% !important;
         max-width: calc(100% - 20px) !important;
         box-sizing: border-box;
         box-sizing: border-box;
    }
    /* Diagramm-Container zentrieren */
    dl.vertical {
        justify-content: center;
        min-width: 100%;
    }
    /* Balken breiter auf kleinen Screens */
    @media screen and (max-width: 480px) {
        dl.vertical dd,
        dl.vertical dt {
            min-width: 35px;
        }
        dl.vertical dd span {
            min-width: 35px;
        }
        dl.vertical dt {
            margin: 205px 0 0 -35px;
        }
     }
     }
}
}

Version vom 17. Juni 2025, 21:44 Uhr

.wahldiagramm{
    border: 1px solid #ccc; 
    padding: 0 0.8em 0.4em 0.8em; 
    background-color: #fff; 
    width: max-content; 
    max-width: 100%; 
    overflow: auto;
    margin: 10px 0 20px 0 !important;
    float: none !important;
}

.divider{
    width: 0.5em;
    background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%);
    height: 200px;
}

dl.vertical{
    font-size: 12px; 
    font-family: sans-serif;
    display: flex;
    flex-direction: row;
    margin: 0;
}

dl.vertical dt{
    min-width: 45px; 
    margin: 205px 0 0 -45px; 
    text-align: center;
    font-weight: normal;
    font-size: 90%;
    flex-shrink: 0 !important;
}

dl.vertical dd { 
    min-width: 45px; 
    height: 200px; 
    position: relative;
    margin-left: 0;
    background: repeating-linear-gradient(0deg, #ddd, #ddd 1px, #fff 1px, #fff 20%);
    overflow: hidden;
    flex-shrink: 0 !important;
}

dl.vertical dd span{
    min-width: 45px; 
    display: block; 
    position: absolute; 
    bottom: 0px; 
    background: #CCC; 
    color: #FFF; 
    text-align: center;
    font-size: 80%;
}

dl.vertical dd span:before{
    content: "\200D";
    display: inline;
}

/* Mobile/Minerva-spezifische Anpassungen */
@media screen and (max-width: 768px) {
    .wahldiagramm {
        float: none !important;
        margin: 10px auto 20px auto !important;
        clear: both;
        display: block;
        width: max-content !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box;
    }

    /* Diagramm-Container zentrieren */
    dl.vertical {
        justify-content: center;
        min-width: 100%;
    }

    /* Balken breiter auf kleinen Screens */
    @media screen and (max-width: 480px) {
        dl.vertical dd,
        dl.vertical dt {
            min-width: 35px;
        }

        dl.vertical dd span {
            min-width: 35px;
        }

        dl.vertical dt {
            margin: 205px 0 0 -35px;
        }
    }
}
Cookies helfen uns bei der Bereitstellung von HammWiki. Durch die Nutzung von HammWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.