157 lines
2.6 KiB
SCSS
157 lines
2.6 KiB
SCSS
:host {
|
|
--name-width: minmax(9rem, 16rem);
|
|
--value-width: 8.5rem;
|
|
display: block;
|
|
min-width: 0;
|
|
}
|
|
:host(.compact) {
|
|
overflow-x: auto;
|
|
.title {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
}
|
|
.state {
|
|
color: var(--color-text-secondary);
|
|
font-size: 13px;
|
|
margin: 8px 0;
|
|
}
|
|
table {
|
|
font-size: 13px;
|
|
}
|
|
thead th {
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
.title {
|
|
margin: 0 0 8px;
|
|
}
|
|
.headline {
|
|
font-weight: 500;
|
|
}
|
|
.heading {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin: 12px 0 4px;
|
|
}
|
|
mat-button-toggle-group {
|
|
flex-wrap: wrap;
|
|
margin: 4px 0;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
th,
|
|
td {
|
|
font-weight: 400;
|
|
padding: 4px 6px;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
thead th:first-child,
|
|
th[scope='row'] {
|
|
text-align: left;
|
|
white-space: normal;
|
|
width: 60%;
|
|
}
|
|
tr.sub th[scope='row'],
|
|
.row.sub .name {
|
|
padding-left: 1.25rem;
|
|
}
|
|
.hint {
|
|
color: var(--color-text-secondary);
|
|
display: block;
|
|
font-size: 12px;
|
|
}
|
|
.track {
|
|
background: rgba(0, 0, 0, 0.06);
|
|
display: flex;
|
|
height: 8px;
|
|
position: relative;
|
|
}
|
|
.bar {
|
|
background: #a8c243;
|
|
display: block;
|
|
flex: none;
|
|
height: 100%;
|
|
}
|
|
.mark {
|
|
background: #333;
|
|
height: 12px;
|
|
position: absolute;
|
|
top: -2px;
|
|
width: 2px;
|
|
}
|
|
.legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
font-size: 12px;
|
|
gap: 4px 16px;
|
|
i {
|
|
display: inline-block;
|
|
height: 10px;
|
|
margin-right: 6px;
|
|
width: 10px;
|
|
}
|
|
}
|
|
.axis,
|
|
.row {
|
|
column-gap: 8px;
|
|
display: grid;
|
|
grid-template-columns: var(--name-width) 1fr var(--value-width);
|
|
}
|
|
.axis {
|
|
font-size: 12px;
|
|
margin: 12px 0 2px;
|
|
}
|
|
.ticks {
|
|
height: 1.2em;
|
|
position: relative;
|
|
span {
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
}
|
|
span:first-child {
|
|
transform: none;
|
|
}
|
|
span:last-child {
|
|
transform: translateX(-100%);
|
|
}
|
|
}
|
|
.group {
|
|
margin: 6px 0 14px;
|
|
h4 {
|
|
font-size: 0.95rem;
|
|
margin: 0 0 4px;
|
|
}
|
|
.n {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.8em;
|
|
font-weight: 400;
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
.row {
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
min-height: 22px;
|
|
.track {
|
|
background:
|
|
linear-gradient(to right, #d8dde1 1px, transparent 1px) 25% 0 / 1px 100% no-repeat,
|
|
linear-gradient(to right, #d8dde1 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
|
|
linear-gradient(to right, #d8dde1 1px, transparent 1px) 75% 0 / 1px 100% no-repeat,
|
|
rgba(0, 0, 0, 0.06);
|
|
height: 10px;
|
|
}
|
|
.fill {
|
|
display: block;
|
|
height: 100%;
|
|
}
|
|
.value {
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
}
|