StyledComponents.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { styled } from '@mui/material/styles';
  2. import { Box } from '@mui/material';
  3. export const Root = styled(Box)(({ theme }) => ({
  4. display: 'flex',
  5. flexDirection: 'column',
  6. height: 'calc(100% - 16px)',
  7. }));
  8. export const Toolbar = styled(Box)(({ theme }) => ({
  9. display: 'flex',
  10. justifyContent: 'space-between',
  11. alignItems: 'center',
  12. backgroundColor: theme.palette.background.paper,
  13. padding: theme.spacing(0, 0, 1),
  14. gap: theme.spacing(1),
  15. '& .left': {
  16. display: 'flex',
  17. justifyContent: 'space-between',
  18. alignItems: 'center',
  19. gap: theme.spacing(1),
  20. flex: 1,
  21. '& .textarea': {
  22. width: '100%',
  23. '& .MuiFormHelperText-root': {
  24. display: 'none',
  25. },
  26. },
  27. },
  28. '& .right': {
  29. display: 'flex',
  30. justifyContent: 'space-between',
  31. alignItems: 'center',
  32. gap: theme.spacing(1),
  33. },
  34. '& .selector': {
  35. width: 160,
  36. },
  37. '& .outputs': {
  38. height: 56,
  39. width: 140,
  40. },
  41. '& .btn': {
  42. height: 56,
  43. width: 80,
  44. },
  45. }));
  46. export const Selector = styled(Box)({
  47. width: 160,
  48. });
  49. export const Outputs = styled(Box)({
  50. height: 56,
  51. width: 140,
  52. });
  53. export const Button = styled(Box)({
  54. height: 56,
  55. width: 80,
  56. });