styles.tsx 580 B

12345678910111213141516171819
  1. import styled from '@emotion/styled';
  2. import {ROW_HEIGHT} from 'sentry/components/performance/waterfall/constants';
  3. export const MeasurementMarker = styled('div')<{failedThreshold: boolean}>`
  4. position: absolute;
  5. top: 0;
  6. height: ${ROW_HEIGHT}px;
  7. user-select: none;
  8. width: 1px;
  9. background: repeating-linear-gradient(
  10. to bottom,
  11. transparent 0 4px,
  12. ${p => (p.failedThreshold ? p.theme.red300 : p.theme.textColor)} 4px 8px
  13. )
  14. 80%/2px 100% no-repeat;
  15. z-index: ${p => p.theme.zIndex.traceView.dividerLine};
  16. color: ${p => p.theme.textColor};
  17. `;