First Version
This commit is contained in:
59
css/stats.css
Normal file
59
css/stats.css
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Stats Bar Styles
|
||||
*/
|
||||
|
||||
.stats-bar {
|
||||
background: var(--stats-bg);
|
||||
border-top: 1px solid var(--stats-border);
|
||||
border-bottom: 1px solid var(--stats-border);
|
||||
padding: 1.25rem 0;
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 0.75rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.15rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 900;
|
||||
color: var(--accent);
|
||||
letter-spacing: -0.5px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.stat {
|
||||
animation: statPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
.stat.animated {
|
||||
animation-play-state: running;
|
||||
}
|
||||
|
||||
.stat:nth-child(1) { animation-delay: 0s; }
|
||||
.stat:nth-child(2) { animation-delay: 0.1s; }
|
||||
.stat:nth-child(3) { animation-delay: 0.2s; }
|
||||
.stat:nth-child(4) { animation-delay: 0.3s; }
|
||||
|
||||
@keyframes statPop {
|
||||
from { opacity: 0; transform: translateY(12px) scale(0.9); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
Reference in New Issue
Block a user