MediaWiki:Common.css

From elfpedia.eu

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

/* Variablen */
/* #4a4a4a; Text color
 #1A54AD; /*Link color
#BC1F25: #BC1F25; Link active color
#143374: #143374; Border color
#BC1F25: #BC1F25; Border red color
#0B244A: #0B244A; backgrounddarkblue color
#0B244A: #0B244A; Blue gradient start color
#143374: #143374;blue gradient end color
#143374: #143374; chunk color*/

/*Generell*/
@media screen and (min-width: 1100px) and (max-width: 2000px) {
.ts-inner, .color-middle-container {
    max-width: none;
}
}
body {
    color: #4a4a4a;
    background-color: #fff;

}
a {
    color: #1A54AD;
    font-weight: bold;
}


/*Linien*/
.mw-body h1.firstHeading,
.tools-inline li.selected {
    border-color: #143374;
}
.color-middle {
    background: #143374;
}
.color-left {
    background: #0B244A;
}
.color-right {
    background: #BC1F25;
}

/*Footer*/
#mw-content-container {
    background: #fff;
    border-bottom: solid 4px #BC1F25;
    background-image: none;
}
.mw-footer-container {
    border-top: 0;
    box-shadow: none;
    color: #4a4a4a;
    background-color: #fff;
}
.mw-footer-container a {
    color: #1A54AD;
}
.mw-footer-container a:hover,
.mw-footer-container a:visited {
    color: #BC1F25;
}

/*Navigationsboxen*/
@media screen and (min-width: 1340px) {
  #mw-site-navigation .sidebar-chunk,
  #mw-related-navigation .sidebar-chunk {
    background: #fff;
    border: 0;
    border-width: 0;
    padding: 1.25em 1.75em;
    box-shadow: none;
    padding: 0;
    margin: 1em 0;
    line-height: 1.125;
    word-wrap: break-word;
    font-size: 0.95em;
  }
  #mw-site-navigation .sidebar-chunk h3,
  #mw-related-navigation .sidebar-chunk h3  {
    padding: 15px;
    text-align: center;
    position: relative;
    font-weight: normal;
    font-size: 1.2em;
    text-transform: uppercase;
    margin: 1.25em 0 0.75em 0;
    border-bottom: 0;
    background-color: #143374;
    color: #fff;
	border-radius: 15px;
	background-image: linear-gradient(to top, #143374 0%, #0B244A 50%);
  }

  #mw-site-navigation .sidebar-chunk h3:after,
  #mw-related-navigation .sidebar-chunk h3:after {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -10px;
    left: 50%;
    height: 0;
    width: 0;
    margin-left: -10.5px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #143374;
 }
}

/*Kategorien*/
#p-normal-catlinks a {
    background: #fff;
    border: 1px solid #d4d4d4;
    padding: 0 9px;
    display: inline-block;
    line-height: 20px;
    margin-right: 3px;
    font-size: 14px;
    float: left;
    margin-bottom: 3px;
    color: #5f5f5f;
    border-radius: 6px;
}
	
#p-normal-catlinks a:hover {
    color: #fff;
    background-color: #0B244A;
    border: 1px solid transparent;

}
#p-normal-catlinks li {
    display: inline-block;
}
.additionalLinks {
clear: both;
}

.additionalLinks a {
    background: #fff;
    border: 1px solid #d4d4d4;
    padding: 5px 12px;
    display: inline-block;
    line-height: 20px;
    margin-right: 10px;
    font-size: 16px;
    float: left;
    margin-bottom: 10px;
    color: #5f5f5f;
    border-radius: 6px;
}
.additionalLinks a:hover {
    color: #fff;
    background-color: #0B244A;
    border: 1px solid transparent;
}
.additionalLinks::after {
    clear: both;
    content: '';
    display: block;
}
.squareLinks a {
border-radius: 0;
}
/*Icons*/
.roundIcon {
display: block;
float: left;
width: 30px;
height: 30px;
border-radius: 50%;
 background-color: #2568A4;
 border: 1px solid #2568A4;
margin-right: 10px;
margin-bottom: 10px;
}
.catIcon {
background-image: url('https://pnpwiki.de/w/images/b/bc/Cat-icon.png'); 
background-position: 50% 50%;
background-repeat: no-repeat;
}
.decIcon {
background-image: url('https://pnpwiki.de/w/images/c/c3/Dec-icon.png'); 
background-position: 50% 50%;
background-repeat: no-repeat;
}
.genreIcon {
background-image: url('https://pnpwiki.de/w/images/c/cc/Genre.png'); 
background-position: 50% 50%;
background-repeat: no-repeat;
}
.comIcon {
background-image: url('https://pnpwiki.de/w/images/c/ce/Community.png'); 
background-position: 50% 50%;
background-repeat: no-repeat;
}


