MediaWiki:Common.css: Difference between revisions

From Cobi Collectors Wiki
No edit summary
No edit summary
Line 1: Line 1:
.img {
/* Punkt vor img entfernt, damit es alle Bilder anspricht */
.mw-parser-output img {
     max-width: 100%;
     max-width: 100%;
     height: auto;
     height: auto;
}
}


.infobox {
/* Tabellen-Scroll-Fix */
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: 8px 15px 8px;
box-shadow: 5px 5px 10px black;
font-size:18px;
}
 
.headernocolumn {
width: 100%;
height: 80px;
margin-bottom: 20px;
background: #ebecf0;
border: 1px solid #aaa;
padding: 8px 15px 8px;
box-shadow: 5px 5px 10px black;
font-size:16px;
}
 
.headercatpage {
width: 100%;
height: 100px;
margin-bottom: 20px;
background: #ebecf0;
border: 1px solid #aaa;
padding: 8px 15px 8px;
box-shadow: 5px 5px 10px black;
font-size:18px;
}
 
.textbox {
width: 50%;
background: #ebecf0;
border: 2px solid #9FB6CD;
padding: 8px 15px 8px 15px;
margin: 0 auto;
}
 
.innercenter {
text-align: center;
padding: 15px;
}
 
.cobitable {
.cobitable {
   background-color: #f8f9fa;
   background-color: #f8f9fa;
Line 66: Line 12:
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
   border-collapse: collapse;
   border-collapse: collapse;
   display: block;
   display: block; /* Erlaubt horizontales Scrollen */
   overflow-x: auto;
   overflow-x: auto;
}
}
.cobitable > caption {
 
  font-weight: bold;
/* --- BOXEN & LAYOUT --- */
 
.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; /* Feste Breite für Desktop */
    max-width: 100%; /* Verhindert Überlappen auf Mobilgeräten */
}
}
.cobitable > tr > th,
 
.cobitable > * > tr > th {
.headersetpage, .headernocolumn, .headercatpage {
  border: 1px solid #000;
    width: 100%;
  background-color: #9FB6CD;
    margin-bottom: 20px;
  text-align: center;
    background: #ebecf0;
  padding: 0.4em 0.7em;
    border: 1px solid #aaa;
    padding: 8px 15px;
    box-shadow: 5px 5px 10px black;
    font-size: 18px;
    box-sizing: border-box; /* Wichtig für korrekte Breite inkl. Padding */
}
}
.cobitable > tr > td,
 
.cobitable > * > tr > td {
/* Textbox auf Mobilgeräten breiter machen */
  border: 1px solid #a2a9b1;
.textbox {
  padding: 0.4em 0.7em;
    width: 80%; /* Standardmäßig breiter */
    min-width: 300px;
    background: #ebecf0;
    border: 2px solid #9FB6CD;
    padding: 8px 15px;
    margin: 0 auto;
}
}


.box-headline {
/* --- GRID SYSTEME (RESPONSIV) --- */
  background-color: #9FB6CD;
  font-size: 16px;
  padding: 5px;
}


/* Haupt-Layout (Startseite?) */
.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);
    grid-column-gap: 15px;
grid-column-gap: 15px;
    grid-row-gap: 15px;
grid-row-gap: 15px;
}
.box1 {
grid-area: 1 / 1 / 2 / 3;
background: #ebecf0;
border: 1px solid #aaa;
padding: 15px;
}
.box2 {
grid-area: 2 / 1 / 3 / 2;
background: #ebecf0;
border: 1px solid #aaa;
padding: 15px;
}
.box3 {
grid-area: 3 / 1 / 4 / 2;
background: #ebecf0;
border: 1px solid #aaa;
padding: 15px;
}
.box4 {
grid-area: 2 / 2 / 4 / 3;
background: #ebecf0;
border: 1px solid #aaa;
padding: 15px;
}
}


/* Stein-Übersicht (Bricks) */
.brickparent {
.brickparent {
display: grid;
    display: grid;
grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Automatisches Umbrechen */
grid-template-rows: repeat(3, 140px);
    grid-gap: 10px;
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 {
/* --- MOBILE ANPASSUNGEN (Media Queries) --- */
width:100px;
 
height:100px;
@media screen and (max-width: 720px) {
position: absolute;
    /* Infobox nimmt volle Breite ein und rutscht nach oben/unten */
object-fit: contain;
    .infobox {
}
        float: none;
.aboutsettext {
        width: 100%;
margin-left:110px;
        margin: 0 0 1em 0;
height:120px;
    }
 
    /* Das Haupt-Grid wird einspaltig */
    .mainparent {
        grid-template-columns: 1fr;
    }
   
    .box1, .box2, .box3, .box4 {
        grid-area: auto !important; /* Hebt die starre Positionierung auf */
    }
 
    /* Textbox auf volle Breite */
    .textbox {
        width: 100%;
    }
 
    /* Header-Höhen flexibel machen */
    .headernocolumn, .headercatpage {
        height: auto;
        min-height: 80px;
    }
   
    /* Über uns Bereich */
    .aboutsettext {
        margin-left: 0;
        height: auto;
        text-align: center;
    }
    .aboutsetlogo {
        position: relative;
        display: block;
        margin: 0 auto 10px;
    }
}
}

Revision as of 20:58, 30 January 2026

/* Punkt vor img entfernt, damit es alle Bilder anspricht */
.mw-parser-output img {
    max-width: 100%;
    height: auto;
}

/* Tabellen-Scroll-Fix */
.cobitable {
   background-color: #f8f9fa;
   color: #202122;
   margin: 1em 0;
   border: 1px solid #a2a9b1;
   border-collapse: collapse;
   display: block; /* Erlaubt horizontales Scrollen */
   overflow-x: auto;
}

/* --- BOXEN & LAYOUT --- */

.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; /* Feste Breite für Desktop */
    max-width: 100%; /* Verhindert Überlappen auf Mobilgeräten */
}

.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; /* Wichtig für korrekte Breite inkl. Padding */
}

/* Textbox auf Mobilgeräten breiter machen */
.textbox {
    width: 80%; /* Standardmäßig breiter */
    min-width: 300px;
    background: #ebecf0;
    border: 2px solid #9FB6CD;
    padding: 8px 15px;
    margin: 0 auto;
}

/* --- GRID SYSTEME (RESPONSIV) --- */

/* Haupt-Layout (Startseite?) */
.mainparent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

/* Stein-Übersicht (Bricks) */
.brickparent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Automatisches Umbrechen */
    grid-gap: 10px;
    align-items: center;
    padding: 10px;
}

/* --- MOBILE ANPASSUNGEN (Media Queries) --- */

@media screen and (max-width: 720px) {
    /* Infobox nimmt volle Breite ein und rutscht nach oben/unten */
    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 1em 0;
    }

    /* Das Haupt-Grid wird einspaltig */
    .mainparent {
        grid-template-columns: 1fr;
    }
    
    .box1, .box2, .box3, .box4 {
        grid-area: auto !important; /* Hebt die starre Positionierung auf */
    }

    /* Textbox auf volle Breite */
    .textbox {
        width: 100%;
    }

    /* Header-Höhen flexibel machen */
    .headernocolumn, .headercatpage {
        height: auto;
        min-height: 80px;
    }
    
    /* Über uns Bereich */
    .aboutsettext {
        margin-left: 0;
        height: auto;
        text-align: center;
    }
    .aboutsetlogo {
        position: relative;
        display: block;
        margin: 0 auto 10px;
    }
}