umami/components/metrics/MetricCard.module.css
2023-02-09 08:22:36 -08:00

46 lines
654 B
CSS

.card {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 90px;
min-width: 140px;
}
.value {
display: flex;
align-items: center;
font-size: 36px;
font-weight: 700;
white-space: nowrap;
min-height: 60px;
}
.label {
display: flex;
align-items: center;
gap: 5px;
white-space: nowrap;
min-height: 30px;
}
.change {
font-size: 12px;
padding: 0 5px;
border-radius: 5px;
margin-left: 4px;
border: 1px solid var(--base200);
color: var(--base500);
}
.change.positive {
color: var(--green500);
}
.change.negative {
color: var(--red500);
}
.change.plusSign::before {
content: '+';
}