MediaWiki:Common.css: Difference between revisions

From Cobi Collectors Wiki
No edit summary
No edit summary
Line 93: Line 93:
     border: 1px solid #000;
     border: 1px solid #000;
     border-collapse: collapse;
     border-collapse: collapse;
     display: table; /* Von block auf table geändert für bessere Schatten-Darstellung */
     display: table;
     overflow-x: auto;
     overflow-x: auto;
     width: fit-content;
     width: fit-content;
     max-width: 100%;
     max-width: 100%;
    /* SCHATTEN HINZUFÜGEN */
     box-shadow: var(--shadow-dark);  
     box-shadow: 5px 5px 10px black;  
     border-radius: 4px;
     border-radius: 4px; /* Optional: Ganz leichte Rundung an den Ecken */
}
}


Line 114: Line 113:


/* ==========================================================================
/* ==========================================================================
   5. GRIDS (MAINPAGE) - SAUBERE STRUKTUR
   5. GRIDS (MAINPAGE)
   ========================================================================== */
   ========================================================================== */
.mainparent {
.mainparent {
     display: grid;
     display: grid;
     grid-template-columns: 4fr 6fr; /* 40:60 Verhältnis */
     grid-template-columns: 4fr 6fr;
     gap: 15px;
     gap: 15px;
}
}
Line 127: Line 126:
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }


