MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */


/* Każdą tabelę opakowujemy w przewijalny kontener */
/* --- STYLE DLA .WIKITABLE --- */
.wikitable {
.wikitable {
     background: #fff !important;
     background: #fff !important;
Line 9: Line 9:
     box-shadow: 0 4px 24px rgba(0,0,0,0.07);
     box-shadow: 0 4px 24px rgba(0,0,0,0.07);
     margin: 32px auto !important;
     margin: 32px auto !important;
     /* Usuńemy sztywne min-width i width */
     /* usuwamy sztywne min-width i width */
     /* min-width: 600px; */
     /* min-width: 600px; */
     /* width: 100% !important; */
     /* width: 100% !important; */
}
}


/* Styl komórek */
.wikitable th,
.wikitable th,
.wikitable td {
.wikitable td {
Line 20: Line 19:
     border: none !important;
     border: none !important;
     vertical-align: middle !important;
     vertical-align: middle !important;
     white-space: nowrap;         /* nie łamie tekstu w nagłówkach */
     white-space: nowrap;
}
}


/* Styl nagłówków */
.wikitable th {
.wikitable th {
     background: #f7fafc !important;
     background: #f7fafc !important;
Line 32: Line 30:
}
}


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


/* Efekt hover */
.wikitable tr:hover { background: #e3eafc !important; }
/* Linki bez podkreślenia */
.wikitable a,
.wikitable a,
.wikitable a:visited {
.wikitable a:visited {
     color: #000000 !important;
     color: #000 !important;
     text-decoration: none !important;
     text-decoration: none !important;
     transition: color 0.2s;
     transition: color 0.2s;
Line 50: Line 44:
}
}


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


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


  /* Infoboxy (np. Ancient Tiara) analogicznie */
 
/* --- STYLE DLA INFObOXÓW (100% szerokości na mobilnych) --- */
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 !important;
     overflow-x: auto !important;
     overflow-x: auto !important;
     margin: 0.5em auto !important;
     margin: 0.5em auto !important;
     max-width: calc(100% - 1em) !important;
     /* pełna szerokość minus padding artykułu */
    width: 100% !important;
    max-width: none !important;
     min-width: 0 !important;
     min-width: 0 !important;
    padding: 0 0.5em !important;
   }
   }
   table.infobox td {
   table.infobox td {
Line 89: Line 94:




/* Dla kafelkowej tabeli głównej – wszystkie kafle równe i linki bez podkreśleń */
/* --- DLA KAFELKOWEJ TABELI GŁÓWNEJ --- */
table.mainpage-tiles {
table.mainpage-tiles {
     border-collapse: separate !important;
     border-collapse: separate !important;
Line 96: Line 101:
     background: transparent !important;
     background: transparent !important;
}
}
.mainpage-tile {
.mainpage-tile {
     background: #fff;
     background: #fff;
Line 102: Line 106:
     box-shadow: 0 8px 24px rgba(50,50,93,.08), 0 1.5px 6px rgba(49,130,206,.09);
     box-shadow: 0 8px 24px rgba(50,50,93,.08), 0 1.5px 6px rgba(49,130,206,.09);
     padding: 18px 10px 10px 10px;
     padding: 18px 10px 10px 10px;
     width: 260px;                 /* SZTYWNA szerokość wszystkich kafli */
     width: 260px; max-width: 260px; min-width: 260px;
    max-width: 260px;
     text-align: center; font-size: 1.07em;
    min-width: 260px;
     text-align: center;
    font-size: 1.07em;
     border: 1px solid #f0f1f7;
     border: 1px solid #f0f1f7;
     transition: box-shadow 0.2s, transform 0.12s;
     transition: box-shadow 0.2s, transform 0.12s;
     vertical-align: top;
     vertical-align: top;
}
}
.mainpage-tile:hover {
.mainpage-tile:hover {
     box-shadow: 0 8px 32px rgba(49,130,206,.13), 0 2px 8px rgba(49,130,206,.11);
     box-shadow: 0 8px 32px rgba(49,130,206,.13), 0 2px 8px rgba(49,130,206,.11);
Line 117: Line 117:
     border: 1.5px solid #b3d5fa;
     border: 1.5px solid #b3d5fa;
}
}
.mainpage-tile img {
.mainpage-tile img {
     margin-bottom: 12px;
     margin: 4px auto 12px;
    margin-top: 4px;
     max-width: 96px; height: auto;
     max-width: 96px;
    height: auto;
}
}
.mainpage-tile-desc {
.mainpage-tile-desc {
     display: block;
     display: block; font-size: .96em; color: #595e66; margin-top: 3px;
    font-size: .96em;
    color: #595e66;
    margin-top: 3px;
}
}
/* Styl linków – brak podkreśleń */
.mainpage-tile a,
.mainpage-tile a,
.mainpage-tile a:visited {
.mainpage-tile a:visited {
Line 140: Line 131:
     font-size: 1.17em;
     font-size: 1.17em;
}
}
.mainpage-tile a:hover {
.mainpage-tile a:hover {
     color: #000 !important;
     color: #000 !important;
}
}


/* Responsive kafle na mobilnych */
@media (max-width: 800px) {
@media (max-width: 800px) {
     table.mainpage-tiles {
     table.mainpage-tiles { border-spacing: 8px 10px !important; }
        border-spacing: 8px 10px !important;
    }
     .mainpage-tile {
     .mainpage-tile {
         min-width: 125px;
         min-width: 125px;

Revision as of 08:35, 11 July 2025

/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */

/* --- STYLE DLA .WIKITABLE --- */
.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;
    /* usuwamy sztywne min-width i width */
    /* min-width: 600px; */
    /* width: 100% !important; */
}

.wikitable th,
.wikitable td {
    padding: 12px 16px !important;
    border: none !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.wikitable th {
    background: #f7fafc !important;
    color: #3182ce !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #3182ce !important;
}

.wikitable tr:nth-child(even) { background: #f5f6fa !important; }
.wikitable tr:nth-child(odd)  { background: #fff      !important; }
.wikitable tr:hover            { background: #e3eafc !important; }

.wikitable a,
.wikitable a:visited {
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.wikitable a:hover {
    color: #001adb !important;
}

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


/* --- STYLE DLA INFObOXÓW (100% szerokości na mobilnych) --- */
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 {
    display: block !important;
    overflow-x: auto !important;
    margin: 0.5em auto !important;
    /* pełna szerokość minus padding artykułu */
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 0.5em !important;
  }
  table.infobox td {
    white-space: nowrap !important;
  }
}


/* --- DLA KAFELKOWEJ TABELI GŁÓWNEJ --- */
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; 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;
    }
}