mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* properly mark borderRadius() as deprecated, replace borderRadius() with default * undo a couple of changes * use radius.pill in FilterPill
43 lines
816 B
TypeScript
43 lines
816 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.radius.default};
|
|
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;
|
|
`,
|
|
nameCell: css`
|
|
gap: ${theme.spacing(1)};
|
|
`,
|
|
actionsCell: css`
|
|
text-align: right;
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
|
|
& > * + * {
|
|
margin-left: ${theme.spacing(0.5)};
|
|
}
|
|
`,
|
|
});
|