MediaWiki:Common.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(47 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 20: Zeile 20:
}
}


#footer-info-lastmod { display: none; }
.last-modified-bar { display: none; }
/* hide Toolbox from anonymous users */
body.anon #p-tb {
    display: none;
}


/* Bilder responsive machen*/
/* Bilder responsive machen*/
Zeile 32: Zeile 40:
     float: left !important;
     float: left !important;
     width: 200px !important;
     width: 200px !important;
    background: none !important;
    padding: 1rem !important;
    border: 0 !important;
}
.img-left-element {
    float: left !important;
    width: 300px !important;
     background: none !important;
     background: none !important;
     padding: 1rem !important;
     padding: 1rem !important;
Zeile 46: Zeile 62:
}
}


.wikitable {
    background-color: #FFFFFF;
}
/* Flexbox-Tabellenersatz */
.table-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    margin: 0 auto;
}


/* Responsive Tabelle für Peripheriegeräte */
.table-column {
.responsive-table {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-direction: column;
     width: 100%; /* Wichtig für die Breite */
     background: white; /* Wichtig: Überdeckt den Container-Hintergrund */
    border: 1px solid #ddd;
}
}


.responsive-table > * {
.table-header {
     flex: 1 1 auto; /* Gleichmäßige Verteilung */
     background-color: #eaecf0;
     border: 1px solid #ccc; /* Rahmen wie bei wikitable */
    text-align: center;
     padding: 8px; /* Innenabstand */
    padding: 0.5rem;
    box-sizing: border-box; /* Wichtig für die Breitenberechnung */
    font-weight: bold;
     border: 1px solid #ddd; /* Sync mit gap */
     margin: -1px 0 0 -1px; /* Kompensiert gap für perfekte Borders */
}
}


/* Überschriften */
.table-content {
.responsive-table > :first-child {
    flex: 1;
     font-weight: bold;
    background-color: #f8f9fa;
    padding: 1rem;
    border: 1px solid #ddd;
    margin: -1px 0 0 -1px;
    min-height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
     align-items: center;
     text-align: center;
     text-align: center;
    flex-direction: column;
}
.mw-redirectedfrom {
    display: none;
}
.mobile-only {
    display: none !important;
}
}


Zeile 70: Zeile 117:
/* Mobile Optimierung */
/* Mobile Optimierung */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .flex-step-container {
     .table-container {
         gap: 15px; /* Reduzierter Abstand auf kleinen Bildschirmen */
         grid-template-columns: 1fr;
     }
     }
 
     .mobile-only {
     .responsive-table {
         display: block !important;
         flex-direction: column; /* Stapeln untereinander */
     }
     }
}
}