styles.tsx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import styled from '@emotion/styled';
  2. import {Button} from 'sentry/components/button';
  3. import {space} from 'sentry/styles/space';
  4. export const ToolbarSection = styled('div')`
  5. margin-bottom: ${space(2)};
  6. `;
  7. export const ToolbarHeader = styled('div')`
  8. display: flex;
  9. flex-direction: row;
  10. justify-content: space-between;
  11. align-items: baseline;
  12. margin-bottom: ${space(0.5)};
  13. `;
  14. export const ToolbarLabel = styled('h6')<{disabled?: boolean}>`
  15. color: ${p => (p.disabled ? p.theme.gray300 : p.theme.gray500)};
  16. height: ${p => p.theme.form.md.height};
  17. min-height: ${p => p.theme.form.md.minHeight};
  18. font-size: ${p => p.theme.form.md.fontSize};
  19. text-decoration: underline dotted
  20. ${p => (p.disabled ? p.theme.gray300 : p.theme.gray300)};
  21. margin: 0;
  22. `;
  23. export const ToolbarHeaderButton = styled(Button)<{disabled?: boolean}>`
  24. color: ${p => (p.disabled ? p.theme.gray300 : p.theme.gray500)};
  25. `;
  26. export const ToolbarFooterButton = styled(Button)<{disabled?: boolean}>`
  27. color: ${p => (p.disabled ? p.theme.gray300 : p.theme.linkColor)};
  28. `;
  29. export const ToolbarFooter = styled('div')<{disabled?: boolean}>`
  30. margin: ${space(0.5)} 0;
  31. `;
  32. export const ToolbarRow = styled('div')`
  33. display: flex;
  34. flex-direction: row;
  35. gap: ${space(0.5)};
  36. margin-bottom: ${space(0.5)};
  37. div,
  38. label,
  39. span {
  40. flex-grow: 1;
  41. &:first-child {
  42. min-width: 0;
  43. }
  44. > button {
  45. width: 100%;
  46. font-weight: normal;
  47. }
  48. }
  49. `;