MediaWiki:Common.css: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 555: | Zeile 555: | ||
margin-top: 0; | margin-top: 0; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
/********************************************* | |||
* Turnier-Seiten-Layout: Boxen + Tabellen | |||
* (nur Positionierung, kein Styling-Reset) | |||
*********************************************/ | |||
/* Grid-Container für Infobox (rechts) + Regelbox (links) */ | |||
.hunt-tournament-layout { | |||
display: grid; | |||
grid-template-columns: minmax(0, 60%) minmax(0, 30%); | |||
column-gap: 2rem; | |||
align-items: flex-start; | |||
margin-top: 1rem; | |||
} | |||
/* Regelbox in die linke Spalte legen */ | |||
.hunt-tournament-layout .huntpixo-regeln { | |||
grid-column: 1; | |||
} | |||
/* Infobox in die rechte Spalte legen, vorhandenes Styling behalten */ | |||
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox { | |||
grid-column: 2; | |||
float: none !important; /* Float nur hier deaktivieren */ | |||
clear: none !important; | |||
width: 100%; /* füllt die 30%-Spalte */ | |||
max-width: 380px; /* optische Breite begrenzen */ | |||
margin: 0 0 0 auto; /* an rechten Rand der Spalte schieben */ | |||
} | |||
/* Tabellen: 80% Breite, zentriert, sonst alles wie vorher */ | |||
.hunt-table { | |||
width: 80% !important; | |||
max-width: 100%; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Mobile: untereinander */ | |||
@media (max-width: 800px) { | |||
.hunt-tournament-layout { | |||
grid-template-columns: 1fr; | |||
row-gap: 1.5rem; | |||
} | |||
.hunt-tournament-layout .huntpixo-regeln, | |||
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox { | |||
grid-column: 1; | |||
width: 100%; | |||
max-width: 420px; | |||
margin: 0 auto; | |||
} | |||
} | } | ||
Version vom 8. März 2026, 18:40 Uhr
/*******************************
* Hintergrund & Body (global)
*******************************/
body {
background-color: #060e12;
padding-top: 5.5rem;
background-image:
radial-gradient(
ellipse 10% 100% at calc(50% - 800px) center,
#112733 20%,
#060e12 75%,
transparent 100%
),
radial-gradient(
ellipse 10% 100% at calc(50% + 800px) center,
#112733 20%,
#060e12 75%,
transparent 100%
);
background-repeat: no-repeat;
background-size: auto 100%, auto 100%;
background-attachment: fixed;
}
/*******************************
* Content-Container (global)
*******************************/
.mw-page-container {
background-color: #060e1275 !important;
background-repeat: no-repeat !important;
background-size: 100% 100%, 100% 100%;
border-bottom-left-radius: 30px !important;
border-bottom-right-radius: 30px !important;
padding: 20px !important;
margin: 0 auto !important;
max-width: 1600px;
margin-top: -4rem;
}
.mw-page-container .mw-content-container {
background: transparent !important;
}
/*******************************
* Eigener Sticky-Header (global)
*******************************/
#pixo-custom-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 5.5rem;
z-index: 1000;
background: transparent;
}
/* Inhalt des Headers auf Containerbreite begrenzen */
#pixo-custom-header-inner {
box-sizing: border-box;
max-width: 1600px;
margin: 0 auto;
padding: 0 3rem;
height: 100%;
display: flex;
align-items: center;
background-color: #060e12f0;
border-bottom: 1px solid #112733;
backdrop-filter: blur(8px);
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
}
/* Slots */
#pixo-custom-header-left,
#pixo-custom-header-center,
#pixo-custom-header-right {
flex: 1 1 0;
display: flex;
align-items: center;
gap: .75rem;
}
#pixo-custom-header-left {
justify-content: flex-start;
}
#pixo-custom-header-center {
justify-content: center;
}
#pixo-custom-header-right {
justify-content: flex-end;
}
/* Suchbox optional etwas begrenzen, falls im Custom-Header verwendet */
#pixo-custom-header-left .vector-search-box-vue {
max-width: 260px;
}
/*******************************
* Icon-Buttons im Header (global)
*******************************/
.pixo-header-icon {
min-width: 2.25rem;
height: 2.25rem;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 .6rem;
font-size: 0.9rem;
text-decoration: none;
border: none;
cursor: pointer;
}
/* Header-Buttons mit gleichem Verlauf wie Tabellen-Header */
.pixo-header-icon,
.vector-menu.mw-portlet.pixo-header-icon,
.vector-dropdown.vector-user-menu.vector-button-flush-right.pixo-header-icon {
background: linear-gradient(90deg, #182436 0%, #263b57 100%);
color: #e5f3ff;
border: 1px solid #243242;
}
/* Hover etwas heller */
.pixo-header-icon:hover,
.vector-menu.mw-portlet.pixo-header-icon:hover,
.vector-dropdown.vector-user-menu.vector-button-flush-right.pixo-header-icon:hover {
background: linear-gradient(90deg, #22324a 0%, #314868 100%);
}
/* Logo-Link im Header etwas anpassen */
#pixo-custom-header-center .mw-logo {
margin: 0;
display: flex;
align-items: center;
}
/* ========================================
Pixo-Kacheln (Spiel-Grid)
======================================== */
.pixo-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
width: 100%;
justify-content: center;
}
.pixo-card {
display: block;
width: 100%;
min-height: 105%;
margin: 0;
border-radius: 25px;
background: #31313131;
border: 1px solid #f0f0f099;
box-shadow: 0 5px 16px #00000080;
overflow: hidden;
font-family: inherit;
flex-direction: column;
align-items: center;
text-align: center;
gap: 0.25rem;
}
.pixo-card-hero {
position: relative;
width: 100%;
height: 150px;
background: transparent;
overflow: hidden;
}
.pixo-card-hero img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 20px;
background: transparent;
display: block;
}
.pixo-card--nohero .pixo-card-hero {
height: auto;
padding: 0;
margin: 0;
border-radius: 20px;
background: #31313131;
border: 0;
}
.pixo-card-hero a,
.pixo-card-hero img {
border: 0 !important;
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
.pixo-card-title-bar {
display: flex;
align-items: center;
justify-content: flex-end;
width: 100%;
height: 30px;
background: #0a0a0ab3;
padding: 6px 12px;
box-sizing: border-box;
}
.pixo-card-title-text {
position: static;
display: block;
font-size: 1.3rem;
font-weight: 700;
color: #fff;
text-shadow: 0 0 4px #000000e6;
white-space: nowrap;
padding: 0px 0px 2px 0px;
text-align: right;
}
.pixo-card-hero-inner {
display: inline-block;
}
.pixo-card-body ul {
list-style: none;
margin: 0;
padding: 0;
}
.pixo-card-body li {
margin: 0.1rem 0;
}
.pixo-grid > .pixo-card:only-child {
grid-column: 2 / 3;
}
/*********************************************
* Turnier-Seiten-Layout: Boxen + Tabellen
*********************************************/
/* Grid-Container für Regelbox (links) + Infobox (rechts) */
.hunt-tournament-layout {
display: grid;
grid-template-columns: minmax(0, 60%) minmax(0, 30%);
column-gap: 2rem;
align-items: flex-start;
margin-top: 1rem;
}
/* Erste Spalte im Grid: Regelbox auf 60% Breite */
.hunt-tournament-layout .huntpixo-regeln {
grid-column: 1;
margin: 0;
}
/* Zweite Spalte: Infobox auf 30% Breite, rechts */
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox {
grid-column: 2;
float: none; /* Float für dieses Layout deaktivieren */
clear: none;
width: 100%; /* nimmt die 30%-Spalte vollständig ein */
max-width: 420px; /* damit sie nicht zu breit wird */
margin: 0;
}
/* Standard-Infobox (außerhalb vom Turnierlayout) behält ihr altes Float */
.hunt-infobox.fo-nttax-infobox {
float: right;
clear: right;
width: 320px;
max-width: 100%;
margin: 0 0 1em 1em;
box-sizing: border-box;
border-radius: 12px;
overflow: hidden;
font-size: 0.9rem;
line-height: 1.4;
border: 1px solid var(--hunt-infobox-border-color);
background: var(--hunt-infobox-bg);
box-shadow: 0 8px 24px var(--hunt-infobox-shadow-color);
}
/* Tabellen unten: 80% Breite, zentriert */
.hunt-table {
width: 80%;
max-width: 100%;
border-collapse: separate;
border-spacing: 0;
background: transparent;
margin: 0.5rem auto 0; /* auto = horizontales Zentrieren */
border: none;
}
/* Mobile/kleine Screens: Infobox unterhalb */
@media (max-width: 800px) {
.hunt-tournament-layout {
grid-template-columns: 1fr;
row-gap: 1.5rem;
}
.hunt-tournament-layout .huntpixo-regeln {
grid-column: 1;
}
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox {
grid-column: 1;
width: 100%;
max-width: 420px;
margin: 0 auto;
}
}
/*********************************************
* Hunt Turnier Infobox – Layout & Struktur
*********************************************/
.hunt-infobox.fo-nttax-infobox {
/* ursprüngliches Float wird im Layout-Container überschrieben */
float: right;
clear: right;
width: 320px;
max-width: 100%;
margin: 0 0 1em 1em;
box-sizing: border-box;
border-radius: 12px;
overflow: hidden;
font-size: 0.9rem;
line-height: 1.4;
border: 1px solid var(--hunt-infobox-border-color);
background: var(--hunt-infobox-bg);
box-shadow: 0 8px 24px var(--hunt-infobox-shadow-color);
}
.hunt-infobox-header {
display: flex;
flex-direction: column;
align-items: stretch;
background: var(--hunt-infobox-header-bg);
color: var(--hunt-infobox-header-text);
}
.hunt-infobox-title {
padding: 8px 12px;
text-align: center;
font-size: 1.1rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
margin: 0 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
.hunt-infobox-image {
position: relative;
padding: 0;
text-align: center;
background: var(--hunt-infobox-header-image-bg);
height: 30%;
min-height: 90px;
}
.hunt-infobox-image img {
max-width: 100%;
max-height: 100%;
height: 100%;
width: auto;
object-fit: contain;
border-radius: 0;
box-shadow: none;
display: block;
margin: 0 auto;
}
.hunt-infobox-subtitle {
padding: 4px 12px 6px 12px;
text-align: center;
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--hunt-infobox-label-text);
background: rgba(0, 0, 0, 0.25);
}
.hunt-infobox-image a,
.hunt-infobox-image a img {
border: none !important;
background: transparent !important;
box-shadow: none !important;
}
.hunt-infobox-image a {
pointer-events: none;
cursor: default;
}
.hunt-infobox-section {
padding: 6px 10px;
}
/* Info-Grid nutzt gleiche Struktur wie Regeln */
.huntpixo-info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 0.35rem;
}
/* (restliche Infobox-Styles unverändert) */
.hunt-infobox a {
color: var(--hunt-infobox-link-color);
text-decoration: none;
font-weight: 500;
}
.hunt-infobox a:hover {
text-decoration: underline;
color: var(--hunt-infobox-link-hover);
}
/* Mobile/kleine Screens: Infobox unterhalb */
@media (max-width: 800px) {
.hunt-infobox.fo-nttax-infobox {
float: none;
margin: 0 auto 1em auto;
width: 100%;
max-width: 420px;
}
.hunt-tournament-layout {
grid-template-columns: 1fr;
row-gap: 1.5rem;
}
}
/*********************************************
* Hunt-Turnier Tabellen
*********************************************/
.hunt-table {
width: 80%; /* neu: 80% Breite */
max-width: 100%;
border-collapse: separate;
border-spacing: 0;
background: transparent;
margin-top: 0.5rem;
border: none;
}
/* Tabellencontainer zentrieren */
.hunt-table {
margin-left: auto;
margin-right: auto;
}
/* Zellen */
.hunt-table th,
.hunt-table td {
padding: 8px 12px;
border: none;
color: #f5f7fb;
}
/* Headerzeile wie Infobox-Titel */
.hunt-table th {
background: linear-gradient(90deg, #182436 0%, #263b57 100%);
color: #ffffff;
font-weight: 700;
text-align: left;
}
/* Zeilen-Hintergrund abwechselnd wie Infobox */
.hunt-table tr:nth-child(odd) td {
background: rgba(255, 255, 255, 0.02);
}
.hunt-table tr:nth-child(even) td {
background: rgba(255, 255, 255, 0.06);
}
/* „Rahmen“ nur um jede Zeile */
.hunt-table tr td:first-child {
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.hunt-table tr td:last-child {
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
/*********************************************
* Hunt Turnier Infobox – Farben & Theme
*********************************************/
:root {
--hunt-infobox-bg: #060e12f0;
--hunt-infobox-border-color: #243242;
--hunt-infobox-shadow-color: rgba(0, 0, 0, 0.5);
--hunt-infobox-header-bg: linear-gradient(90deg, #182436 0%, #263b57 100%);
--hunt-infobox-header-text: #ffffff;
--hunt-infobox-header-image-bg: #060e12;
--hunt-infobox-image-shadow: rgba(0, 0, 0, 0.6);
--hunt-infobox-row-bg-odd: rgba(255, 255, 255, 0.02);
--hunt-infobox-row-bg-even: rgba(255, 255, 255, 0.06);
--hunt-infobox-label-text: #c3d4e6;
--hunt-infobox-value-text: #f5f7fb;
--hunt-infobox-link-color: #6cb6ff;
--hunt-infobox-link-hover: #9dd1ff;
}
/*********************************************
* Hunt Turnier Portal-Boxen (3-Spalten-Layout)
*********************************************/
/* ... unverändert ... */
/*****************************
* HuntPixo-Regeln Box
****************************/
.huntpixo-regeln {
border: 1px solid #333;
border-radius: 6px;
padding: 1rem 1.2rem 1.1rem 1.2rem;
margin: 1.5rem 0;
background: transparent;
color: #f5f5f5;
box-shadow: 0 0 10px rgba(0,0,0,0.4);
font-size: 0.95rem;
}
/* ... restliche Regeln-/Info-Styles wie bisher ... */
/******************************************************
* Leere Absatz-Wrapper (nur <br>) ausblenden
******************************************************/
.mw-parser-output p:only-child br:only-child,
.mw-parser-output p > br:only-child {
display: none;
}
.mw-parser-output p:only-child br:only-child::before,
.mw-parser-output p > br:only-child::before {
content: "";
}
.mw-parser-output p:has(> br:only-child) {
margin-top: 0;
margin-bottom: 0;
}
/*********************************************
* Turnier-Seiten-Layout: Boxen + Tabellen
* (nur Positionierung, kein Styling-Reset)
*********************************************/
/* Grid-Container für Infobox (rechts) + Regelbox (links) */
.hunt-tournament-layout {
display: grid;
grid-template-columns: minmax(0, 60%) minmax(0, 30%);
column-gap: 2rem;
align-items: flex-start;
margin-top: 1rem;
}
/* Regelbox in die linke Spalte legen */
.hunt-tournament-layout .huntpixo-regeln {
grid-column: 1;
}
/* Infobox in die rechte Spalte legen, vorhandenes Styling behalten */
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox {
grid-column: 2;
float: none !important; /* Float nur hier deaktivieren */
clear: none !important;
width: 100%; /* füllt die 30%-Spalte */
max-width: 380px; /* optische Breite begrenzen */
margin: 0 0 0 auto; /* an rechten Rand der Spalte schieben */
}
/* Tabellen: 80% Breite, zentriert, sonst alles wie vorher */
.hunt-table {
width: 80% !important;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
/* Mobile: untereinander */
@media (max-width: 800px) {
.hunt-tournament-layout {
grid-template-columns: 1fr;
row-gap: 1.5rem;
}
.hunt-tournament-layout .huntpixo-regeln,
.hunt-tournament-layout .hunt-infobox.fo-nttax-infobox {
grid-column: 1;
width: 100%;
max-width: 420px;
margin: 0 auto;
}
}