Styles.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { makeStyles, Theme } from '@material-ui/core';
  2. export const getQueryStyles = makeStyles((theme: Theme) => ({
  3. root: {
  4. display: 'flex',
  5. flexDirection: 'column',
  6. height: '100%',
  7. },
  8. emptyCard: {
  9. height: '100%',
  10. borderRadius: theme.spacing(0, 0, 0.5, 0.5),
  11. boxShadow: 'none',
  12. },
  13. toolbar: {
  14. display: 'flex',
  15. justifyContent: 'space-between',
  16. alignItems: 'center',
  17. backgroundColor: 'white',
  18. padding: theme.spacing(1, 2),
  19. gap: theme.spacing(2),
  20. borderRadius: theme.spacing(0.5, 0.5, 0, 0),
  21. '& .left': {
  22. display: 'flex',
  23. justifyContent: 'space-between',
  24. alignItems: 'center',
  25. flex: 1,
  26. padding: theme.spacing(0, 0, 0, 2),
  27. fontSize: theme.spacing(2),
  28. backgroundColor: '#F9F9F9',
  29. '& .expression': {
  30. display: 'flex',
  31. justifyContent: 'space-between',
  32. flex: 1,
  33. alignItems: 'center',
  34. padding: theme.spacing(0, 1.5),
  35. backgroundColor: '#F9F9F9',
  36. },
  37. '& .textarea': {
  38. width: '100%',
  39. '& .MuiInput-underline:before': {
  40. borderWidth: 1,
  41. borderColor: '#F9F9F9',
  42. },
  43. '& .MuiInput-underline:after': {
  44. borderWidth: 1,
  45. },
  46. },
  47. },
  48. '& .right': {
  49. display: 'flex',
  50. justifyContent: 'space-between',
  51. alignItems: 'center',
  52. gap: theme.spacing(2),
  53. },
  54. },
  55. vectorTableCell: {
  56. '& >div': {
  57. maxWidth: theme.spacing(50),
  58. overflow: 'hidden',
  59. textOverflow: 'ellipsis',
  60. },
  61. display: 'flex',
  62. flexDirection: 'row',
  63. alignItems: 'center',
  64. },
  65. copyBtn: {
  66. padding: '4px',
  67. width: '16px',
  68. height: '16px',
  69. position: 'relative',
  70. top: '-3px',
  71. },
  72. }));