styles.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. export const ToolbarRow = styled('div')`
  34. display: flex;
  35. flex-direction: row;
  36. justify-content: space-between;
  37. gap: ${space(0.5)};
  38. :not(:last-child) {
  39. margin-bottom: ${space(0.5)};
  40. }
  41. `;