MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
Tag: Reverted
No edit summary
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* NOWOCZESNA, atrakcyjna tabela */
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */


.wikitable, .wikitable th, .wikitable td {
/* Każdą tabelę opakowujemy w przewijalny kontener */
.wikitable {
    background: #fff !important;
    color: #23272e !important;
    border-radius: 12px !important;
     border: none !important;
     border: none !important;
    background: none;
     box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
     margin: 32px auto !important;
 
     /* Usuńemy sztywne min-width i width */
.wikitable {
     /* min-width: 600px; */
    border-radius: 18px !important;
     /* width: 100% !important; */
     box-shadow: 0 8px 40px 0 rgba(30, 42, 73, 0.16), 0 1.5px 6px 0 rgba(30, 42, 73, 0.03);
    overflow: hidden;
    background: #f6f8fa;
    font-size: 16px;
     margin: 40px auto;
     width: 96%;
}
 
.wikitable th {
     font-weight: 700;
     letter-spacing: 0.04em;
    padding: 16px 18px;
    border-bottom: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.07);
    font-size: 17px;
}
}


/* Styl komórek */
.wikitable th,
.wikitable td {
.wikitable td {
    background: #fff;
     padding: 12px 16px !important;
     padding: 15px 18px;
     border: none !important;
     transition: background 0.18s, box-shadow 0.18s;
     vertical-align: middle !important;
     font-size: 16px;
}


.wikitable tr {
    transition: background 0.18s;
}
}


.wikitable tr:nth-child(even) td {
/* Styl nagłówków */
     background: #f0f4f8;
.wikitable th {
    background: #f7fafc !important;
    color: #3182ce !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
     border-bottom: 2px solid #3182ce !important;
}
}


