Clean up uPlot CSS rules a bit

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-07-23 21:22:23 +02:00
parent 90cf8b3082
commit a2a177a04c

View file

@ -13,24 +13,12 @@
font-weight: 500; font-weight: 500;
font-size: var(--mantine-font-size-xs); font-size: var(--mantine-font-size-xs);
} }
}
.u-inline tr { tr {
display: block; display: block;
/* display: table;
* {
display: table-cell;
} */
} }
} }
.uplot {
display: inline-block;
vertical-align: top;
width: min-content;
}
.u-under { .u-under {
background-color: light-dark(unset, #1f1f1f); background-color: light-dark(unset, #1f1f1f);
} }
@ -42,8 +30,7 @@
.u-legend { .u-legend {
text-align: left; text-align: left;
margin-top: 20px; margin: 20px 25px;
padding-left: 20px;
} }
.u-inline tr { .u-inline tr {
@ -54,6 +41,21 @@
font-size: 12px; font-size: 12px;
} }
.u-select {
background: rgba(255, 200, 150, 0.2);
}
.u-hz .u-cursor-x,
.u-vt .u-cursor-y {
border-right: 1px dashed light-dark(#607d8b, #90adbc);
}
.u-hz .u-cursor-y,
.u-vt .u-cursor-x {
border-bottom: 1px dashed light-dark(#607d8b, #90adbc);
}
}
.u-tooltip { .u-tooltip {
font-size: 0.8em; font-size: 0.8em;
white-space: nowrap; white-space: nowrap;
@ -101,17 +103,3 @@
height: 10px; height: 10px;
} }
} }
.u-select {
background: rgba(255, 200, 150, 0.2);
}
.u-hz .u-cursor-x,
.u-vt .u-cursor-y {
border-right: 1px dashed light-dark(#607d8b, #90adbc);
}
.u-hz .u-cursor-y,
.u-vt .u-cursor-x {
border-bottom: 1px dashed light-dark(#607d8b, #90adbc);
}