styled.ts 685 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import styled from 'styled-components';
  2. const size: Record<string, string> = {
  3. textfield: `
  4. width: 150px;
  5. height: 50px;
  6. `,
  7. checkbox: `
  8. width: 50px;
  9. height: 50px;
  10. `,
  11. radio: `
  12. border-radius: 100%;
  13. width: 50px;
  14. height: 50px;
  15. `,
  16. };
  17. export const Zone = styled.div<{
  18. appearance: ToolType | FormType | '';
  19. }>`
  20. position: fixed;
  21. background-color: rgba(88, 106, 242, 0.4);
  22. width: 0;
  23. height: 0;
  24. border-radius: 8px;
  25. z-index: 99999;
  26. ${(props) => size[props.appearance]}
  27. p {
  28. font-size: 1rem;
  29. color: rgb(88, 106, 242);
  30. opacity: 0.6;
  31. margin: auto;
  32. margin-top: 50px;
  33. text-align: center;
  34. }
  35. `;
  36. export default Zone;