styles.tsx 1.5 KB

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