mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import {HeaderTitleLegend as _HeaderTitleLegend} from 'sentry/components/charts/styles';
|
|
import Panel from 'sentry/components/panels/panel';
|
|
import {space} from 'sentry/styles/space';
|
|
import {defined} from 'sentry/utils';
|
|
|
|
export const WidgetContainer = styled(Panel)<{height?: string}>`
|
|
${p => defined(p.height) && `height: ${p.height};`}
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-top: ${space(2)};
|
|
`;
|
|
|
|
export const HeaderContainer = styled('div')`
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-template-columns: 1fr auto;
|
|
grid-template-rows: 26px auto;
|
|
padding-left: ${space(2)};
|
|
padding-right: ${space(2)};
|
|
`;
|
|
|
|
export const HeaderTitleLegend = styled(_HeaderTitleLegend)`
|
|
position: relative;
|
|
`;
|
|
|
|
export const Subtitle = styled('div')`
|
|
color: ${p => p.theme.gray300};
|
|
font-size: ${p => p.theme.fontSizeMedium};
|
|
display: inline-block;
|
|
`;
|
|
|
|
export const ContentContainer = styled('div')`
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
`;
|
|
|
|
export const StatusContainer = styled('div')`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1 1 auto;
|
|
|
|
.loading {
|
|
margin: 0 auto;
|
|
}
|
|
`;
|
|
|
|
export const Accordion = styled('ul')`
|
|
padding: ${space(1)} 0 0 0;
|
|
margin: 0;
|
|
list-style-type: none;
|
|
flex: 1 1 auto;
|
|
`;
|
|
|
|
export const AccordionItem = styled('li')`
|
|
line-height: ${p => p.theme.text.lineHeightBody};
|
|
display: flex;
|
|
align-items: center;
|
|
gap: ${space(1)};
|
|
border-top: 1px solid ${p => p.theme.border};
|
|
padding: ${space(1)} ${space(2)};
|
|
font-size: ${p => p.theme.fontSizeMedium};
|
|
`;
|