/*Boxen*/
.catGroup {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 10px;
}
.catBox {
width: 100%;
display: block;
float: left;
background: #fdfdfd;
padding: 10px 20px 20px;
margin-bottom: 20px;
overflow: hidden;
    z-index: 0;
	position: relative;
}
.catBox::before {
    content: '';
    position: absolute;
    top: -22px;
    left: -25px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    transform: rotate(45deg);
  border: 2px solid #3876b5;
    z-index: 2;
}
.catBox::after {
    content: '';
    display: block;
    width: 98%;
    height: 97%;
    border: 2px solid #3876b5;
    position: absolute;
    left: 0;
    top: 0;
    right: -7px;
    bottom: 0;
    z-index: 1;
}
.catBox h3 {
margin-top: 10px;
border-bottom: 2px solid #3876b5;
}
.catBox li {
    width: 50%;
    float: left;
}
@media screen and (min-width: 982px) {
  .catBox {
    width: 100%;
  }
}
@media screen and (min-width: 1100px) and (max-width: 1339px) {
  .catBox {
    width: 44%;
  }
}

@media screen and (min-width: 1340px) {
  .catBox {
    width: 25%;
  }
}

#fp {
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    grid-template-areas: 'row1' 'row2' 'row3a' 'row3b' 'row3c' 'row4a' 'row4b' 'row4b';
}
@media (min-width: 1000px) {
    #fp {
        grid-template-areas: 'row1 row1 row1' 'row2 row2 row2' 'row3a row3b row3c' 'row4a row4b row4b';
    }
}

.fpbox .embedvideowrap {
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto;
}

.fpbox .embedvideowrap iframe {
    width: 100% !important;
}

/* Front page */
.fpbox {
    background-color: rgba(var(--theme-accent-color--rgb),.7);
    border-radius: 5px;
    vertical-align: top; 
}

.fpbox .wiki-header {
    background-image: linear-gradient(0deg,rgba(var(--theme-page-text-color--rgb),0.15) 54%,transparent 0);
    font-size: 132%;
    font-weight: bold;
    line-height: normal;
    margin: 3px auto 3px auto;
    padding-left: 3px;
    padding-right: 3px;
    text-align: center;
    width: max-content;
}

.x-grid-cell, .x-grid-cell-inner {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}
.fp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 1rem 0;
}

.fp-card {
  background-color: #ffffff;
  border-left: 6px solid #193368;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem;
  transition: transform 0.2s ease;
}

.fp-card:hover {
  transform: translateY(-3px);
}

.fp-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #193368;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

