MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */
/* ================================
  GLOBALNY WRAPPER DLA ZAWARTOŚCI
  ================================ */
.mw-body-content .mw-parser-output {
  padding: 0 1em; /* trochę po bokach, żeby nic się nie przyklejało */
}


/* --- STYLE DLA .WIKITABLE --- */
/* ================
  BAZA DLA TABEL
  ================ */
table.infobox,
.wikitable {
.wikitable {
    background: #fff !important;
  background: #fff;
    color: #23272e !important;
  border: none;
    border-radius: 12px !important;
  border-radius: 12px;
    border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin: 1.5em auto;
    margin: 32px auto !important;
  overflow: hidden;
    /* usuwamy sztywne min-width i width */
  width: auto;       /* pozwalamy naturalnej szerokości */
    /* min-width: 600px; */
  max-width: 100%;   /* nie wychodzić poza kontener */
    /* width: 100% !important; */
}
}


/* WSPÓLNE KOMÓRKI */
table.infobox td,
.wikitable th,
.wikitable th,
.wikitable td {
.wikitable td {
    padding: 12px 16px !important;
  padding: 0.6em 1em;
    border: none !important;
  vertical-align: middle;
    vertical-align: middle !important;
  white-space: nowrap;
    white-space: nowrap;
}
}


/* NAGŁÓWKI WIKITABLE */
.wikitable th {
.wikitable th {
    background: #f7fafc !important;
  background: #f0f8ff;
    color: #3182ce !important;
  color: #1a5dab;
    font-weight: 700 !important;
  font-weight: bold;
    letter-spacing: 0.02em;
  border-bottom: 2px solid #1a5dab;
    border-bottom: 2px solid #3182ce !important;
}
}


