MediaWiki:Common.css: Difference between revisions

From Tibia Idle wiki

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 76: Line 76:




 
/* Responsywna tabela TibiaIdle */
 
.tibiaidle-responsive-table {
 
   overflow-x: auto;
/* Specyficzny selektor dla TibiaIdle */
   margin: 1em 0;
#tibiaidle-cards .responsive-cards {
   display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
   margin: 0 auto;
  max-width: 1200px;
}
}


#tibiaidle-cards .responsive-card {
.tibiaidle-responsive-table table {
   background: #2c2c2c;
   min-width: 600px;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 15px;
  width: 160px;
  text-align: center;
  transition: transform 0.2s;
}
}


#tibiaidle-cards .responsive-card:hover {
.tibiaidle-img {
   transform: translateY(-3px);
  max-width: 74px;
   border-color: #666;
  height: auto;
   display: block;
   margin: 0 auto;
}
}


#tibiaidle-cards .responsive-card img {
.tibiaidle-desc {
   margin-bottom: 10px;
   font-size: 0.9em;
   height: 64px;
  color: #666;
   object-fit: contain;
   display: block;
   margin-top: 5px;
}
}


#tibiaidle-cards .responsive-card-title {
/* Responsywność */
  font-weight: bold;
@media (max-width: 768px) {
   color: #f0f0f0;
  .tibiaidle-responsive-table table {
   margin: 8px 0;
    border-spacing: 10px !important;
   font-size: 1.1em;
   }
}
    
 
   .tibiaidle-img {
#tibiaidle-cards .responsive-card-desc {
    max-width: 60px;
  font-size: 0.85em;
   }
   color: #bbb;
}
}


/* Mobile */
@media (max-width: 480px) {
@media (max-width: 768px) {
   .tibiaidle-responsive-table table {
   #tibiaidle-cards .responsive-card {
    border-spacing: 5px !important;
     width: calc(50% - 20px);
  }
     padding: 10px;
 
  .tibiaidle-img {
     max-width: 50px;
  }
 
  .tibiaidle-desc {
     font-size: 0.8em;
   }
   }
}
}

Revision as of 13:13, 26 June 2025

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









/* Responsywna tabela TibiaIdle */
.tibiaidle-responsive-table {
  overflow-x: auto;
  margin: 1em 0;
}

.tibiaidle-responsive-table table {
  min-width: 600px;
}

.tibiaidle-img {
  max-width: 74px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tibiaidle-desc {
  font-size: 0.9em;
  color: #666;
  display: block;
  margin-top: 5px;
}

/* Responsywność */
@media (max-width: 768px) {
  .tibiaidle-responsive-table table {
    border-spacing: 10px !important;
  }
  
  .tibiaidle-img {
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .tibiaidle-responsive-table table {
    border-spacing: 5px !important;
  }
  
  .tibiaidle-img {
    max-width: 50px;
  }
  
  .tibiaidle-desc {
    font-size: 0.8em;
  }
}