wrapper.styles.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { rem } from 'polished';
  2. import { CSSProperties } from 'react';
  3. import styled from 'styled-components';
  4. import { FlexColumn, FlexRow } from './styled/layout';
  5. import { colors } from './styled/variables';
  6. export const Wrapper = styled(FlexColumn)`
  7. background: ${colors.background};
  8. bottom: 0;
  9. color: ${colors.foreground};
  10. font-size: ${rem(14)};
  11. font-family: Hack, monospace;
  12. left: 0;
  13. line-height: ${rem(16)};
  14. position: absolute;
  15. right: 0;
  16. top: 0;
  17. user-select: none;
  18. `;
  19. export const ViewTitle = styled(FlexRow)`
  20. background: ${colors.title.background};
  21. color: ${colors.background};
  22. font-weight: bold;
  23. `;
  24. export const ViewTitleItem = styled.span<{ active: boolean }>`
  25. font-weight: ${({ active }): CSSProperties['fontWeight'] => (active ? 'bold' : 'normal')};
  26. margin: 0 ${rem(16)} 0 ${rem(8)};
  27. `;
  28. export const View = styled(FlexRow)`
  29. flex: 1;
  30. overflow: hidden;
  31. width: 100%;
  32. z-index: 10;
  33. `;
  34. export const Overlay = styled.div`
  35. left: 50%;
  36. position: absolute;
  37. top: 50%;
  38. transform: translateX(-50%) translateY(-50%);
  39. z-index: 20;
  40. `;