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,45 +13,47 @@
font-weight: 500; font-weight: 500;
font-size: var(--mantine-font-size-xs); font-size: var(--mantine-font-size-xs);
} }
tr {
display: block;
}
}
.u-under {
background-color: light-dark(unset, #1f1f1f);
}
.u-over {
box-shadow: 0px 0px 0px 0.5px #ccc;
cursor: crosshair;
}
.u-legend {
text-align: left;
margin: 20px 25px;
} }
.u-inline tr { .u-inline tr {
display: block; margin-right: 8px;
/* display: table;
* {
display: table-cell;
} */
} }
}
.uplot { .u-label {
display: inline-block; font-size: 12px;
vertical-align: top; }
width: min-content;
}
.u-under { .u-select {
background-color: light-dark(unset, #1f1f1f); background: rgba(255, 200, 150, 0.2);
} }
.u-over { .u-hz .u-cursor-x,
box-shadow: 0px 0px 0px 0.5px #ccc; .u-vt .u-cursor-y {
cursor: crosshair; border-right: 1px dashed light-dark(#607d8b, #90adbc);
} }
.u-legend { .u-hz .u-cursor-y,
text-align: left; .u-vt .u-cursor-x {
margin-top: 20px; border-bottom: 1px dashed light-dark(#607d8b, #90adbc);
padding-left: 20px; }
}
.u-inline tr {
margin-right: 8px;
}
.u-label {
font-size: 12px;
} }
.u-tooltip { .u-tooltip {
@ -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);
}