MediaWiki:MonsterCard.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
overflow: hidden; | 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 { | .monster-info-card::before { | ||
| Line 361: | Line 365: | ||
} | } | ||
.monster-reward-value { | .monster-reward-value { | ||
font-size: 0.85rem; | |||
text-align: left; | |||
} | |||
} | } | ||
html[data-theme="dark"] .monster-info-card, | |||
body[data-theme="dark"] .monster-info-card, | |||
body.theme-dark .monster-info-card { background: #141c2a !important; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) } | |||
html[data-theme="dark"] .monster-info-card:hover, | |||
body[data-theme="dark"] .monster-info-card:hover, | |||
body.theme-dark .monster-info-card:hover { box-shadow: 0 12px 36px rgba(123,187,255,.25) } | |||
html[data-theme="dark"] .monster-info-card::before, | |||
body[data-theme="dark"] .monster-info-card::before, | |||
body.theme-dark .monster-info-card::before { background: linear-gradient(135deg, #274c77, #1b2b41) } | |||
html[data-theme="dark"] .monster-card-header h4, | |||
body[data-theme="dark"] .monster-card-header h4, | |||
body.theme-dark .monster-card-header h4 { color: #cfe6ff } | |||
html[data-theme="dark"] .monster-level-badge, | |||
body[data-theme="dark"] .monster-level-badge, | |||
body.theme-dark .monster-level-badge { background: linear-gradient(135deg, #274c77, #1b2b41); color: #ffffff } | |||
html[data-theme="dark"] .monster-stat-info, | |||
body[data-theme="dark"] .monster-stat-info, | |||
body.theme-dark .monster-stat-info { border-bottom-color: rgba(159,208,255,.18) } | |||
html[data-theme="dark"] .monster-stat-label, | |||
body[data-theme="dark"] .monster-stat-label, | |||
body.theme-dark .monster-stat-label { color: #a8c6e8 } | |||
html[data-theme="dark"] .monster-stat-value, | |||
body[data-theme="dark"] .monster-stat-value, | |||
body.theme-dark .monster-stat-value { color: #cfe6ff } | |||
html[data-theme="dark"] .monster-rewards-section, | |||
body[data-theme="dark"] .monster-rewards-section, | |||
body.theme-dark .monster-rewards-section { background: #121a29 !important; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 4px 12px rgba(123,187,255,.18) } | |||
html[data-theme="dark"] .monster-reward-label, | |||
body[data-theme="dark"] .monster-reward-label, | |||
body.theme-dark .monster-reward-label { color: #a8c6e8 } | |||
html[data-theme="dark"] .monster-reward-value, | |||
body[data-theme="dark"] .monster-reward-value, | |||
body.theme-dark .monster-reward-value { color: #7bbbff } | |||
Revision as of 22:59, 5 December 2025
/* 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;
}
.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, #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;
}
}
html[data-theme="dark"] .monster-info-card,
body[data-theme="dark"] .monster-info-card,
body.theme-dark .monster-info-card { background: #141c2a !important; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) }
html[data-theme="dark"] .monster-info-card:hover,
body[data-theme="dark"] .monster-info-card:hover,
body.theme-dark .monster-info-card:hover { box-shadow: 0 12px 36px rgba(123,187,255,.25) }
html[data-theme="dark"] .monster-info-card::before,
body[data-theme="dark"] .monster-info-card::before,
body.theme-dark .monster-info-card::before { background: linear-gradient(135deg, #274c77, #1b2b41) }
html[data-theme="dark"] .monster-card-header h4,
body[data-theme="dark"] .monster-card-header h4,
body.theme-dark .monster-card-header h4 { color: #cfe6ff }
html[data-theme="dark"] .monster-level-badge,
body[data-theme="dark"] .monster-level-badge,
body.theme-dark .monster-level-badge { background: linear-gradient(135deg, #274c77, #1b2b41); color: #ffffff }
html[data-theme="dark"] .monster-stat-info,
body[data-theme="dark"] .monster-stat-info,
body.theme-dark .monster-stat-info { border-bottom-color: rgba(159,208,255,.18) }
html[data-theme="dark"] .monster-stat-label,
body[data-theme="dark"] .monster-stat-label,
body.theme-dark .monster-stat-label { color: #a8c6e8 }
html[data-theme="dark"] .monster-stat-value,
body[data-theme="dark"] .monster-stat-value,
body.theme-dark .monster-stat-value { color: #cfe6ff }
html[data-theme="dark"] .monster-rewards-section,
body[data-theme="dark"] .monster-rewards-section,
body.theme-dark .monster-rewards-section { background: #121a29 !important; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 4px 12px rgba(123,187,255,.18) }
html[data-theme="dark"] .monster-reward-label,
body[data-theme="dark"] .monster-reward-label,
body.theme-dark .monster-reward-label { color: #a8c6e8 }
html[data-theme="dark"] .monster-reward-value,
body[data-theme="dark"] .monster-reward-value,
body.theme-dark .monster-reward-value { color: #7bbbff }