/
styles.ts
68 lines (54 loc) · 1.17 KB
/
styles.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { css } from '@emotion/css';
import { GrafanaTheme2 } from '@grafana/data';
const getStyles = (theme: GrafanaTheme2) => ({
table: css({
width: '100%',
tableLayout: 'fixed',
}),
tableScroller: css({
maxHeight: '50vh',
overflow: 'auto',
}),
header: css({
background: theme.colors.background.secondary,
}),
row: css({
borderBottom: `1px solid ${theme.colors.border.weak}`,
'&:last-of-type': {
borderBottomColor: theme.colors.border.medium,
},
}),
disabledRow: css({
opacity: 0.5,
}),
cell: css({
padding: theme.spacing(1, 1, 1, 0),
width: '25%',
overflow: 'hidden',
textOverflow: 'ellipsis',
'&:first-of-type': {
width: '50%',
padding: theme.spacing(1, 1, 1, 2),
},
}),
collapseButton: css({ margin: 0 }),
loadingCell: css({
textAlign: 'center',
}),
spinner: css({
marginBottom: 0,
}),
nestedEntry: css({
display: 'flex',
}),
entryContentItem: css({
margin: theme.spacing(0, 1, 0, 0),
}),
truncated: css({
minWidth: 0,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}),
});
export default getStyles;