MediaWiki:Common.css: Difference between revisions

From Cobi Collectors Wiki
Created page with ".infobox { box-shadow: 5px 5px 10px black; vertical-align:middle; background: #ebecf0; border: 1px solid #aaa; float: right; margin: 0 0 0.5em 0.5em; padding: 0.5em; width: 300px; } .headersetpage { width: 100%; margin-bottom: 20px; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; font-size:18px; } .headernocolumn { width: 100%; margin-bottom: 20px; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5p..."
 
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ==========================================================================
  1. BASIS-STYLING & BILDER
  ========================================================================== */
.mw-parser-output img {
    max-width: 100%;
    height: auto;
}
/* ==========================================================================
  2. BOX-ELEMENTE & HEADERS (DEIN ORIGINAL-DESIGN)
  ========================================================================== */
.infobox {
.infobox {
box-shadow: 5px 5px 10px black;
    box-shadow: 5px 5px 10px black;
vertical-align:middle;
    vertical-align: middle;
background: #ebecf0;
    background: #ebecf0;
border: 1px solid #aaa;
    border: 1px solid #aaa;
float: right;
    float: right;
margin: 0 0 0.5em 0.5em;
    margin: 0 0 0.5em 0.5em;
padding: 0.5em;
    padding: 0.5em;
width: 300px;
    width: 300px;
}
}


.headersetpage {
.headersetpage, .headernocolumn, .headercatpage {
width: 100%;
    width: 100%;
margin-bottom: 20px;
    margin-bottom: 20px;
background: #ebecf0;
    background: #ebecf0;
border: 1px solid #aaa;
    border: 1px solid #aaa;
padding: 15px;
    padding: 8px 15px;
box-shadow: 5px 5px 10px black;
    box-shadow: 5px 5px 10px black;
font-size:18px;
    font-size: 18px;
    box-sizing: border-box;
}
}


.headernocolumn {
.headernocolumn { height: 80px; font-size: 16px; }
width: 100%;
.headercatpage { height: 100px; }
margin-bottom: 20px;
 
background: #ebecf0;
.textbox {
border: 1px solid #aaa;
    width: 50%;
padding: 15px;
    background: #ebecf0;
box-shadow: 5px 5px 10px black;
    border: 2px solid #9FB6CD;
font-size:16px;
    padding: 8px 15px;
font-weight: bold;
    margin: 0 auto;
}
}


.headercatpage {
.box-headline {
width: 100%;
    background-color: #9FB6CD;
margin-bottom: 20px;
    font-size: 16px;
background: #ebecf0;
    padding: 8px 12px; /* Innenabstand im blauen Balken */
border: 1px solid #aaa;
    margin: 0 0 15px 0; /* Nur ein Abstand nach unten zum Text, aber kein negativer Margin zu den Seiten */
padding: 8px 15px 8px 15px;
    border: 1px solid #8aa3bc; /* Optional: Ein feiner Rahmen um den Balken */
box-shadow: 5px 5px 10px black;
    border-radius: 4px; /* Optional: Leicht abgerundete Ecken, passend zum "schwebenden" Look */
font-size:18px;
    font-weight: bold;
    display: block;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* Optional: Ein kleiner Schatten für den Balken */
}
}


.textbox {
.innercenter {
width: 50%;
    text-align: center;
background: #ebecf0;
    padding: 15px;
border: 2px solid #9FB6CD;
padding: 8px 15px 8px 15px;
margin: 0 auto;
}
}


.innercenter {
/* ==========================================================================
text-align: center;
  3. LOGO BEREICH (BILD-GRÖSSE ERZWINGEN)
padding: 15px;
  ========================================================================== */
.aboutsetlogo {
    width: 150px;
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    display: block;
}
}


.cobitable {
/* Dieser Teil stellt sicher, dass das BILD im Container mitwächst */
  background-color: #f8f9fa;
.aboutsetlogo img {
  color: #202122;
    width: 100% !important;
  margin: 1em 0;
    height: auto !important;
  border: 1px solid #a2a9b1;
    max-width: none !important; /* Hebt globale Begrenzungen auf */
  border-collapse: collapse;
}
}
.cobitable > caption {
 
  font-weight: bold;
.aboutsettext {
    display: block;
    overflow: hidden;
    min-height: 120px;
}
}
.cobitable > tr > th,
 
.cobitable > * > tr > th {
/* ==========================================================================
  border: 1px solid #000;
  4. TABELLEN (COBITABLE)
  background-color: #9FB6CD;
  ========================================================================== */
  text-align: center;
.cobitable {
  padding: 0.4em 0.7em;
    background-color: #f8f9fa;
    color: #202122;
    margin: 1em auto;
    border: 1px solid #000;
    border-collapse: collapse;
    display: block;  
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
}
}
.cobitable > tr > td,
 
.cobitable > * > tr > td {
.cobitable th, .cobitable td {
  border: 1px solid #a2a9b1;
    border: 1px solid #444 !important;
  padding: 0.4em 0.7em;
    padding: 0.6em 0.8em;
}
}


