-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d740b4
commit c7bb326
Showing
16 changed files
with
1,702 additions
and
3 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
src/components/GraphEditors/SunburstEditor/SunburstEditor.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
`, | ||
}; | ||
}; |
Oops, something went wrong.