styles.tsx 838 B

12345678910111213141516171819202122232425262728
  1. import styled from '@emotion/styled';
  2. import {space} from 'sentry/styles/space';
  3. import {defined} from 'sentry/utils';
  4. export const Section = styled('div')`
  5. margin-bottom: ${space(2)};
  6. `;
  7. export const SectionHeader = 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 SectionLabel = styled('h6')<{disabled?: boolean; underlined?: 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. margin: 0;
  20. ${p =>
  21. !defined(p.underlined) || p.underlined
  22. ? `text-decoration: underline dotted ${p.disabled ? p.theme.gray300 : p.theme.gray300}`
  23. : ''};
  24. `;