umami/components/RankingsChart.module.css

98 lines
1.4 KiB
CSS
Raw Normal View History

2020-08-01 04:05:14 +02:00
.container {
position: relative;
2020-08-01 06:56:25 +02:00
min-height: 430px;
2020-08-06 04:04:02 +02:00
font-size: var(--font-size-small);
2020-08-02 06:20:52 +02:00
padding: 20px 0;
2020-08-05 07:45:05 +02:00
display: flex;
flex-direction: column;
2020-08-01 05:37:29 +02:00
}
.header {
display: flex;
line-height: 40px;
}
.title {
flex: 1;
font-weight: 600;
2020-08-06 04:04:02 +02:00
font-size: var(--font-size-normal);
2020-08-01 05:37:29 +02:00
}
.heading {
2020-08-06 04:04:02 +02:00
font-size: var(--font-size-small);
2020-08-01 05:37:29 +02:00
text-align: center;
width: 100px;
2020-08-01 04:05:14 +02:00
}
.row {
position: relative;
height: 30px;
line-height: 30px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
2020-08-01 06:56:25 +02:00
overflow: hidden;
2020-08-01 04:05:14 +02:00
}
.label {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2020-08-01 05:37:29 +02:00
flex: 2;
2020-08-01 04:05:14 +02:00
}
2020-08-01 06:56:25 +02:00
.label:empty {
color: #b3b3b3;
}
.label:empty:before {
content: 'Unknown';
}
2020-08-01 04:05:14 +02:00
.value {
2020-08-01 05:37:29 +02:00
width: 50px;
2020-08-01 04:05:14 +02:00
text-align: right;
2020-08-01 05:37:29 +02:00
margin-right: 10px;
font-weight: 600;
}
.percent {
2020-08-04 03:12:28 +02:00
position: relative;
2020-08-01 05:37:29 +02:00
width: 50px;
color: #6e6e6e;
2020-08-06 04:04:02 +02:00
border-left: 1px solid var(--gray600);
2020-08-01 05:37:29 +02:00
padding-left: 10px;
2020-08-04 03:12:28 +02:00
z-index: 1;
2020-08-01 04:05:14 +02:00
}
.bar {
position: absolute;
2020-08-01 05:37:29 +02:00
top: 0;
left: 0;
2020-08-01 04:05:14 +02:00
height: 30px;
opacity: 0.1;
2020-08-06 04:04:02 +02:00
background: var(--primary400);
2020-08-01 06:56:25 +02:00
z-index: -1;
2020-08-01 04:05:14 +02:00
}
.body {
position: relative;
2020-08-05 07:45:05 +02:00
flex: 1;
}
.body:empty:before {
content: 'No data available';
2020-08-06 04:04:02 +02:00
color: var(--gray500);
2020-08-05 07:45:05 +02:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
2020-08-06 04:04:02 +02:00
@media only screen and (max-width: 992px) {
.container {
min-height: auto;
}
}