MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
No edit summary
 
Line 1: Line 1:
<div style="padding: 15px; background-color: white; font-family: sans-serif; color: #333; border-radius: 8px;">
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */
  <p style="font-size: 20px; font-weight: bold; text-align: center;">
    🎁 Reward box - try your luck!
  </p>
  <p>
    Reward boxes are crates where you can draw random items using idle points. In these boxes, you'll mainly find very rare decorative items, dolls, and home decoration. You won't find items here that significantly boost your character's strength. Those kinds of items are obtained through quests.
  </p>
  <p>{{#tag:html|<img src="https://tibiaidle.com/images/giftbox.jpg" width="80%">}}</p>
</div>


== Basic Items ==
/* Każdą tabelę opakowujemy w przewijalny kontener */
{{#tag:html|
.wikitable {
<div class="section-soft"><div class="items-wrap">
    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; */
}


<a class="item-link" href="{{fullurl:Green Dragon Leather}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5877.png"><div class="item-label">Green Dragon Leather</div></div></a>
/* Styl komórek */
<a class="item-link" href="{{fullurl:Ape Fur}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5883.png"><div class="item-label">Ape Fur</div></div></a>
.wikitable th,
<a class="item-link" href="{{fullurl:Turtle Shell}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5899.png"><div class="item-label">Turtle Shell</div></div></a>
.wikitable td {
<a class="item-link" href="{{fullurl:Iron Ore}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5880.png"><div class="item-label">Iron Ore</div></div></a>
    padding: 12px 16px !important;
<a class="item-link" href="{{fullurl:Minotaur Leather}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5878.png"><div class="item-label">Minotaur Leather</div></div></a>
    border: none !important;
<a class="item-link" href="{{fullurl:Beholder Eye}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5898.png"><div class="item-label">Beholder Eye</div></div></a>
    vertical-align: middle !important;
<a class="item-link" href="{{fullurl:Chicken Feather}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5890.png"><div class="item-label">Chicken Feather</div></div></a>
<a class="item-link" href="{{fullurl:Magic Sulphur}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5904.png"><div class="item-label">Magic Sulphur</div></div></a>
<a class="item-link" href="{{fullurl:Lizard Scale}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5881.png"><div class="item-label">Lizard Scale</div></div></a>
<a class="item-link" href="{{fullurl:Soul Orb}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5944.png"><div class="item-label">Soul Orb</div></div></a>
<a class="item-link" href="{{fullurl:Ice Cream}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/7373.png"><div class="item-label">Ice Cream</div></div></a>
<a class="item-link" href="{{fullurl:Demon Dust}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5906.png"><div class="item-label">Demon Dust</div></div></a>
<a class="item-link" href="{{fullurl:Honeycomb}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5902.png"><div class="item-label">Honeycomb</div></div></a>
<a class="item-link" href="{{fullurl:Spider Silk}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5879.png"><div class="item-label">Spider Silk</div></div></a>
<a class="item-link" href="{{fullurl:Lizard Leather}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5876.png"><div class="item-label">Lizard Leather</div></div></a>
<a class="item-link" href="{{fullurl:Hardened Bone}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5925.png"><div class="item-label">Hardened Bone</div></div></a>
<a class="item-link" href="{{fullurl:Yellow Piece of Cloth}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/5914.png"><div class="item-label">Yellow Piece of Cloth</div></div></a>
<a class="item-link" href="{{fullurl:Gold Nugget}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/2157.png"><div class="item-label">Gold Nugget</div></div></a>


</div></div>
}
}}


== Rare Items ==
/* Styl nagłówków */
{{#tag:html|
.wikitable th {
<div class="section-soft"><div class="items-wrap">
    background: #f7fafc !important;
    color: #3182ce !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #3182ce !important;
}


<a class="item-link" href="{{fullurl:Infernal Bolts}}"><div class="item-card"><img src="https://tibiaidle.com/item-images/6529.png"><div class="item-label">Infernal Bolts</div></div></a>
/* Co drugi wiersz lekko szary */
<a class="item-link" href="{{fullurl:Key Ring}}"><div class="item-card"><img src="https://tibiaidl
.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%;
}
 
/* GRID pod itemy */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px auto;
  max-width: 1000px;
}
 
/* pojedynczy kafelek */
.item-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 12px 6px;
  text-align: center;
  transition: 0.2s ease-in-out;
}
 
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
 
/* obrazki */
.item-card img {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}
 
/* nazwa itemu */
.item-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}
 
/* linki */
.item-card a {
  color: inherit;
  text-decoration: none;
}

Latest revision as of 13:43, 2 September 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%;
}

/* GRID pod itemy */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px auto;
  max-width: 1000px;
}

/* pojedynczy kafelek */
.item-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 12px 6px;
  text-align: center;
  transition: 0.2s ease-in-out;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* obrazki */
.item-card img {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}

/* nazwa itemu */
.item-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

/* linki */
.item-card a {
  color: inherit;
  text-decoration: none;
}