@grafana/ui
Version:
Grafana Components Library
1 lines • 1.45 kB
Source Map (JSON)
{"version":3,"file":"alerting.mjs","sources":["../../../../src/themes/GlobalStyles/alerting.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nimport { GrafanaTheme2 } from '@grafana/data';\n\nexport function getAlertingStyles(theme: GrafanaTheme2) {\n return css({\n '.alert-state-paused, .alert-state-pending': {\n color: theme.colors.text.secondary,\n fontWeight: theme.typography.fontWeightMedium,\n },\n\n '.alert-state-ok': {\n color: theme.colors.success.text,\n fontWeight: theme.typography.fontWeightMedium,\n },\n\n '.alert-state-warning': {\n color: theme.colors.warning.text,\n fontWeight: theme.typography.fontWeightMedium,\n },\n\n '.alert-state-critical': {\n color: theme.colors.error.text,\n fontWeight: theme.typography.fontWeightMedium,\n },\n });\n}\n"],"names":[],"mappings":";;AAIO,SAAS,kBAAkB,KAAsB,EAAA;AACtD,EAAA,OAAO,GAAI,CAAA;AAAA,IACT,2CAA6C,EAAA;AAAA,MAC3C,KAAA,EAAO,KAAM,CAAA,MAAA,CAAO,IAAK,CAAA,SAAA;AAAA,MACzB,UAAA,EAAY,MAAM,UAAW,CAAA;AAAA,KAC/B;AAAA,IAEA,iBAAmB,EAAA;AAAA,MACjB,KAAA,EAAO,KAAM,CAAA,MAAA,CAAO,OAAQ,CAAA,IAAA;AAAA,MAC5B,UAAA,EAAY,MAAM,UAAW,CAAA;AAAA,KAC/B;AAAA,IAEA,sBAAwB,EAAA;AAAA,MACtB,KAAA,EAAO,KAAM,CAAA,MAAA,CAAO,OAAQ,CAAA,IAAA;AAAA,MAC5B,UAAA,EAAY,MAAM,UAAW,CAAA;AAAA,KAC/B;AAAA,IAEA,uBAAyB,EAAA;AAAA,MACvB,KAAA,EAAO,KAAM,CAAA,MAAA,CAAO,KAAM,CAAA,IAAA;AAAA,MAC1B,UAAA,EAAY,MAAM,UAAW,CAAA;AAAA;AAC/B,GACD,CAAA;AACH;;;;"}