MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
Tag: Reverted
No edit summary
 
(45 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 */
    /* min-width: 600px; */
    /* width: 100% !important; */
}
}


.wikitable {
/* Styl komórek */
     border-radius: 18px !important;
.wikitable th,
     box-shadow: 0 8px 40px 0 rgba(30, 42, 73, 0.16), 0 1.5px 6px 0 rgba(30, 42, 73, 0.03);
.wikitable td {
    overflow: hidden;
     padding: 12px 16px !important;
    background: #f6f8fa;
     border: none !important;
     font-size: 16px;
     vertical-align: middle !important;
    margin: 40px auto;
 
    width: 96%;
}
}


/* Styl nagłówków */
.wikitable th {
.wikitable th {
     font-weight: 700;
    background: #f7fafc !important;
     letter-spacing: 0.04em;
    color: #3182ce !important;
    padding: 16px 18px;
     font-weight: 700 !important;
     border-bottom: none;
     letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.07);
     border-bottom: 2px solid #3182ce !important;
    font-size: 17px;
}
}


.wikitable td {
/* Co drugi wiersz lekko szary */
    background: #fff;
.wikitable tr:nth-child(even) { background: #f5f6fa !important; }
    padding: 15px 18px;
.wikitable tr:nth-child(odd)  { background: #fff     !important; }
    transition: background 0.18s, box-shadow 0.18s;
 
    font-size: 16px;
/* Efekt hover */
}
.wikitable tr:hover { background: #e3eafc !important; }


.wikitable tr {
/* Linki bez podkreślenia */
     transition: background 0.18s;
.wikitable a,
.wikitable a:visited {
    color: #000000 !important;
    text-decoration: none !important;
     transition: color 0.2s;
}
}
 
.wikitable a:hover {
.wikitable tr:nth-child(even) td {
     color: #001adb !important;
     background: #f0f4f8;
}
}


.wikitable tr:hover td {
/* Zaokrąglenie rogów tylko na rogach tabeli */
    background: #e3f0fd !important;
.wikitable th:first-child                      { border-top-left-radius: 12px !important; }
    box-shadow: 0 2px 10px rgba(50,130,250,0.07);
.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; }


.wikitable img {
    width: 40px;
    height: 40px;
    padding: 3px;
    margin-right: 3px;
}


.wikitable a {
/* --- RESPONSYWNE PRZEWIJANIE I CENTROWANIE NA MOBILNYCH --- */
     color: #1976d2;
@media screen and (max-width: 800px) {
     font-weight: 600;
  .wikitable {
     text-decoration: none;
     overflow-x: auto !important;
     transition: color 0.19s;
     margin: 0.5em auto !important;         /* centrowanie */
     border-bottom: 1.5px solid rgba(30, 80, 200, 0.07);
     max-width: calc(100% - 1em) !important; /* uwzględnia padding artykułu */
     padding-bottom: 2px;
     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;
  }


.wikitable a:hover {
  /* Infoboxy (np. Ancient Tiara) analogicznie */
     color: #e53935;
  table.infobox {
     border-bottom: 1.5px solid #e53935;
     display: block !important;
     background: #f7e6e6;
     overflow-x: auto !important;
     border-radius: 3px;
    margin: 0.5em auto !important;
     max-width: calc(100% - 1em) !important;
     min-width: 0 !important;
  }
  table.infobox td {
    white-space: nowrap !important;
  }
}
}


////////// table koniec


/* 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;
}


.responsive-cards {
.mainpage-tile {
  display: flex;
    background: #fff;
  flex-wrap: wrap;
    border-radius: 18px;
  justify-content: center;
    box-shadow: 0 8px 24px rgba(50,50,93,.08), 0 1.5px 6px rgba(49,130,206,.09);
  gap: 24px 22px;
    padding: 18px 10px 10px 10px;
  margin: 36px auto 0 auto;
    width: 260px;                 /* SZTYWNA szerokość wszystkich kafli */
  max-width: 930px;
    max-width: 260px;
  padding: 0;
    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;
}
}
.responsive-card {
 
  background: #fff;
.mainpage-tile:hover {
  border: 2px solid #eee;
    box-shadow: 0 8px 32px rgba(49,130,206,.13), 0 2px 8px rgba(49,130,206,.11);
  border-radius: 18px;
    transform: translateY(-3px) scale(1.015);
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    border: 1.5px solid #b3d5fa;
  text-align: center;
  transition: box-shadow 0.17s, border 0.14s, transform 0.13s;
  cursor: pointer;
  min-width: 140px;
  max-width: 210px;
  flex: 1 1 21%;
  padding: 18px 10px 10px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
}
.responsive-card:hover {
 
  box-shadow: 0 7px 25px rgba(110,110,200,0.16);
.mainpage-tile img {
  border: 2px solid #bdaaff;
    margin-bottom: 12px;
  transform: translateY(-4px) scale(1.025);
    margin-top: 4px;
  z-index: 2;
    max-width: 96px;
    height: auto;
}
}
.responsive-card img {
 
  margin-bottom: 8px;
.mainpage-tile-desc {
  max-width: 74px;
    font-size: .96em;
  max-height: 74px;
    color: #595e66;
  filter: drop-shadow(0 1px 2px #bbb);
    margin-top: 3px;
}
}
.responsive-card-title {
 
  font-weight: bold;
/* Styl linków – brak podkreśleń */
  color: #7566c7;
.mainpage-tile a,
  font-size: 1.13em;
.mainpage-tile a:visited {
  margin: 0.35em 0 0.15em 0;
    color: #2266e2 !important;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1.17em;
}
}
.responsive-card-desc {
 
  font-size: 0.93em;
.mainpage-tile a:hover {
  color: #444;
    color: #000 !important;
}
}


@media (max-width: 900px) {
/* Responsive kafle na mobilnych */
  .responsive-card {
@media (max-width: 800px) {
     flex-basis: 43%;
    table.mainpage-tiles {
    max-width: 47vw;
        border-spacing: 8px 10px !important;
     min-width: 140px;
     }
  }
    .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;
}
}
@media (max-width: 600px) {
 
  .responsive-cards {
    gap: 10px 6vw;
    max-width: 99vw;
    padding: 0;
  }
  .responsive-card {
    flex-basis: 48%;
    max-width: 49vw;
    min-width: 110px;
    padding: 12px 2vw 8px 2vw;
  }
}
}
@media (max-width: 420px) {
 
  .responsive-card {
.mw-parser-output table {
    flex-basis: 99vw;
  /* nadpisujemy block na table */
    max-width: 98vw;
  display: table !important;
    min-width: unset;
  overflow: auto;
    padding: 10px 1vw 6px 1vw;
   max-width: 100%;
   }
  .responsive-cards {
    gap: 6px;
  }
}
}

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%;
}