.wikitable tr:nth-child(even) { background: #f5f6fa !important; }
/* PARY WIKITABLE */
.wikitable tr:nth-child(odd)  { background: #fff      !important; }
.wikitable tr:nth-child(even) { background: #f9fcff; }
.wikitable tr:hover            { background: #e3eafc !important; }
.wikitable tr:nth-child(odd)  { background: #ffffff; }
.wikitable tr:hover            { background: #e6f0ff; }


/* LINKI */
.infobox a,
.infobox a:visited,
.wikitable a,
.wikitable a,
.wikitable a:visited {
.wikitable a:visited {
    color: #000 !important;
  color: #1a5dab;
    text-decoration: none !important;
  text-decoration: none;
    transition: color 0.2s;
}
}
.infobox a:hover,
.wikitable a:hover {
.wikitable a:hover {
    color: #001adb !important;
  text-decoration: underline;
}
}


.wikitable th:first-child                     { border-top-left-radius: 12px !important; }
/* ZAOKRĄGLENIA */
.wikitable th:last-child                     { border-top-right-radius: 12px !important; }
.infobox th:first-child,
.wikitable tr:last-child td:first-child       { border-bottom-left-radius: 12px !important; }
.wikitable th:first-child { border-top-left-radius: 12px; }
.wikitable tr:last-child td:last-child       { border-bottom-right-radius: 12px !important; }
.infobox th:last-child,
.wikitable th:last-child { border-top-right-radius: 12px; }
.infobox tr:last-child td:first-child,
.wikitable tr:last-child td:first-child   { border-bottom-left-radius: 12px; }
.infobox tr:last-child td:last-child,
.wikitable tr:last-child td:last-child   { border-bottom-right-radius: 12px; }


/* --- RESPONSYWNE .WIKITABLE --- */
@media screen and (max-width: 800px) {
  .wikitable {
    display: block !important;
    overflow-x: auto !important;
    margin: 0.5em auto !important;
    max-width: calc(100% - 1em) !important;
    padding: 0 0.5em !important;
    min-width: 0 !important;
  }
  .wikitable th,
  .wikitable td {
    padding: 8px 12px !important;
    white-space: nowrap !important;
    min-width: auto !important;
  }
}


/* ======================
  RESPONSYWNE PRZEWIJANIE
  ====================== */
@media screen and (max-width: 768px) {


/* --- STYLE DLA INFObOXÓW (100% szerokości na mobilnych) --- */
  /* Infoboxy (100% szerokości minus padding) */
table.infobox {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin: 32px auto;
    /* desktopowa szerokość auto (zgodnie z szablonem) */
}
 
@media screen and (max-width: 800px) {
   table.infobox {
   table.infobox {
     display: block !important;
     display: block;
     overflow-x: auto !important;
     overflow-x: auto;
     margin: 0.5em auto !important;
     width: calc(100% + 2em);
     /* pełna szerokość minus padding artykułu */
     margin: 1em -1em;  /* wystawiamy na cały kontener z wrappera */
     width: 100% !important;
     box-shadow: none;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 0.5em !important;
   }
   }
   table.infobox td {
 
     white-space: nowrap !important;
  /* Wikitable z przewijaniem i centrowane */
   .wikitable {
     display: block;
    overflow-x: auto;
    margin: 1em auto;
    padding: 0 0.5em;
   }
   }
}


 
  /* Komórki nie zmieniają paddingu, bierzemy powyższe */
/* --- DLA KAFELKOWEJ TABELI GŁÓWNEJ --- */
  table.infobox td,
table.mainpage-tiles {
  .wikitable th,
    border-collapse: separate !important;
  .wikitable td {
    border-spacing: 20px 18px !important;
     white-space: nowrap;
    margin: 30px auto 0 auto;
  }
    background: transparent !important;
}
.mainpage-tile {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(50,50,93,.08), 0 1.5px 6px rgba(49,130,206,.09);
    padding: 18px 10px 10px 10px;
    width: 260px; max-width: 260px; min-width: 260px;
    text-align: center; font-size: 1.07em;
    border: 1px solid #f0f1f7;
    transition: box-shadow 0.2s, transform 0.12s;
    vertical-align: top;
}
.mainpage-tile:hover {
     box-shadow: 0 8px 32px rgba(49,130,206,.13), 0 2px 8px rgba(49,130,206,.11);
    transform: translateY(-3px) scale(1.015);
    border: 1.5px solid #b3d5fa;
}
.mainpage-tile img {
    margin: 4px auto 12px;
    max-width: 96px; height: auto;
}
.mainpage-tile-desc {
    display: block; font-size: .96em; color: #595e66; margin-top: 3px;
}
.mainpage-tile a,
.mainpage-tile a:visited {
    color: #2266e2 !important;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1.17em;
}
.mainpage-tile a:hover {
    color: #000 !important;
}
 
@media (max-width: 800px) {
    table.mainpage-tiles { border-spacing: 8px 10px !important; }
    .mainpage-tile {
        min-width: 125px;
        max-width: 98vw;
        width: 98vw;
        padding: 12px 3px 7px 3px;
    }
    .mainpage-tile img {
        max-width: 70px;
    }
}
}

Revision as of 08:36, 11 July 2025

/* ================================
   GLOBALNY WRAPPER DLA ZAWARTOŚCI
   ================================ */
.mw-body-content .mw-parser-output {
  padding: 0 1em; /* trochę po bokach, żeby nic się nie przyklejało */
}

/* ================
   BAZA DLA TABEL
   ================ */
table.infobox,
.wikitable {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 1.5em auto;
  overflow: hidden;
  width: auto;       /* pozwalamy naturalnej szerokości */
  max-width: 100%;   /* nie wychodzić poza kontener */
}

/* WSPÓLNE KOMÓRKI */
table.infobox td,
.wikitable th,
.wikitable td {
  padding: 0.6em 1em;
  vertical-align: middle;
  white-space: nowrap;
}

/* NAGŁÓWKI WIKITABLE */
.wikitable th {
  background: #f0f8ff;
  color: #1a5dab;
  font-weight: bold;
  border-bottom: 2px solid #1a5dab;
}

/* PARY WIKITABLE */
.wikitable tr:nth-child(even) { background: #f9fcff; }
.wikitable tr:nth-child(odd)  { background: #ffffff; }
.wikitable tr:hover            { background: #e6f0ff; }

/* LINKI */
.infobox a,
.infobox a:visited,
.wikitable a,
.wikitable a:visited {
  color: #1a5dab;
  text-decoration: none;
}
.infobox a:hover,
.wikitable a:hover {
  text-decoration: underline;
}

/* ZAOKRĄGLENIA */
.infobox th:first-child,
.wikitable th:first-child { border-top-left-radius: 12px; }
.infobox th:last-child,
.wikitable th:last-child  { border-top-right-radius: 12px; }
.infobox tr:last-child td:first-child,
.wikitable tr:last-child td:first-child   { border-bottom-left-radius: 12px; }
.infobox tr:last-child td:last-child,
.wikitable tr:last-child td:last-child    { border-bottom-right-radius: 12px; }


/* ======================
   RESPONSYWNE PRZEWIJANIE
   ====================== */
@media screen and (max-width: 768px) {

  /* Infoboxy (100% szerokości minus padding) */
  table.infobox {
    display: block;
    overflow-x: auto;
    width: calc(100% + 2em);
    margin: 1em -1em;  /* wystawiamy na cały kontener z wrappera */
    box-shadow: none;
  }

  /* Wikitable z przewijaniem i centrowane */
  .wikitable {
    display: block;
    overflow-x: auto;
    margin: 1em auto;
    padding: 0 0.5em;
  }

  /* Komórki nie zmieniają paddingu, bierzemy powyższe */
  table.infobox td,
  .wikitable th,
  .wikitable td {
    white-space: nowrap;
  }
}