styles.tsx 1.5 KB

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