mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 07:02:28 +08:00

* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier all the files * Manually fix remaining files * Move jquery code in jest-setup to external file to safely reorder imports * Resolve issue caused by circular dependencies within Prometheus * Update .betterer.results * Fix missing // @ts-ignore * ignore iconBundle.ts * Fix missing // @ts-ignore
40 lines
764 B
TypeScript
40 lines
764 B
TypeScript
import { css } from '@emotion/css';
|
|
|
|
import { GrafanaTheme2 } from '@grafana/data';
|
|
|
|
export const getAlertTableStyles = (theme: GrafanaTheme2) => ({
|
|
table: css`
|
|
width: 100%;
|
|
border-radius: ${theme.shape.borderRadius()};
|
|
border: solid 1px ${theme.colors.border.weak};
|
|
background-color: ${theme.colors.background.secondary};
|
|
|
|
th {
|
|
padding: ${theme.spacing(1)};
|
|
}
|
|
|
|
td {
|
|
padding: 0 ${theme.spacing(1)};
|
|
}
|
|
|
|
tr {
|
|
height: 38px;
|
|
}
|
|
`,
|
|
evenRow: css`
|
|
background-color: ${theme.colors.background.primary};
|
|
`,
|
|
colExpand: css`
|
|
width: 36px;
|
|
`,
|
|
actionsCell: css`
|
|
text-align: right;
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
|
|
& > * + * {
|
|
margin-left: ${theme.spacing(0.5)};
|
|
}
|
|
`,
|
|
});
|