umami/components/RankingsChart.module.css

92 lines
1.2 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-01 05:37:29 +02:00
font-size: 14px;
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;
font-size: 16px;
}
.heading {
font-size: 14px;
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-01 06:56:25 +02:00
border-left: 1px solid #8e8e8e;
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;
background: #2680eb;
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';
color: #b3b3b3;
2020-08-05 07:45:05 +02:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}