styles.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import styled from '@emotion/styled';
  2. import {Button} from 'sentry/components/core/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. font-size: ${p => p.theme.form.md.fontSize};
  18. margin: 0;
  19. ${p =>
  20. !defined(p.underlined) || p.underlined
  21. ? `text-decoration: underline dotted ${p.disabled ? p.theme.gray300 : p.theme.gray300}`
  22. : ''};
  23. `;
  24. export const ToolbarHeaderButton = styled(Button)<{disabled?: boolean}>`
  25. color: ${p => (p.disabled ? p.theme.gray300 : p.theme.gray500)};
  26. `;
  27. export const ToolbarFooterButton = styled(Button)<{disabled?: boolean}>`
  28. color: ${p => (p.disabled ? p.theme.gray300 : p.theme.linkColor)};
  29. `;
  30. export const ToolbarFooter = styled('div')<{disabled?: boolean}>`
  31. :not(:last-child) {
  32. margin-bottom: ${space(0.5)};
  33. }
  34. `;
  35. export const ToolbarRow = styled('div')`
  36. display: flex;
  37. flex-direction: row;
  38. justify-content: space-between;
  39. gap: ${space(0.5)};
  40. :not(:last-child) {
  41. margin-bottom: ${space(0.5)};
  42. }
  43. `;