/* Bild-Container in Box 4 */
.box4-content {
.box4-content {
     display: flex;
     display: flex;
Line 146: Line 144:


/* ==========================================================================
/* ==========================================================================
   7. BRICK-CONTAINER (OPTIMIERT FÜR SCALES)
   6. BRICK-CONTAINER (SCALES)
   ========================================================================== */
   ========================================================================== */
.brickparent {
.brickparent {
     display: flex !important;
     display: flex !important;
     flex-wrap: wrap;
     flex-wrap: wrap;
     justify-content: flex-start; /* Erzwingt den Start der Bilder am linken Rand */
     justify-content: flex-start;
     align-content: flex-start;   /* Verhindert vertikales Strecken der Zeilen */
     align-content: flex-start;
     text-align: left !important; /* Zwingt alles im Container nach links */
     text-align: left !important;
     align-items: center;  
     align-items: center;  
     gap: 25px;
     gap: 25px;
     padding: 25px;
     padding: 25px;
     background: #ebecf0;
     background: var(--bg-light);
     border: 1px solid #aaa;
     border: var(--border-gray);
     box-shadow: 5px 5px 10px black;
     box-shadow: var(--shadow-dark);
     border-radius: 8px;
     border-radius: 8px;
     margin: 20px 0;
     margin: 20px 0;
Line 165: Line 163:


.brickparent * {
.brickparent * {
     margin-left: 0 !important; /* Hebt das automatische Zentrieren von MediaWiki-Bildern auf */
     margin-left: 0 !important;
}
}


/* Wir adressieren alles, was klickbar ist (Links) im Container */
.brickparent a,  
.brickparent a,  
.brickparent .mw-file-description {
.brickparent .mw-file-description {
     display: inline-block !important;
     display: inline-block !important;
     text-align: left !important; /* Stoppt Zentrierung innerhalb des Links */
     text-align: left !important;
     transition: transform 0.2s ease-in-out !important;
     transition: transform 0.2s ease-in-out !important;
     cursor: pointer;
     cursor: pointer;
Line 180: Line 177:
}
}


/* Der Hover-Effekt direkt auf den Link-Container */
.brickparent a:hover,  
.brickparent a:hover,  
.brickparent .mw-file-description:hover {
.brickparent .mw-file-description:hover {
Line 188: Line 184:
}
}


/* Bild-Anpassung */
.brickparent img {
.brickparent img {
     width: auto !important;
     width: auto !important;
Line 195: Line 190:
     max-height: 80px !important;  
     max-height: 80px !important;  
     display: block;
     display: block;
     margin-left: 0 !important; /* Verhindert automatisches Zentrieren durch MediaWiki */
     margin-left: 0 !important;
}
}


/* ==========================================================================
/* ==========================================================================
   6. MOBILE OPTIMIERUNG
   7. MOBILE OPTIMIERUNG (MAX-WIDTH: 720PX)
   ========================================================================== */
   ========================================================================== */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
Line 214: Line 209:
      
      
     .headernocolumn, .headercatpage { height: auto; }
     .headernocolumn, .headercatpage { height: auto; }
}


.brickparent {
    .brickparent {
         gap: 10px;
         gap: 10px;
        justify-content: center; /* Optional: Zentrierung auf Mobile für Bricks */
     }
     }
     .brickparent img {
     .brickparent img {
         max-width: 120px !important;
         max-width: 120px !important;
     }
     }
}

Revision as of 19:55, 31 January 2026

/* ==========================================================================
   1. VARIABLEN & BASIS-STYLING
   ========================================================================== */
:root {
    --bg-light: #ebecf0;
    --border-gray: 1px solid #aaa;
    --shadow-dark: 5px 5px 10px black;
    --accent-blue: #9FB6CD;
}

.mw-parser-output img {
    max-width: 100%;
    height: auto;
}

/* Gemeinsame Basis für alle Box-Elemente */
.infobox, .headersetpage, .headernocolumn, .headercatpage, 
.box1, .box2, .box3, .box4 {
    background: var(--bg-light);
    border: var(--border-gray);
    box-shadow: var(--shadow-dark);
    box-sizing: border-box;
}

/* ==========================================================================
   2. BOX-ELEMENTE & HEADERS
   ========================================================================== */
.infobox {
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 0.5em;
    width: 300px;
    vertical-align: middle;
}

.headersetpage, .headernocolumn, .headercatpage {
    width: 100%;
    margin-bottom: 20px;
    padding: 8px 15px;
    font-size: 18px;
}

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

.textbox {
    width: 50%;
    background: var(--bg-light);
    border: 2px solid var(--accent-blue);
    padding: 8px 15px;
    margin: 0 auto;
}

.box-headline {
    background-color: var(--accent-blue);
    font-size: 16px;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #8aa3bc;
    border-radius: 4px;
    font-weight: bold;
    display: block;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: left !important;
}

/* ==========================================================================
   3. LOGO & TEXT BEREICH
   ========================================================================== */
.aboutsetlogo {
    width: 150px; 
    float: left;
    margin: 0 30px 15px 0;
}

.aboutsetlogo img {
    width: 100% !important;
    height: auto !important;
}

.aboutsettext {
    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: table;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    box-shadow: var(--shadow-dark); 
    border-radius: 4px;
}

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

.cobitable th {
    background-color: var(--accent-blue);
    font-weight: bold;
    text-align: center;
}

/* ==========================================================================
   5. GRIDS (MAINPAGE)
   ========================================================================== */
.mainparent {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 15px;
}

.box1 { grid-column: 1 / 3; padding: 15px; }
.box2 { grid-column: 1; padding: 15px; }
.box3 { grid-column: 1; padding: 15px; }
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }

.box4-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.box4-content img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.box4-content img:hover { transform: scale(1.05); }

/* ==========================================================================
   6. BRICK-CONTAINER (SCALES)
   ========================================================================== */
.brickparent {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    text-align: left !important;
    align-items: center; 
    gap: 25px;
    padding: 25px;
    background: var(--bg-light);
    border: var(--border-gray);
    box-shadow: var(--shadow-dark);
    border-radius: 8px;
    margin: 20px 0;
}

.brickparent * {
    margin-left: 0 !important;
}

.brickparent a, 
.brickparent .mw-file-description {
    display: inline-block !important;
    text-align: left !important;
    transition: transform 0.2s ease-in-out !important;
    cursor: pointer;
    border: 1px solid transparent; 
    padding: 5px;
    border-radius: 4px;
}

.brickparent a:hover, 
.brickparent .mw-file-description:hover {
    transform: scale(1.05); 
    background-color: rgba(159, 182, 205, 0.2); 
    z-index: 10; 
}

.brickparent img {
    width: auto !important;
    max-width: 200px !important; 
    height: auto !important;
    max-height: 80px !important; 
    display: block;
    margin-left: 0 !important;
}

/* ==========================================================================
   7. MOBILE OPTIMIERUNG (MAX-WIDTH: 720PX)
   ========================================================================== */
@media screen and (max-width: 720px) {
    .mainparent {
        display: flex;
        flex-direction: column;
    }

    .box1, .box2, .box3, .box4, .infobox, .textbox {
        width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
    }
    
    .headernocolumn, .headercatpage { height: auto; }

    .brickparent {
        gap: 10px;
        justify-content: center; /* Optional: Zentrierung auf Mobile für Bricks */
    }

    .brickparent img {
        max-width: 120px !important;
    }
}