forge/arma/ui/apps/portal/components/metricCard.css
2026-03-07 13:20:43 -06:00

70 lines
1.5 KiB
CSS

.org-metric-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.org-metric-card {
display: flex;
flex-direction: column;
gap: 0.45rem;
padding: 1rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
&:nth-child(4n + 2),
&:nth-child(4n + 3) {
background: linear-gradient(
180deg,
rgb(248 250 252) 0%,
rgb(226 232 240) 100%
);
border-color: rgb(100 116 139 / 0.35);
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}
}
.org-metric-label {
font-size: 0.76rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
}
.org-metric-value {
font-size: 1.8rem;
color: var(--primary-hover);
line-height: 1.1;
.org-metric-card:nth-child(4n + 2) &,
.org-metric-card:nth-child(4n + 3) & {
color: #334155;
}
}
.org-metric-note {
color: var(--text-muted);
font-size: 0.9rem;
}
@media (max-width: 960px) {
.org-metric-grid {
grid-template-columns: 1fr;
}
.org-metric-card {
&:nth-child(4n + 3) {
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
border-color: var(--border);
box-shadow: none;
}
}
.org-metric-value {
.org-metric-card:nth-child(4n + 3) & {
color: var(--primary-hover);
}
}
}