.wikitable tr:hover td {
/* Co drugi wiersz lekko szary */
    background: #e3f0fd !important;
.wikitable tr:nth-child(even) { background: #f5f6fa !important; }
    box-shadow: 0 2px 10px rgba(50,130,250,0.07);
.wikitable tr:nth-child(odd) { background: #fff      !important; }
}


.wikitable img {
/* Efekt hover */
    width: 40px;
.wikitable tr:hover { background: #e3eafc !important; }
    height: 40px;
    padding: 3px;
    margin-right: 3px;
}


.wikitable a {
/* Linki bez podkreślenia */
     color: #1976d2;
.wikitable a,
    font-weight: 600;
.wikitable a:visited {
     text-decoration: none;
     color: #000000 !important;
     transition: color 0.19s;
     text-decoration: none !important;
    border-bottom: 1.5px solid rgba(30, 80, 200, 0.07);
     transition: color 0.2s;
    padding-bottom: 2px;
}
}
.wikitable a:hover {
.wikitable a:hover {
     color: #e53935;
     color: #001adb !important;
    border-bottom: 1.5px solid #e53935;
    background: #f7e6e6;
    border-radius: 3px;
}
}


/* Zaokrąglenie rogów tylko na rogach tabeli */
.wikitable th:first-child                      { border-top-left-radius: 12px !important; }
.wikitable th:last-child                        { border-top-right-radius: 12px !important; }
.wikitable tr:last-child td:first-child        { border-bottom-left-radius: 12px !important; }
.wikitable tr:last-child td:last-child          { border-bottom-right-radius: 12px !important; }




/* --- RESPONSYWNE PRZEWIJANIE I CENTROWANIE NA MOBILNYCH --- */
@media screen and (max-width: 800px) {
  .wikitable {
    overflow-x: auto !important;
    margin: 0.5em auto !important;          /* centrowanie */
    max-width: calc(100% - 1em) !important;  /* uwzględnia padding artykułu */
    padding: 0 0.1em;                        /* opcjonalny wewnętrzny margines */
    /* upewniamy się, że nie blokuje min-width */
    min-width: 0 !important;
  }
  .wikitable th,
  .wikitable td {
    padding: 8px 12px !important;
    min-width: auto !important;
  }


  /* Infoboxy (np. Ancient Tiara) analogicznie */
  table.infobox {
    display: block !important;
    overflow-x: auto !important;
    margin: 0.5em auto !important;
    max-width: calc(100% - 1em) !important;
    min-width: 0 !important;
  }
  table.infobox td {
    white-space: nowrap !important;
  }
}




/* Dla kafelkowej tabeli głównej – wszystkie kafle równe i linki bez podkreśleń */
table.mainpage-tiles {
    border-collapse: separate !important;
    border-spacing: 20px 18px !important;
    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;                /* SZTYWNA szerokość wszystkich kafli */
    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;
 
 
 
 
 
 
 
 
 
 
 
 
/* Kontener kart */
.responsive-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
}


/* Pojedyncza karta */
.mainpage-tile img {
.responsive-card {
    margin-bottom: 12px;
  background: #fff;
    margin-top: 4px;
  border-radius: 18px;
    max-width: 96px;
  box-shadow: 0 2px 18px rgba(45,45,75,0.12);
    height: auto;
  width: 220px;
  max-width: 94vw;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 18px 16px;
  text-align: center;
  transition: transform 0.14s, box-shadow 0.14s;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
}


.responsive-card:hover {
.mainpage-tile-desc {
  transform: translateY(-5px) scale(1.03);
    font-size: .96em;
  box-shadow: 0 8px 28px rgba(45,45,75,0.18);
    color: #595e66;
  z-index: 2;
    margin-top: 3px;
}
}


/* Obrazki w kartach */
/* Styl linków – brak podkreśleń */
.responsive-card img {
.mainpage-tile a,
  margin-bottom: 16px;
.mainpage-tile a:visited {
  border-radius: 12px;
    color: #2266e2 !important;
  background: #f8f8fc;
    font-weight: bold;
  box-shadow: 0 2px 10px rgba(45,45,75,0.08);
    text-decoration: none !important;
  max-width: 100%;
    font-size: 1.17em;
  height: auto;
}
}


/* Tytuł karty */
.mainpage-tile a:hover {
.responsive-card-title {
    color: #000 !important;
  font-size: 1.11rem;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  color: #2d213c;
  word-break: break-word;
}
}


/* Opis */
/* Responsive kafle na mobilnych */
.responsive-card-desc {
@media (max-width: 800px) {
  font-size: 0.98rem;
    table.mainpage-tiles {
  color: #655a75;
        border-spacing: 8px 10px !important;
  font-weight: 400;
    }
  margin-top: 0;
    .mainpage-tile {
  line-height: 1.4;
        min-width: 125px;
}
        max-width: 98vw;
        width: 98vw;
        padding: 12px 3px 7px 3px;
    }
    .mainpage-tile img {
        max-width: 70px;
    }


/* Specjalny kolor dla tytułu Game Monsters, jeśli w kodzie HTML */
tbody, td, tfoot, th, thead, tr {
.responsive-card-title[style] {
    border-color: inherit;
  color: inherit !important;
    border-style: solid;
    border-width: 0;
}
}


/* Responsywność */
@media (max-width: 900px) {
  .responsive-cards {
    gap: 16px;
  }
  .responsive-card {
    width: 48vw;
    min-width: 180px;
    padding: 16px 8px;
  }
}
}


@media (max-width: 600px) {
.mw-parser-output table {
   .responsive-card {
   /* nadpisujemy block na table */
    width: 95vw;
  display: table !important;
    max-width: 98vw;
  overflow: auto;
    min-width: 0;
  max-width: 100%;
    padding: 12px 5px;
  }
  .responsive-cards {
    gap: 10px;
    padding: 8px;
  }
}
}

Latest revision as of 10:41, 18 July 2025

/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */

/* Każdą tabelę opakowujemy w przewijalny kontener */
.wikitable {
    background: #fff !important;
    color: #23272e !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin: 32px auto !important;
    /* Usuńemy sztywne min-width i width */
    /* min-width: 600px; */
    /* width: 100% !important; */
}

/* Styl komórek */
.wikitable th,
.wikitable td {
    padding: 12px 16px !important;
    border: none !important;
    vertical-align: middle !important;

}

/* Styl nagłówków */
.wikitable th {
    background: #f7fafc !important;
    color: #3182ce !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #3182ce !important;
}

/* Co drugi wiersz lekko szary */
.wikitable tr:nth-child(even) { background: #f5f6fa !important; }
.wikitable tr:nth-child(odd)  { background: #fff      !important; }

/* Efekt hover */
.wikitable tr:hover { background: #e3eafc !important; }

/* Linki bez podkreślenia */
.wikitable a,
.wikitable a:visited {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.wikitable a:hover {
    color: #001adb !important;
}

/* Zaokrąglenie rogów tylko na rogach tabeli */
.wikitable th:first-child                       { border-top-left-radius: 12px !important; }
.wikitable th:last-child                        { border-top-right-radius: 12px !important; }
.wikitable tr:last-child td:first-child         { border-bottom-left-radius: 12px !important; }
.wikitable tr:last-child td:last-child          { border-bottom-right-radius: 12px !important; }


/* --- RESPONSYWNE PRZEWIJANIE I CENTROWANIE NA MOBILNYCH --- */
@media screen and (max-width: 800px) {
  .wikitable {
    overflow-x: auto !important;
    margin: 0.5em auto !important;          /* centrowanie */
    max-width: calc(100% - 1em) !important;  /* uwzględnia padding artykułu */
    padding: 0 0.1em;                        /* opcjonalny wewnętrzny margines */
    /* upewniamy się, że nie blokuje min-width */
    min-width: 0 !important;
  }
  .wikitable th,
  .wikitable td {
    padding: 8px 12px !important;
    min-width: auto !important;
  }

  /* Infoboxy (np. Ancient Tiara) analogicznie */
  table.infobox {
    display: block !important;
    overflow-x: auto !important;
    margin: 0.5em auto !important;
    max-width: calc(100% - 1em) !important;
    min-width: 0 !important;
  }
  table.infobox td {
    white-space: nowrap !important;
  }
}


/* Dla kafelkowej tabeli głównej – wszystkie kafle równe i linki bez podkreśleń */
table.mainpage-tiles {
    border-collapse: separate !important;
    border-spacing: 20px 18px !important;
    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;                 /* SZTYWNA szerokość wszystkich kafli */
    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-bottom: 12px;
    margin-top: 4px;
    max-width: 96px;
    height: auto;
}

.mainpage-tile-desc {
    font-size: .96em;
    color: #595e66;
    margin-top: 3px;
}

/* Styl linków – brak podkreśleń */
.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;
}

/* Responsive kafle na mobilnych */
@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;
    }

tbody, td, tfoot, th, thead, tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

}

.mw-parser-output table {
  /* nadpisujemy block na table */
  display: table !important;
  overflow: auto;
  max-width: 100%;
}