mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 20:21:01 -06:00
10badea19e
* Babel: Updates babel dependencies to latest version * Emotion: Upgrade form 10 to 11 * Fixing tests * Updated to use emotion/css instead in test
84 lines
1.7 KiB
TypeScript
84 lines
1.7 KiB
TypeScript
import { css } from '@emotion/css';
|
|
import { config } from 'app/core/config';
|
|
import { stylesFactory } from '@grafana/ui';
|
|
|
|
export const getPanelInspectorStyles = stylesFactory(() => {
|
|
return {
|
|
wrap: css`
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
flex: 1 1 0;
|
|
`,
|
|
toolbar: css`
|
|
display: flex;
|
|
width: 100%;
|
|
flex-grow: 0;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
margin-bottom: ${config.theme.spacing.sm};
|
|
`,
|
|
toolbarItem: css`
|
|
margin-left: ${config.theme.spacing.md};
|
|
`,
|
|
content: css`
|
|
flex-grow: 1;
|
|
height: 100%;
|
|
padding-bottom: 16px;
|
|
`,
|
|
contentQueryInspector: css`
|
|
flex-grow: 1;
|
|
padding: ${config.theme.spacing.md} 0;
|
|
`,
|
|
editor: css`
|
|
font-family: monospace;
|
|
height: 100%;
|
|
flex-grow: 1;
|
|
`,
|
|
viewer: css`
|
|
overflow: scroll;
|
|
`,
|
|
dataFrameSelect: css`
|
|
flex-grow: 2;
|
|
`,
|
|
tabContent: css`
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`,
|
|
dataTabContent: css`
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
`,
|
|
actionsWrapper: css`
|
|
display: flex;
|
|
`,
|
|
leftActions: css`
|
|
display: flex;
|
|
flex-grow: 1;
|
|
|
|
max-width: 85%;
|
|
@media (max-width: 1345px) {
|
|
max-width: 75%;
|
|
}
|
|
`,
|
|
options: css`
|
|
padding-top: ${config.theme.spacing.sm};
|
|
`,
|
|
dataDisplayOptions: css`
|
|
flex-grow: 1;
|
|
min-width: 300px;
|
|
margin-right: ${config.theme.spacing.sm};
|
|
`,
|
|
selects: css`
|
|
display: flex;
|
|
> * {
|
|
margin-right: ${config.theme.spacing.sm};
|
|
}
|
|
`,
|
|
};
|
|
});
|