Skip to content

Commit

Permalink
sunburst added
Browse files Browse the repository at this point in the history
  • Loading branch information
vitPinchuk committed Aug 13, 2024
1 parent 4d740b4 commit c7bb326
Show file tree
Hide file tree
Showing 16 changed files with 1,702 additions and 3 deletions.
65 changes: 65 additions & 0 deletions src/components/GraphEditors/SunburstEditor/SunburstEditor.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { css } from '@emotion/css';
import { GrafanaTheme2 } from '@grafana/data';

/**
* Styles
*/
export const getStyles = (theme: GrafanaTheme2) => {
return {
add: css`
margin-top: ${theme.spacing(2)};
margin-bottom: ${theme.spacing(2)};
`,
valueLevel: css`
margin-bottom: ${theme.spacing(2)};
`,
item: css`
margin-bottom: ${theme.spacing(1)};
`,
header: css`
padding: ${theme.spacing(0.5, 0.5)};
border-radius: ${theme.shape.radius?.default};
background: ${theme.colors.background.secondary};
min-height: ${theme.spacing(4)};
display: grid;
grid-template-columns: minmax(100px, max-content) min-content;
align-items: center;
justify-content: space-between;
white-space: nowrap;
&:focus {
outline: none;
}
`,
column: css`
display: flex;
align-items: center;
`,
titleWrapper: css`
display: flex;
align-items: center;
flex-grow: 1;
cursor: pointer;
overflow: hidden;
margin-right: ${theme.spacing(0.5)};
`,
dragHandle: css`
display: flex;
margin: ${theme.spacing(0, 0.5)};
`,
dragIcon: css`
cursor: grab;
color: ${theme.colors.text.disabled};
&:hover {
color: ${theme.colors.text};
}
`,
title: css`
font-weight: ${theme.typography.fontWeightBold};
color: ${theme.colors.text.secondary};
margin-left: ${theme.spacing(0.5)};
overflow: hidden;
text-overflow: ellipsis;
`,
};
};
Loading

0 comments on commit c7bb326

Please sign in to comment.