.fp-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fp-card li {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.fp-card a {
  color: #193368;
  text-decoration: none;
}

.fp-card a:hover {
  color: #BC1F25;
  text-decoration: underline;
}

.zebra tbody tr:nth-child(odd) {
  background-color: #f5f7fa;
}
.zebra tbody tr:nth-child(even) {
  background-color: #ffffff;
}
/* Tabellen */

/* Für mobiles Ausblenden (Spalten PF, PA, L3) */
@media screen and (max-width: 768px) {
    .mobile-hidden-col {
        display: none !important;
    }

    /* Auf Mobilgeräten sollen die Grid-Elemente untereinander sein */
    .standings-grid-container {
        flex-direction: column; /* Vertikal anordnen */
        align-items: center; /* Zentriert die Boxen horizontal */
        padding: 0 10px; /* Optional: etwas Padding an den Seiten für kleine Bildschirme */
    }

    .standings-grid-container .standings-container {
        width: 100%; /* Jede Tabelle nimmt die volle Breite ein */
        margin-bottom: 1em; /* Abstand zwischen den Tabellen */
        max-width: none; /* Überschreibt Desktop-Max-Width */
    }
}

/* Für Desktop-Ansicht (Bildschirme breiter als 768px) */
@media screen and (min-width: 769px) {
    .standings-grid-container {
        display: flex;
        flex-wrap: wrap; /* Erlaubt das Umbrechen in die nächste Zeile */
        justify-content: center; /* Zentriert die Tabellenpaare horizontal im Container */
        gap: 10px; /* ABSTAND REDUZIERT: Neuer Wert für den Abstand zwischen den Tabellen */
        margin: 0 auto; /* Zentriert den gesamten Grid-Container */
        max-width: 1200px; /* Optional: Begrenzt die maximale Breite des Grids */
        align-items: flex-start; /* Stellt sicher, dass die Elemente oben ausgerichtet sind */
    }

    .standings-grid-container .standings-container {
        /* Jedes Element nimmt ungefähr die Hälfte der Breite ein, abzüglich des Gaps */
        flex: 1 1 calc(50% - 5px); /* flex-basis angepasst: 5px = die Hälfte von 10px Gap */
        max-width: calc(50% - 5px); /* Stellt sicher, dass sie nicht über 50% hinauswachsen */
        box-sizing: border-box; /* Stellt sicher, dass padding und border in die Breite einfließen */
        min-width: 300px; /* Verhindert, dass die Tabellen zu schmal werden */
        margin-left: 0 !important; /* Wichtig, um Lua-Inline-Styles zu überschreiben */
        margin-right: 0 !important; /* Wichtig, um Lua-Inline-Styles zu überschreiben */
        overflow-x: unset; /* Überschreibt das overflow-x von Lua, da es nun am Elternelement ist */
    }
}

/* ---------- Container ---------- */
.playoff-bracket-container {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 480px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.10);
}

/* ---------- Runden-Header ---------- */
.playoff-round-header {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e5e5e5;
    text-transform: uppercase;
}

/* ---------- Sub-Header AWAY/HOME ---------- */
.playoff-matchup-sub-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    font-weight: 600;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.playoff-header-away,
.playoff-header-home {
    flex: 1;
}

.playoff-header-away {
    text-align: left;
}

.playoff-header-home {
    text-align: right;
}

/* ---------- Round Block ---------- */
.playoff-round {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* ---------- Matchup Layout ---------- */
.playoff-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.playoff-team {
    flex: 1;
    padding: 8px 10px;
    background: #e0e0e0;
    color: #212121;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.playoff-team:hover {
    background: #cfcfcf;
    transform: translateY(-2px);
}

.playoff-team a {
    color: inherit;
    text-decoration: none;
}

.playoff-team a:hover {
    text-decoration: underline;
}

/* ---------- Winner Placeholder ---------- */
.playoff-team.winner-placeholder {
    background: #f0f0f0;
    color: #333333;
    font-weight: 500;
    border-left: 4px solid #4caf50;
    padding: 6px 10px;
    font-size: 0.85em;
    white-space: normal;
    line-height: 1.4;
}

/* ---------- Bye-Teams kompakt ---------- */
.playoff-bye-info {
    margin: 10px 0;
    font-size: 0.9em;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.playoff-bye-label {
    font-weight: bold;
    color: #555;
}

.playoff-bye-team {
    background: #4caf50;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.playoff-bye-team a {
    color: #fff;
    text-decoration: none;
}

.playoff-bye-team:hover {
    background: #3e8e41;
}

/* ---------- AT / VS Labels ---------- */
.playoff-at,
.playoff-vs {
    color: #666;
    font-size: 0.85em;
    font-weight: 600;
    padding: 0 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .playoff-matchup {
        flex-direction: column;
        gap: 4px;
    }
    .playoff-team {
        width: 100%;
    }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}