umami/src/components/metrics/MetricCard.module.css

47 lines
679 B
CSS
Raw Normal View History

.card {
display: flex;
flex-direction: column;
justify-content: center;
2023-02-09 17:22:36 +01:00
min-height: 90px;
2020-09-14 05:09:18 +02:00
min-width: 140px;
}
.value {
2023-02-09 17:22:36 +01:00
display: flex;
align-items: center;
2023-02-09 08:14:11 +01:00
font-size: 36px;
font-weight: 700;
2020-08-12 09:23:03 +02:00
white-space: nowrap;
2023-02-09 17:22:36 +01:00
min-height: 60px;
}
.label {
display: flex;
align-items: center;
font-weight: 700;
2023-03-10 00:18:54 +01:00
gap: 10px;
2023-02-09 17:22:36 +01:00
white-space: nowrap;
min-height: 30px;
}
.change {
font-size: 12px;
padding: 0 5px;
border-radius: 5px;
color: var(--base500);
}
.change.positive {
2023-03-10 00:18:54 +01:00
color: var(--green700);
background: var(--green100);
}
.change.negative {
2023-03-10 00:18:54 +01:00
color: var(--red700);
background: var(--red100);
}
.change.plusSign::before {
content: '+';
}