UNPKG

@grafana/ui

Version:
1 lines 1.11 kB
{"version":3,"file":"uPlot.mjs","sources":["../../../../src/themes/GlobalStyles/uPlot.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\n\nexport function getUplotStyles(theme: GrafanaTheme2) {\n return css({\n '.uplot': {\n fontFamily: 'inherit',\n },\n\n '.u-select': {\n background: 'rgba(120, 120, 130, 0.2)',\n },\n\n '.u-hz .u-cursor-x, .u-vt .u-cursor-y': {\n borderRight: '1px dashed rgba(120, 120, 130, 0.5)',\n },\n\n '.u-hz .u-cursor-y, .u-vt .u-cursor-x': {\n borderBottom: '1px dashed rgba(120, 120, 130, 0.5)',\n },\n\n '.shared-crosshair:not(.plot-active) .u-cursor-pt': {\n display: 'none !important',\n },\n });\n}\n"],"names":[],"mappings":";;;AAIO,SAAS,eAAe,KAAA,EAAsB;AACnD,EAAA,OAAO,GAAA,CAAI;AAAA,IACT,QAAA,EAAU;AAAA,MACR,UAAA,EAAY;AAAA,KACd;AAAA,IAEA,WAAA,EAAa;AAAA,MACX,UAAA,EAAY;AAAA,KACd;AAAA,IAEA,sCAAA,EAAwC;AAAA,MACtC,WAAA,EAAa;AAAA,KACf;AAAA,IAEA,sCAAA,EAAwC;AAAA,MACtC,YAAA,EAAc;AAAA,KAChB;AAAA,IAEA,kDAAA,EAAoD;AAAA,MAClD,OAAA,EAAS;AAAA;AACX,GACD,CAAA;AACH;;;;"}