MediaWiki:Common.css

From Tibia Idle wiki

Revision as of 13:08, 26 June 2025 by Admin (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* NOWOCZESNA, atrakcyjna tabela */

.wikitable, .wikitable th, .wikitable td {
    border: none !important;
    background: none;
}

.wikitable {
    border-radius: 18px !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;
}

.wikitable td {
    background: #fff;
    padding: 15px 18px;
    transition: background 0.18s, box-shadow 0.18s;
    font-size: 16px;
}

.wikitable tr {
    transition: background 0.18s;
}

.wikitable tr:nth-child(even) td {
    background: #f0f4f8;
}

.wikitable tr:hover td {
    background: #e3f0fd !important;
    box-shadow: 0 2px 10px rgba(50,130,250,0.07);
}

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

.wikitable a {
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.19s;
    border-bottom: 1.5px solid rgba(30, 80, 200, 0.07);
    padding-bottom: 2px;
}

.wikitable a:hover {
    color: #e53935;
    border-bottom: 1.5px solid #e53935;
    background: #f7e6e6;
    border-radius: 3px;
}


















/* Responsive Cards */
.responsive-cards-container {
  width: 100%;
  overflow: hidden;
}

.responsive-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
  margin: 0 auto;
  max-width: 1200px;
}

.responsive-card {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  border: 1px solid #444;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.responsive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: #666;
}

.responsive-card img {
  margin-bottom: 10px;
  object-fit: contain;
}

.responsive-card-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.responsive-card-desc {
  font-size: 0.9em;
  color: #bbb;
  flex-grow: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .responsive-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .responsive-card {
    padding: 10px;
  }
  
  .responsive-card-title {
    font-size: 1em;
  }
  
  .responsive-card-desc {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .responsive-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}