MediaWiki:MonsterCard.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
.monster-info-card { | .monster-info-card { | ||
background: | background: var(--bg-1); | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 1.5rem; | padding: 1.5rem; | ||
box-shadow: 0 4px 20px | box-shadow: 0 4px 20px var(--shadow-soft); | ||
border: 1px solid | border: 1px solid var(--border); | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
position: relative; | position: relative; | ||
| Line 29: | Line 29: | ||
right: 0; | right: 0; | ||
height: 4px; | height: 4px; | ||
background: linear-gradient(135deg, | background: linear-gradient(135deg, var(--heading-gradient-start), var(--heading-gradient-end)); | ||
} | } | ||
.monster-info-card:hover { | .monster-info-card:hover { | ||
transform: translateY(-4px); | transform: translateY(-4px); | ||
box-shadow: 0 8px 30px | box-shadow: 0 8px 30px var(--shadow-medium); | ||
} | } | ||
| Line 48: | Line 48: | ||
font-size: 1.3rem; | font-size: 1.3rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: | color: var(--heading); | ||
} | } | ||
.monster-level-badge { | .monster-level-badge { | ||
background: | background: var(--primary); | ||
color: | color: var(--text-strong); | ||
padding: 0.25rem 0.75rem; | padding: 0.25rem 0.75rem; | ||
border-radius: 15px; | border-radius: 15px; | ||
| Line 71: | Line 71: | ||
align-items: center; | align-items: center; | ||
padding: 0.5rem 0; | padding: 0.5rem 0; | ||
border-bottom: 1px solid | border-bottom: 1px solid var(--border); | ||
} | } | ||
| Line 80: | Line 80: | ||
.monster-stat-label { | .monster-stat-label { | ||
font-weight: 600; | font-weight: 600; | ||
color: | color: var(--text-muted); | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
} | } | ||
| Line 86: | Line 86: | ||
.monster-stat-value { | .monster-stat-value { | ||
font-weight: 700; | font-weight: 700; | ||
color: | color: var(--heading); | ||
text-align: right; | text-align: right; | ||
} | } | ||
.monster-rewards-section { | .monster-rewards-section { | ||
background: | background: var(--bg-1); | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 1rem; | padding: 1rem; | ||
| Line 106: | Line 106: | ||
.monster-reward-label { | .monster-reward-label { | ||
font-weight: 600; | font-weight: 600; | ||
color: | color: var(--text-muted); | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
} | } | ||
| Line 112: | Line 112: | ||
.monster-reward-value { | .monster-reward-value { | ||
font-weight: 700; | font-weight: 700; | ||
color: | color: var(--positive); | ||
text-align: right; | text-align: right; | ||
} | } | ||
| Line 370: | Line 370: | ||
} | } | ||
} | } | ||
Latest revision as of 08:32, 2 January 2026
/* 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: var(--bg-1);
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 4px 20px var(--shadow-soft);
border: 1px solid var(--border);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.tokens-section .monster-info-card { width: 100%; justify-self: stretch; }
.tokens-section .monster-info-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) }
@media (max-width: 600px) { .tokens-section .monster-info-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) } }
.monster-info-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, var(--heading-gradient-start), var(--heading-gradient-end));
}
.monster-info-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 30px var(--shadow-medium);
}
.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: var(--heading);
}
.monster-level-badge {
background: var(--primary);
color: var(--text-strong);
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 var(--border);
}
.monster-stat-info:last-child {
border-bottom: none;
}
.monster-stat-label {
font-weight: 600;
color: var(--text-muted);
font-size: 0.9rem;
}
.monster-stat-value {
font-weight: 700;
color: var(--heading);
text-align: right;
}
.monster-rewards-section {
background: var(--bg-1);
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: var(--text-muted);
font-size: 0.9rem;
}
.monster-reward-value {
font-weight: 700;
color: var(--positive);
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;
}
}