mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
import { css } from '@emotion/css';
|
|
|
|
import { GrafanaTheme2 } from '@grafana/data';
|
|
import { styleMixins } from '@grafana/ui';
|
|
|
|
export const getStyles = (theme: GrafanaTheme2) => ({
|
|
dashlistSectionHeader: css`
|
|
margin-bottom: ${theme.spacing(2)};
|
|
color: ${theme.colors.secondary.text};
|
|
`,
|
|
|
|
dashlistSection: css`
|
|
margin-bottom: ${theme.spacing(2)};
|
|
padding-top: 3px;
|
|
`,
|
|
|
|
dashlistLink: css`
|
|
${styleMixins.listItem(theme)}
|
|
display: flex;
|
|
cursor: pointer;
|
|
margin: 3px;
|
|
padding: 7px;
|
|
`,
|
|
|
|
dashlistStar: css`
|
|
align-self: center;
|
|
margin-right: 0px;
|
|
color: ${theme.colors.secondary.text};
|
|
z-index: 1;
|
|
`,
|
|
|
|
dashlistFolder: css`
|
|
color: ${theme.colors.secondary.text};
|
|
font-size: ${theme.typography.bodySmall.fontSize};
|
|
line-height: ${theme.typography.body.lineHeight};
|
|
`,
|
|
|
|
dashlistTitle: css`
|
|
&::after {
|
|
position: absolute;
|
|
content: '';
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
`,
|
|
|
|
dashlistLinkBody: css`
|
|
flex-grow: 1;
|
|
`,
|
|
|
|
dashlistItem: css`
|
|
position: relative;
|
|
list-style: none;
|
|
`,
|
|
});
|