.box-headline {
.cobitable th {
  background-color: #9FB6CD;
    background-color: #9FB6CD;
  font-size: 16px;
    font-weight: bold;
  padding: 5px;
    text-align: center;
}
}


/* ==========================================================================
  5. GRIDS (MAINPAGE & BRICKS)
  ========================================================================== */
.mainparent {
.mainparent {
display: grid;
    display: grid;
grid-template-columns: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
grid-template-rows: 160px repeat(2, 1fr);  
    /* ÄNDERUNG: 'auto' statt '160px' für die erste Zeile, damit sie mitwächst */
grid-column-gap: 15px;
    grid-template-rows: auto repeat(2, 1fr);  
grid-row-gap: 15px;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}
}
.box1 { grid-area: 1 / 1 / 2 / 3; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box2 { grid-area: 2 / 1 / 3 / 2; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box3 { grid-area: 3 / 1 / 4 / 2; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box4 { grid-area: 2 / 2 / 4 / 3; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box1 {
.box1 {
grid-area: 1 / 1 / 2 / 3;
    grid-area: 1 / 1 / 2 / 3;
background: #ebecf0;
    background: #ebecf0;
border: 1px solid #aaa;
    border: 1px solid #aaa;
padding: 15px;
    padding: 15px 15px 15px 15px !important; /* Unten 30px für den gewünschten Abstand */
    box-shadow: 5px 5px 10px black;
    height: auto !important; /* Zwingt die Box, nicht bei 160px stehenzubleiben */
    overflow: hidden; /* Sorgt dafür, dass alles innerhalb der Box-Grenzen bleibt */
}
}
.box2 {
 
grid-area: 2 / 1 / 3 / 2;
/* --- ZENTRIERUNG DER BILDER IN BOX 4 (RECHTS) --- */
background: #ebecf0;
.box4 {
border: 1px solid #aaa;
    text-align: center; /* Zentriert Text und inline-Bilder */
padding: 15px;
}
}
.box3 {
 
grid-area: 3 / 1 / 4 / 2;
.box4 img {
background: #ebecf0;
    margin: 5px auto;  /* Gibt den Bildern vertikalen Abstand und zentriert sie */
border: 1px solid #aaa;
    display: inline-block; /* Erlaubt es, dass mehrere Bilder nebeneinander stehen */
padding: 15px;
}
.box4 {
grid-area: 2 / 2 / 4 / 3;
background: #ebecf0;
border: 1px solid #aaa;
padding: 15px;
}
}


.brickparent {
.brickparent {
display: grid;
    display: grid;
grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 140px);
    grid-gap: 25px;
grid-column-gap: 10px;
    align-items: center;
grid-row-gap: 10px;
    padding: 10px;
align-items: center;
padding: 10px;
}
}
.brick1 { grid-area: 1 / 1 / 2 / 2;}
.brick2 { grid-area: 1 / 2 / 2 / 3;}
.brick3 { grid-area: 1 / 3 / 2 / 4;}
.brick4 { grid-area: 1 / 4 / 2 / 5;}
.brick5 { grid-area: 2 / 1 / 3 / 2;}
.brick6 { grid-area: 2 / 2 / 3 / 3;}
.brick7 { grid-area: 2 / 3 / 3 / 4;}
.brick8 { grid-area: 2 / 4 / 3 / 5;}
.brick9 { grid-area: 3 / 1 / 4 / 2;}


.aboutsetlogo {
.brickparent > div { text-align: center; }
width:100px;
 
height:100px;
/* ==========================================================================
position: absolute;
  6. MOBILE OPTIMIERUNG (DER FINALE FIX)
object-fit: contain;
  ========================================================================== */
}
@media screen and (max-width: 720px) {
.aboutsettext {
    /* Das Grid komplett auflösen */
margin-left:110px;
    .mainparent {
height:120px;
        display: block !important; /* Flex/Grid durch Block ersetzen für maximale Stabilität */
        width: 100% !important;
        padding: 0 !important;
    }
 
    /* Alle Boxen (box1 bis box4) radikal auf 100% Breite setzen */
    .box1, .box2, .box3, .box4 {
        width: 100% !important;
        grid-area: auto !important; /* WICHTIG: Hebt die Raster-Positionierung auf */
        margin: 0 0 20px 0 !important; /* Abstand nach unten */
        box-sizing: border-box !important; /* Padding wird in die 100% eingerechnet */
        float: none !important;
        display: block !important;
    }
 
    .infobox {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1em 0 !important;
        box-sizing: border-box !important;
    }
 
    .textbox {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
}

Latest revision as of 21:48, 30 January 2026

/* ==========================================================================
   1. BASIS-STYLING & BILDER
   ========================================================================== */
.mw-parser-output img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. BOX-ELEMENTE & HEADERS (DEIN ORIGINAL-DESIGN)
   ========================================================================== */
.infobox {
    box-shadow: 5px 5px 10px black;
    vertical-align: middle;
    background: #ebecf0;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 0.5em;
    width: 300px;
}

.headersetpage, .headernocolumn, .headercatpage {
    width: 100%;
    margin-bottom: 20px;
    background: #ebecf0;
    border: 1px solid #aaa;
    padding: 8px 15px;
    box-shadow: 5px 5px 10px black;
    font-size: 18px;
    box-sizing: border-box;
}

.headernocolumn { height: 80px; font-size: 16px; }
.headercatpage { height: 100px; }

.textbox {
    width: 50%;
    background: #ebecf0;
    border: 2px solid #9FB6CD;
    padding: 8px 15px;
    margin: 0 auto;
}

.box-headline {
    background-color: #9FB6CD;
    font-size: 16px;
    padding: 8px 12px; /* Innenabstand im blauen Balken */
    margin: 0 0 15px 0; /* Nur ein Abstand nach unten zum Text, aber kein negativer Margin zu den Seiten */
    border: 1px solid #8aa3bc; /* Optional: Ein feiner Rahmen um den Balken */
    border-radius: 4px; /* Optional: Leicht abgerundete Ecken, passend zum "schwebenden" Look */
    font-weight: bold;
    display: block;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* Optional: Ein kleiner Schatten für den Balken */
}

.innercenter {
    text-align: center;
    padding: 15px;
}

/* ==========================================================================
   3. LOGO BEREICH (BILD-GRÖSSE ERZWINGEN)
   ========================================================================== */
.aboutsetlogo {
    width: 150px; 
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    display: block;
}

/* Dieser Teil stellt sicher, dass das BILD im Container mitwächst */
.aboutsetlogo img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important; /* Hebt globale Begrenzungen auf */
}

.aboutsettext {
    display: block;
    overflow: hidden; 
    min-height: 120px;
}

/* ==========================================================================
   4. TABELLEN (COBITABLE)
   ========================================================================== */
.cobitable {
    background-color: #f8f9fa;
    color: #202122;
    margin: 1em auto;
    border: 1px solid #000;
    border-collapse: collapse;
    display: block; 
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
}

.cobitable th, .cobitable td {
    border: 1px solid #444 !important;
    padding: 0.6em 0.8em;
}

.cobitable th {
    background-color: #9FB6CD;
    font-weight: bold;
    text-align: center;
}

/* ==========================================================================
   5. GRIDS (MAINPAGE & BRICKS)
   ========================================================================== */
.mainparent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* ÄNDERUNG: 'auto' statt '160px' für die erste Zeile, damit sie mitwächst */
    grid-template-rows: auto repeat(2, 1fr); 
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.box1 { grid-area: 1 / 1 / 2 / 3; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box2 { grid-area: 2 / 1 / 3 / 2; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box3 { grid-area: 3 / 1 / 4 / 2; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }
.box4 { grid-area: 2 / 2 / 4 / 3; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }

.box1 {
    grid-area: 1 / 1 / 2 / 3;
    background: #ebecf0;
    border: 1px solid #aaa;
    padding: 15px 15px 15px 15px !important; /* Unten 30px für den gewünschten Abstand */
    box-shadow: 5px 5px 10px black;
    height: auto !important; /* Zwingt die Box, nicht bei 160px stehenzubleiben */
    overflow: hidden; /* Sorgt dafür, dass alles innerhalb der Box-Grenzen bleibt */
}

/* --- ZENTRIERUNG DER BILDER IN BOX 4 (RECHTS) --- */
.box4 {
    text-align: center; /* Zentriert Text und inline-Bilder */
}

.box4 img {
    margin: 5px auto;   /* Gibt den Bildern vertikalen Abstand und zentriert sie */
    display: inline-block; /* Erlaubt es, dass mehrere Bilder nebeneinander stehen */
}

.brickparent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
    align-items: center;
    padding: 10px;
}

.brickparent > div { text-align: center; }

/* ==========================================================================
   6. MOBILE OPTIMIERUNG (DER FINALE FIX)
   ========================================================================== */
@media screen and (max-width: 720px) {
    /* Das Grid komplett auflösen */
    .mainparent {
        display: block !important; /* Flex/Grid durch Block ersetzen für maximale Stabilität */
        width: 100% !important;
        padding: 0 !important;
    }

    /* Alle Boxen (box1 bis box4) radikal auf 100% Breite setzen */
    .box1, .box2, .box3, .box4 {
        width: 100% !important;
        grid-area: auto !important; /* WICHTIG: Hebt die Raster-Positionierung auf */
        margin: 0 0 20px 0 !important; /* Abstand nach unten */
        box-sizing: border-box !important; /* Padding wird in die 100% eingerechnet */
        float: none !important;
        display: block !important;
    }

    .infobox {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1em 0 !important;
        box-sizing: border-box !important;
    }

    .textbox {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}