MediaWiki:Common.css: Difference between revisions

From Cobi Collectors Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* --- BASIS OPTIMIERUNG --- */
/* ==========================================================================
  1. BASIS-STYLING & BILDER
  ========================================================================== */
.mw-parser-output img {
.mw-parser-output img {
     max-width: 100%;
     max-width: 100%;
Line 5: Line 7:
}
}


/* --- LOGO & TEXT (ABOUT BEREICH) --- */
/* ==========================================================================
/* Diese Werte gelten jetzt korrekt für den Desktop */
  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: 5px;
    margin: -15px -15px 10px -15px;
    border-bottom: 1px solid #aaa;
    font-weight: bold;
}
 
.innercenter {
    text-align: center;
    padding: 15px;
}
 
/* ==========================================================================
  3. LOGO BEREICH (DESKTOP)
  ========================================================================== */
.aboutsetlogo {
.aboutsetlogo {
     width: 250px;  
     width: 250px;
     height: auto;
     height: auto;
     float: left;
     float: left;
Line 19: Line 72:
.aboutsettext {
.aboutsettext {
     margin-left: 0;
     margin-left: 0;
     min-height: 150px;
     min-height: 120px;
}
}


/* Clearfix damit nachfolgende Inhalte nicht ins Logo rutschen */
.aboutsettext::after {
.aboutsettext::after {
     content: "";
     content: "";
Line 28: Line 82:
}
}


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


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


.cobitable th {
.cobitable th {
  background-color: #9FB6CD;
    background-color: #9FB6CD;
  color: #000;
    font-weight: bold;
  font-weight: bold;
    text-align: center;
  text-align: center;
}
 
/* --- BOXEN & HEADERS --- */
.infobox {
    box-shadow: 5px 5px 10px black;
    background: #ebecf0;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 0.5em;
    width: 300px;
    max-width: 100%;
}
}


.headersetpage, .headernocolumn, .headercatpage {
/* ==========================================================================
    width: 100%;
   5. GRIDS (MAINPAGE & BRICKS)
    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;
}
 
.box-headline {
  background-color: #9FB6CD;
  font-size: 16px;
  padding: 5px;
  /* Damit die blaue Überschrift wieder bündig in der Box sitzt: */
  margin: -15px -15px 10px -15px;
   border-bottom: 1px solid #aaa;
}
 
.innercenter {
   text-align: center;
  padding: 15px;
}
 
/* --- GRID SYSTEME --- */
.mainparent {
.mainparent {
     display: grid;
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     grid-template-columns: repeat(2, 1fr);
     grid-gap: 15px;
     grid-template-rows: 160px 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; }
.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; }
.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; }
.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; }
.box4 { grid-area: 2 / 2 / 4 / 3; background: #ebecf0; border: 1px solid #aaa; padding: 15px; box-shadow: 5px 5px 10px black; }


.brickparent {
.brickparent {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, 1fr);  
     grid-template-columns: repeat(4, 1fr);
     grid-gap: 25px;
     grid-gap: 25px;
     align-items: center;
     align-items: center;
Line 112: Line 134:
.brickparent > div { text-align: center; }
.brickparent > div { text-align: center; }


/* --- MOBILE OPTIMIERUNG (Alles unter 720px) --- */
/* ==========================================================================
  6. MOBILE OPTIMIERUNG (MEDIA QUERIES)
  ========================================================================== */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
     .mainparent {
     .mainparent {
         display: flex;
         display: flex;
         flex-direction: column;
         flex-direction: column;
        grid-template-rows: auto;
     }
     }


     .box1, .box2, .box3, .box4 {
     .box1, .box2, .box3, .box4 {
         width: 100% !important;
         width: 100% !important;
        grid-area: unset !important;
         margin-bottom: 15px;
         margin-bottom: 15px;
     }
     }
Line 130: Line 154:
         margin: 0 0 1em 0;
         margin: 0 0 1em 0;
     }
     }
    .textbox { width: 100%; }


     .aboutsetlogo {
     .aboutsetlogo {
Line 138: Line 164:
     }
     }


     .aboutsettext {
     .aboutsettext { text-align: center; }
        text-align: center;
        min-height: auto;
    }


     .brickparent {
     .brickparent {

Revision as of 21:22, 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: 5px;
    margin: -15px -15px 10px -15px;
    border-bottom: 1px solid #aaa;
    font-weight: bold;
}

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

/* ==========================================================================
   3. LOGO BEREICH (DESKTOP)
   ========================================================================== */
.aboutsetlogo {
    width: 250px;
    height: auto;
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    object-fit: contain;
    position: relative;
}

.aboutsettext {
    margin-left: 0;
    min-height: 120px;
}

/* Clearfix damit nachfolgende Inhalte nicht ins Logo rutschen */
.aboutsettext::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   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);
    grid-template-rows: 160px 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; }

.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 (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 720px) {
    .mainparent {
        display: flex;
        flex-direction: column;
        grid-template-rows: auto;
    }

    .box1, .box2, .box3, .box4 {
        width: 100% !important;
        margin-bottom: 15px;
    }

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

    .textbox { width: 100%; }

    .aboutsetlogo {
        float: none;
        display: block;
        margin: 0 auto 15px;
        width: 180px;
    }

    .aboutsettext { text-align: center; }

    .brickparent {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }
}