112 lines
1.7 KiB
CSS
112 lines
1.7 KiB
CSS
.layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
|
|
gap: var(--mantine-spacing-xl);
|
|
align-items: center;
|
|
}
|
|
|
|
.chart {
|
|
position: relative;
|
|
justify-self: center;
|
|
}
|
|
|
|
.pattern {
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.center {
|
|
position: absolute;
|
|
inset: 32%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
font-size: clamp(12px, 1.3vw, 17px);
|
|
overflow-wrap: anywhere;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.srOnly {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--mantine-spacing-sm);
|
|
min-height: 58px;
|
|
border-bottom: 1px solid var(--mantine-color-gray-2);
|
|
}
|
|
|
|
.rank {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
flex: none;
|
|
border-radius: 50%;
|
|
color: white;
|
|
}
|
|
|
|
.identity {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.bar,
|
|
.bar span {
|
|
display: block;
|
|
height: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.bar {
|
|
background: var(--mantine-color-gray-2);
|
|
}
|
|
|
|
.value {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.other {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--mantine-spacing-sm);
|
|
width: 100%;
|
|
min-height: 44px;
|
|
align-items: center;
|
|
border: 0;
|
|
background: var(--mantine-color-gray-0);
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.other:focus-visible {
|
|
outline: 2px solid var(--mantine-color-blue-6);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.layout { grid-template-columns: 1fr; }
|
|
.slices { max-width: 100%; overflow-x: auto; }
|
|
.other { flex-wrap: wrap; }
|
|
}
|