MediaWiki:Common.css: Difference between revisions
From Cobi Collectors Wiki
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 16: | Line 16: | ||
/* Gemeinsame Basis für alle Box-Elemente */ | /* Gemeinsame Basis für alle Box-Elemente */ | ||
.infobox, .headersetpage, .headernocolumn, .headercatpage, | .infobox, .headersetpage, .headernocolumn, .headercatpage, | ||
.box1, .box2, .box3, .box4 { | .box1, .box2, .box3, .box4, .brickparent, .catlinks, #toc, .toc { | ||
background: var(--bg-light); | background: var(--bg-light) !important; | ||
border: var(--border-gray); | border: var(--border-gray) !important; | ||
box-shadow: var(--shadow-dark); | box-shadow: var(--shadow-dark) !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
2. BOX-ELEMENTE & HEADERS | 2. BOX-ELEMENTE & HEADERS (DESKTOP) | ||
========================================================================== */ | ========================================================================== */ | ||
/* Allgemeine Header-Klassen */ | |||
.headersetpage, .headernocolumn, .headercatpage { | .headersetpage, .headernocolumn, .headercatpage { | ||
width: 100%; | width: 100% !important; | ||
margin-bottom: 20px; | margin-bottom: 20px !important; | ||
padding: | padding: 15px !important; | ||
font-size: 18px; | font-size: 18px; | ||
} | } | ||
.headersetpage td, .headernocolumn td, .headercatpage td { | .headersetpage td, .headernocolumn td, .headercatpage td { | ||
vertical-align: middle; | vertical-align: middle; | ||
padding: 10px 5px; | padding: 10px 5px; | ||
} | } | ||
.headersetpage a { | .headersetpage a { | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: bold; | font-weight: bold; | ||
color: #202122; | color: #202122; | ||
} | } | ||
| Line 59: | Line 51: | ||
.headernocolumn { height: 80px; font-size: 16px; } | .headernocolumn { height: 80px; font-size: 16px; } | ||
/* | /* MAINPAGE HEADER (FLEXBOX DESIGN) */ | ||
.header-mainpage { | .header-mainpage { | ||
display: flex !important; | display: flex !important; | ||
| Line 72: | Line 59: | ||
background: var(--bg-light) !important; | background: var(--bg-light) !important; | ||
border: var(--border-gray) !important; | border: var(--border-gray) !important; | ||
box-shadow: var(--shadow-dark) !important; | box-shadow: var(--shadow-dark) !important; | ||
padding: 15px 25px !important; | padding: 15px 25px !important; | ||
margin: 10px 0 20px 0 !important; | margin: 10px 0 20px 0 !important; | ||
| Line 79: | Line 66: | ||
} | } | ||
.header-main-text { | .header-main-text { | ||
flex: 1 1 0% !important; | flex: 1 1 0% !important; | ||
font-size: 18px !important; | font-size: 18px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
color: #000 !important; | color: #000 !important; | ||
} | } | ||
.header-main-text span { | .header-main-text span { | ||
display: block !important; | display: block !important; | ||
| Line 95: | Line 80: | ||
} | } | ||
.header-main-logo { | .header-main-logo { | ||
flex: 0 0 auto !important; | flex: 0 0 auto !important; | ||
| Line 102: | Line 86: | ||
} | } | ||
.header-mainpage::after { | .header-mainpage::after { | ||
content: "" !important; | content: "" !important; | ||
| Line 108: | Line 91: | ||
} | } | ||
/* | /* TEXTBOX & HEADLINES */ | ||
.textbox { | .textbox { | ||
width: 50%; | width: 50%; | ||
| Line 144: | Line 114: | ||
/* ========================================================================== | /* ========================================================================== | ||
3. ARTIKEL-LAYOUT ( | 3. ARTIKEL-LAYOUT (INFOBOX & INHALT) | ||
========================================================================== */ | ========================================================================== */ | ||
.infobox { | .infobox { | ||
float: right !important; | float: right !important; | ||
| Line 153: | Line 122: | ||
width: 300px; | width: 300px; | ||
margin: 0 0 20px 20px !important; | margin: 0 0 20px 20px !important; | ||
padding: 0.5em; | |||
vertical-align: middle; | |||
} | } | ||
/* | /* Block Formatting Context für Umfluss */ | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
.mw-parser-output .gallery, | .mw-parser-output .gallery, | ||
| Line 162: | Line 132: | ||
.mw-parser-output ul, | .mw-parser-output ul, | ||
.aboutset-container { | .aboutset-container { | ||
display: flow-root; | display: flow-root; | ||
margin-right: 0 !important; /* | margin-right: 0 !important; | ||
} | |||
/* Listen-Fix (Bullets) */ | |||
.mw-parser-output ul { | |||
margin-left: 1.5em; | |||
padding-left: 0.5em; | |||
list-style-type: disc; | |||
} | } | ||
/* | .mw-parser-output li { | ||
margin-bottom: 0.3em; | |||
} | |||
/* About-Sektion */ | |||
.aboutset-container { | .aboutset-container { | ||
display: flex; | display: flex; | ||
align-items: flex-start; | align-items: flex-start; | ||
gap: 25px; | gap: 25px; | ||
margin | margin: 20px 0; | ||
} | } | ||
.aboutsetlogo { | .aboutsetlogo { flex: 0 0 150px; } | ||
.aboutsettext { flex: 1; } | |||
} | |||
. | /* Inhaltsverzeichnis (TOC) */ | ||
#toc, .toc { | |||
border-radius: 8px; | |||
padding: 15px !important; | |||
display: inline-block; | |||
} | } | ||
.toctitle { | |||
background-color: var(--accent-blue); | |||
margin: -15px -15px 15px -15px; | |||
padding: 10px; | |||
border-radius: 8px 8px 0 0; | |||
text-align: center; | |||
} | } | ||
.toctitle h2 { | |||
. | font-size: 16px !important; | ||
font-weight: bold !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
4. | 4. GALERIEN & TABELLEN | ||
========================================================================== */ | ========================================================================== */ | ||
/* | /* Brick-Galerie */ | ||
ul.gallery { | ul.gallery { | ||
display: flex !important; | display: flex !important; | ||
| Line 220: | Line 192: | ||
margin: 10px 0 20px 0 !important; | margin: 10px 0 20px 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
} | } | ||
li.gallerybox { | li.gallerybox { | ||
flex: 0 0 180px !important; | flex: 0 0 180px !important; | ||
width: 180px !important; | width: 180px !important; | ||
| Line 242: | Line 206: | ||
transition: background 0.2s ease !important; | transition: background 0.2s ease !important; | ||
overflow: hidden !important; | overflow: hidden !important; | ||
} | } | ||
li.gallerybox:hover { | li.gallerybox:hover { | ||
background-color: rgba(159, 182, 205, 0.25) !important; | background-color: rgba(159, 182, 205, 0.25) !important; | ||
} | } | ||
li.gallerybox div.thumb { | li.gallerybox div.thumb { | ||
height: 150px !important; | height: 150px !important; | ||
| Line 263: | Line 218: | ||
justify-content: center !important; | justify-content: center !important; | ||
align-items: center !important; | align-items: center !important; | ||
padding: 10px | padding: 10px !important; | ||
} | } | ||
.gallerytext { | .gallerytext { | ||
padding: 5px 12px 12px 12px !important; | |||
padding: 5px 12px 12px 12px !important; | |||
text-align: left !important; | text-align: left !important; | ||
font-size: 13px !important; | font-size: 13px !important; | ||
line-height: 1.4 !important; | line-height: 1.4 !important; | ||
} | } | ||
/* | /* Cobi-Tabellen */ | ||
.cobitable { | .cobitable { | ||
margin: 1em auto; | margin: 1em auto; | ||
border: 1px solid #000; | border: 1px solid #000; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
width: fit-content; | width: fit-content; | ||
max-width: 100%; | max-width: 100%; | ||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
| Line 314: | Line 246: | ||
background-color: var(--accent-blue); | background-color: var(--accent-blue); | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
5. | 5. SIDEBAR (TIMELESS STABIL) | ||
========================================================================== */ | ========================================================================== */ | ||
.sidebar-chunk { | .sidebar-chunk { | ||
background: var(--bg-light) !important; | background: var(--bg-light) !important; | ||
| Line 515: | Line 261: | ||
} | } | ||
.sidebar-chunk ul { | .sidebar-chunk ul { | ||
list-style: none !important; | list-style: none !important; | ||
| Line 536: | Line 278: | ||
} | } | ||
#p-logo { | #p-logo { | ||
text-align: center !important; | text-align: center !important; | ||
margin-bottom: 15px !important; | margin-bottom: 15px !important; | ||
display: block !important; | |||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
6. MAINPAGE GRIDS & BRICK-CONTAINER | |||
========================================================================== */ | ========================================================================== */ | ||
.mainparent { display: grid; grid-template-columns: 4fr 6fr; gap: 15px; } | |||
.box1 { grid-column: 1 / 3; padding: 15px; } | |||
.box2, .box3 { grid-column: 1; padding: 15px; } | |||
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; } | |||
.box4-content { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; margin-top: 15px; } | |||
.box4-content a { flex: 0 0 150px !important; margin: 2px !important; padding: 5px; border-radius: 8px; } | |||
.box4-content a:hover { background-color: rgba(159, 182, 205, 0.25); } | |||
.innercenter { | |||
display: grid !important; | |||
grid-template-columns: repeat(auto-fill, minmax(100px, 150px)); | |||
gap: 15px; | |||
justify-content: flex-start; | |||
align-items: center; | |||
} | } | ||
. | .brickparent { | ||
padding: 25px; | |||
border-radius: 8px; | |||
margin: 20px 0; | |||
} | } | ||
/* ========================================================================== | |||
7. MOBILE OPTIMIERUNG (@MEDIA) | |||
========================================================================== */ | |||
@media screen and (max-width: 850px) { | |||
.mainparent { display: flex !important; flex-direction: column !important; } | |||
.infobox { float: none !important; width: 100% !important; margin: 10px 0 20px 0 !important; } | |||
.aboutset-container { flex-direction: column !important; align-items: center !important; } | |||
.aboutsetlogo { flex: 0 0 auto !important; max-width: 100px !important; } | |||
. | |||
ul.gallery { justify-content: center !important; gap: 10px; } | |||
li.gallerybox { width: calc(50% - 20px) !important; min-width: 140px !important; margin: 5px !important; } | |||
.header-mainpage { flex-direction: column !important; text-align: center !important; } | |||
. | .header-main-text { order: 2; margin-top: 15px !important; } | ||
.header-main-logo { order: 1; } | |||
} | |||
.headercatpage tbody, .headercatpage tr { display: flex !important; flex-direction: column !important; } | |||
.headercatpage td { display: block !important; width: 100% !important; text-align: center !important; } | |||
. | .headercatpage td:nth-child(2) { order: 1; } | ||
.headercatpage td:first-child { order: 2; } | |||
.headercatpage td:last-child { order: 3; } | |||
} | |||
. | |||
@media screen and (max-width: 450px) { | @media screen and (max-width: 450px) { | ||
li.gallerybox { | li.gallerybox { width: 100% !important; } | ||
} | } | ||
Revision as of 20:54, 3 February 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, .brickparent, .catlinks, #toc, .toc {
background: var(--bg-light) !important;
border: var(--border-gray) !important;
box-shadow: var(--shadow-dark) !important;
box-sizing: border-box;
}
/* ==========================================================================
2. BOX-ELEMENTE & HEADERS (DESKTOP)
========================================================================== */
/* Allgemeine Header-Klassen */
.headersetpage, .headernocolumn, .headercatpage {
width: 100% !important;
margin-bottom: 20px !important;
padding: 15px !important;
font-size: 18px;
}
.headersetpage td, .headernocolumn td, .headercatpage td {
vertical-align: middle;
padding: 10px 5px;
}
.headersetpage a {
text-decoration: none;
font-weight: bold;
color: #202122;
}
.headersetpage a:hover {
color: var(--accent-blue);
}
.headernocolumn { height: 80px; font-size: 16px; }
/* MAINPAGE HEADER (FLEXBOX DESIGN) */
.header-mainpage {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
background: var(--bg-light) !important;
border: var(--border-gray) !important;
box-shadow: var(--shadow-dark) !important;
padding: 15px 25px !important;
margin: 10px 0 20px 0 !important;
width: 100% !important;
box-sizing: border-box !important;
}
.header-main-text {
flex: 1 1 0% !important;
font-size: 18px !important;
font-weight: bold !important;
color: #000 !important;
}
.header-main-text span {
display: block !important;
font-weight: normal !important;
font-size: 15px !important;
margin-top: 4px !important;
}
.header-main-logo {
flex: 0 0 auto !important;
display: flex !important;
justify-content: center !important;
}
.header-mainpage::after {
content: "" !important;
flex: 1 1 0% !important;
}
/* TEXTBOX & HEADLINES */
.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. ARTIKEL-LAYOUT (INFOBOX & INHALT)
========================================================================== */
.infobox {
float: right !important;
clear: right !important;
width: 300px;
margin: 0 0 20px 20px !important;
padding: 0.5em;
vertical-align: middle;
}
/* Block Formatting Context für Umfluss */
.mw-parser-output h2,
.mw-parser-output .gallery,
.mw-parser-output p,
.mw-parser-output ul,
.aboutset-container {
display: flow-root;
margin-right: 0 !important;
}
/* Listen-Fix (Bullets) */
.mw-parser-output ul {
margin-left: 1.5em;
padding-left: 0.5em;
list-style-type: disc;
}
.mw-parser-output li {
margin-bottom: 0.3em;
}
/* About-Sektion */
.aboutset-container {
display: flex;
align-items: flex-start;
gap: 25px;
margin: 20px 0;
}
.aboutsetlogo { flex: 0 0 150px; }
.aboutsettext { flex: 1; }
/* Inhaltsverzeichnis (TOC) */
#toc, .toc {
border-radius: 8px;
padding: 15px !important;
display: inline-block;
}
.toctitle {
background-color: var(--accent-blue);
margin: -15px -15px 15px -15px;
padding: 10px;
border-radius: 8px 8px 0 0;
text-align: center;
}
.toctitle h2 {
font-size: 16px !important;
font-weight: bold !important;
border: none !important;
padding: 0 !important;
}
/* ==========================================================================
4. GALERIEN & TABELLEN
========================================================================== */
/* Brick-Galerie */
ul.gallery {
display: flex !important;
flex-wrap: wrap !important;
justify-content: flex-start !important;
padding: 0 !important;
margin: 10px 0 20px 0 !important;
list-style: none !important;
}
li.gallerybox {
flex: 0 0 180px !important;
width: 180px !important;
min-height: 230px !important;
margin: 0 15px 20px 0 !important;
background: var(--bg-light) !important;
border: var(--border-gray) !important;
border-radius: 8px !important;
display: flex !important;
flex-direction: column !important;
transition: background 0.2s ease !important;
overflow: hidden !important;
}
li.gallerybox:hover {
background-color: rgba(159, 182, 205, 0.25) !important;
}
li.gallerybox div.thumb {
height: 150px !important;
width: 100% !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
padding: 10px !important;
}
.gallerytext {
padding: 5px 12px 12px 12px !important;
text-align: left !important;
font-size: 13px !important;
line-height: 1.4 !important;
}
/* Cobi-Tabellen */
.cobitable {
margin: 1em auto;
border: 1px solid #000;
border-collapse: collapse;
width: fit-content;
max-width: 100%;
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;
}
/* ==========================================================================
5. SIDEBAR (TIMELESS STABIL)
========================================================================== */
.sidebar-chunk {
background: var(--bg-light) !important;
border: var(--border-gray) !important;
box-shadow: var(--shadow-dark) !important;
border-radius: 5px !important;
margin-bottom: 20px !important;
padding: 10px !important;
}
.sidebar-chunk ul {
list-style: none !important;
margin: 5px 0 !important;
padding: 0 !important;
}
.sidebar-chunk ul li a {
color: #333 !important;
padding: 4px 5px !important;
display: block !important;
}
.sidebar-chunk ul li a:hover {
color: var(--accent-blue) !important;
text-decoration: underline !important;
}
#p-logo {
text-align: center !important;
margin-bottom: 15px !important;
display: block !important;
}
/* ==========================================================================
6. MAINPAGE GRIDS & BRICK-CONTAINER
========================================================================== */
.mainparent { display: grid; grid-template-columns: 4fr 6fr; gap: 15px; }
.box1 { grid-column: 1 / 3; padding: 15px; }
.box2, .box3 { grid-column: 1; padding: 15px; }
.box4 { grid-column: 2; grid-row: 2 / 4; padding: 15px; text-align: center; }
.box4-content { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; margin-top: 15px; }
.box4-content a { flex: 0 0 150px !important; margin: 2px !important; padding: 5px; border-radius: 8px; }
.box4-content a:hover { background-color: rgba(159, 182, 205, 0.25); }
.innercenter {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(100px, 150px));
gap: 15px;
justify-content: flex-start;
align-items: center;
}
.brickparent {
padding: 25px;
border-radius: 8px;
margin: 20px 0;
}
/* ==========================================================================
7. MOBILE OPTIMIERUNG (@MEDIA)
========================================================================== */
@media screen and (max-width: 850px) {
.mainparent { display: flex !important; flex-direction: column !important; }
.infobox { float: none !important; width: 100% !important; margin: 10px 0 20px 0 !important; }
.aboutset-container { flex-direction: column !important; align-items: center !important; }
.aboutsetlogo { flex: 0 0 auto !important; max-width: 100px !important; }
ul.gallery { justify-content: center !important; gap: 10px; }
li.gallerybox { width: calc(50% - 20px) !important; min-width: 140px !important; margin: 5px !important; }
.header-mainpage { flex-direction: column !important; text-align: center !important; }
.header-main-text { order: 2; margin-top: 15px !important; }
.header-main-logo { order: 1; }
.headercatpage tbody, .headercatpage tr { display: flex !important; flex-direction: column !important; }
.headercatpage td { display: block !important; width: 100% !important; text-align: center !important; }
.headercatpage td:nth-child(2) { order: 1; }
.headercatpage td:first-child { order: 2; }
.headercatpage td:last-child { order: 3; }
}
@media screen and (max-width: 450px) {
li.gallerybox { width: 100% !important; }
}
