MediaWiki:StatsCard.css: Difference between revisions
Jump to navigation
Jump to search
Created page with " →Quick Stats Grid: .quick-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 25px 0; } .stat-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); transition: transform 0.3s ease, box-shadow 0.3s ease; } .st..." |
No edit summary |
||
| Line 37: | Line 37: | ||
color: transparent; | color: transparent; | ||
} | } | ||
html[data-theme="dark"] .stat-card { background: #141c2a; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) } | |||
html[data-theme="dark"] .stat-card:hover { box-shadow: 0 12px 36px rgba(123,187,255,.25) } | |||
html[data-theme="dark"] .stat-card h3 { color: #9fd0ff } | |||
html[data-theme="dark"] .stat-card p { background: linear-gradient(135deg, #274c77, #1b2b41); -webkit-background-clip: text; background-clip: text; color: transparent } | |||
/* ======================================== | /* ======================================== | ||
Revision as of 11:40, 3 December 2025
/* Quick Stats Grid */
.quick-stats {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
margin: 25px 0;
}
.stat-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
border-radius: 10px;
padding: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.stat-card h3 {
margin: 0 0 10px 0;
font-size: 1.2rem;
color: #ff6b9d;
}
.stat-card p {
font-size: 2rem;
font-weight: bold;
margin: 0;
background: linear-gradient(135deg, #ff6b9d, #d63384);
color: transparent;
}
html[data-theme="dark"] .stat-card { background: #141c2a; border: 1px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) }
html[data-theme="dark"] .stat-card:hover { box-shadow: 0 12px 36px rgba(123,187,255,.25) }
html[data-theme="dark"] .stat-card h3 { color: #9fd0ff }
html[data-theme="dark"] .stat-card p { background: linear-gradient(135deg, #274c77, #1b2b41); -webkit-background-clip: text; background-clip: text; color: transparent }
/* ========================================
RESPONSIVE DESIGN
======================================== */
/* Desktop médio: 992px - 1199px */
@media (max-width: 1199px) {
.quick-stats {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 18px;
margin: 18px 0;
}
.stat-item {
padding: 18px;
border-radius: 11px;
}
.stat-value {
font-size: 1.8rem;
margin-bottom: 9px;
}
.stat-label {
font-size: 0.95em;
}
}
/* Desktop pequeno: 768px - 991px */
@media (max-width: 991px) {
.quick-stats {
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 16px;
margin: 16px 0;
}
.stat-item {
padding: 16px;
border-radius: 10px;
}
.stat-item:hover {
transform: translateY(-1px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.stat-value {
font-size: 1.6rem;
margin-bottom: 8px;
}
.stat-label {
font-size: 0.9em;
}
}
/* Tablet: 576px - 767px */
@media (max-width: 767px) {
.quick-stats {
grid-template-columns: repeat(2, 1fr);
gap: 14px;
margin: 14px 0;
}
.stat-item {
padding: 14px;
border-radius: 8px;
}
.stat-item:hover {
transform: translateY(-1px);
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.stat-value {
font-size: 1.4rem;
margin-bottom: 7px;
}
.stat-label {
font-size: 0.85em;
}
}
/* Mobile: até 575px */
@media (max-width: 575px) {
.quick-stats {
grid-template-columns: 1fr;
gap: 12px;
margin: 12px 0;
}
.stat-item {
padding: 12px;
border-radius: 6px;
}
.stat-item:hover {
transform: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.stat-value {
font-size: 1.2rem;
margin-bottom: 6px;
}
.stat-label {
font-size: 0.8em;
}
}