MediaWiki:MonsterCard.css

From CoraTO Wiki - Official Wiki
Revision as of 16:55, 21 October 2025 by Noorisei (talk | contribs) (Created page with "Monster Information Cards: .monster-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .monster-info-card { background: #ffffff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); border: 1px solid #e9ecef; transition: all 0.3s ease; position: relative; overflow: hidden; } .monster-info-card::before { content: ''; position: absolute;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.
/* Monster Information Cards */
.monster-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.monster-info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.monster-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ff6b9d, #d63384);
}

.monster-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.monster-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.monster-card-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
}

.monster-level-badge {
  background: linear-gradient(135deg, #ff6b9d, #d63384);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.monster-stats-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monster-stat-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.monster-stat-info:last-child {
  border-bottom: none;
}

.monster-stat-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
}

.monster-stat-value {
  font-weight: 700;
  color: #2c3e50;
  text-align: right;
}

.monster-rewards-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.monster-reward-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.monster-reward-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.monster-reward-value {
  font-weight: 700;
  color: #28a745;
  text-align: right;
}



/*---------------------------------------------------------------------------*/
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop médio: 992px - 1199px */
@media (max-width: 1199px) {
  .monster-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-bottom: 1.8rem;
  }
  
  .monster-info-card {
    padding: 1.3rem;
    border-radius: 10px;
  }
  
  .monster-card-header {
    margin-bottom: 0.9rem;
  }
  
  .monster-card-header h4 {
    font-size: 1.2rem;
  }
  
  .monster-level-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.85rem;
  }
  
  .monster-stats-details {
    gap: 0.9rem;
  }
  
  .monster-stat-info {
    padding: 0.45rem 0;
  }
  
  .monster-stat-label {
    font-size: 0.85rem;
  }
  
  .monster-rewards-section {
    padding: 0.9rem;
    border-radius: 7px;
    margin-top: 0.9rem;
  }
  
  .monster-reward-label {
    font-size: 0.85rem;
  }
}

/* Desktop pequeno: 768px - 991px */
@media (max-width: 991px) {
  .monster-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .monster-info-card {
    padding: 1.2rem;
    border-radius: 8px;
  }
  
  .monster-info-card:hover {
    transform: translateY(-2px);
  }
  
  .monster-card-header {
    margin-bottom: 0.8rem;
  }
  
  .monster-card-header h4 {
    font-size: 1.1rem;
  }
  
  .monster-level-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
  }
  
  .monster-stats-details {
    gap: 0.8rem;
  }
  
  .monster-stat-info {
    padding: 0.4rem 0;
  }
  
  .monster-stat-label {
    font-size: 0.8rem;
  }
  
  .monster-rewards-section {
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 0.8rem;
  }
  
  .monster-reward-label {
    font-size: 0.8rem;
  }
}

/* Tablet: 576px - 767px */
@media (max-width: 767px) {
  .monster-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .monster-info-card {
    padding: 1rem;
    border-radius: 6px;
  }
  
  .monster-info-card:hover {
    transform: translateY(-1px);
  }
  
  .monster-card-header {
    margin-bottom: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .monster-card-header h4 {
    font-size: 1rem;
  }
  
  .monster-level-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    align-self: flex-end;
  }
  
  .monster-stats-details {
    gap: 0.7rem;
  }
  
  .monster-stat-info {
    padding: 0.35rem 0;
  }
  
  .monster-stat-label {
    font-size: 0.75rem;
  }
  
  .monster-stat-value {
    font-size: 0.9rem;
  }
  
  .monster-rewards-section {
    padding: 0.7rem;
    border-radius: 5px;
    margin-top: 0.7rem;
  }
  
  .monster-reward-label {
    font-size: 0.75rem;
  }
  
  .monster-reward-value {
    font-size: 0.9rem;
  }
}

/* Mobile: até 575px */
@media (max-width: 575px) {
  .monster-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .monster-info-card {
    padding: 0.8rem;
    border-radius: 4px;
  }
  
  .monster-info-card:hover {
    transform: none;
  }
  
  .monster-card-header {
    margin-bottom: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  
  .monster-card-header h4 {
    font-size: 0.9rem;
  }
  
  .monster-level-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    align-self: flex-end;
  }
  
  .monster-stats-details {
    gap: 0.6rem;
  }
  
  .monster-stat-info {
    padding: 0.3rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  
  .monster-stat-label {
    font-size: 0.7rem;
  }
  
  .monster-stat-value {
    font-size: 0.85rem;
    text-align: left;
  }
  
  .monster-rewards-section {
    padding: 0.6rem;
    border-radius: 4px;
    margin-top: 0.6rem;
  }
  
  .monster-reward-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.2rem 0;
  }
  
  .monster-reward-label {
    font-size: 0.7rem;
  }
  
  .monster-reward-value {
    font-size: 0.85rem;
    text-align: left;
  }
}