styles.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import styled from '@emotion/styled';
  2. import {HeaderTitleLegend as _HeaderTitleLegend} from 'sentry/components/charts/styles';
  3. import Panel from 'sentry/components/panels/panel';
  4. import {space} from 'sentry/styles/space';
  5. import {defined} from 'sentry/utils';
  6. export const WidgetContainer = styled(Panel)<{height?: string}>`
  7. ${p => defined(p.height) && `height: ${p.height};`}
  8. display: flex;
  9. flex-direction: column;
  10. padding-top: ${space(2)};
  11. `;
  12. export const HeaderContainer = styled('div')`
  13. display: grid;
  14. grid-auto-flow: column;
  15. grid-template-columns: 1fr auto;
  16. grid-template-rows: 26px auto;
  17. padding-left: ${space(2)};
  18. padding-right: ${space(2)};
  19. `;
  20. export const HeaderTitleLegend = styled(_HeaderTitleLegend)`
  21. position: relative;
  22. `;
  23. export const Subtitle = styled('div')`
  24. color: ${p => p.theme.gray300};
  25. font-size: ${p => p.theme.fontSizeMedium};
  26. display: inline-block;
  27. `;
  28. export const ContentContainer = styled('div')`
  29. flex: 1 1 auto;
  30. display: flex;
  31. flex-direction: column;
  32. justify-content: center;
  33. `;
  34. export const StatusContainer = styled('div')`
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. flex: 1 1 auto;
  39. .loading {
  40. margin: 0 auto;
  41. }
  42. `;
  43. export const Accordion = styled('ul')`
  44. padding: ${space(1)} 0 0 0;
  45. margin: 0;
  46. list-style-type: none;
  47. flex: 1 1 auto;
  48. `;
  49. export const AccordionItem = styled('li')`
  50. line-height: ${p => p.theme.text.lineHeightBody};
  51. display: flex;
  52. align-items: center;
  53. gap: ${space(1)};
  54. border-top: 1px solid ${p => p.theme.border};
  55. padding: ${space(1)} ${space(2)};
  56. font-size: ${p => p.theme.fontSizeMedium};
  57. `;