Styles.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import { makeStyles, Theme } from '@material-ui/core';
  2. export const getVectorSearchStyles = makeStyles((theme: Theme) => ({
  3. pageContainer: {
  4. display: 'flex',
  5. flexDirection: 'row',
  6. gap: theme.spacing(2),
  7. },
  8. form: {
  9. display: 'flex',
  10. flexDirection: 'column',
  11. gap: theme.spacing(0),
  12. width: 360,
  13. flexShrink: 0,
  14. backgroundColor: '#fff',
  15. border: '1px solid #e0e0e0',
  16. '& textarea': {
  17. border: `1px solid ${theme.palette.attuGrey.main}`,
  18. marginTop: theme.spacing(0),
  19. marginBottom: theme.spacing(1),
  20. overflow: 'scroll',
  21. height: '130px',
  22. maxWidth: '100%',
  23. width: '100%',
  24. display: 'block',
  25. boxSizing: 'border-box',
  26. },
  27. '& .text': {
  28. marginBottom: theme.spacing(1),
  29. fontWeight: '600',
  30. },
  31. overflow: 'hidden',
  32. },
  33. s1: {
  34. '& .wrapper': {
  35. display: 'flex',
  36. flexDirection: 'row',
  37. gap: theme.spacing(2),
  38. },
  39. '& .MuiSelect-root': {
  40. width: '116px',
  41. },
  42. },
  43. s2: {
  44. position: 'relative',
  45. textAlign: 'right',
  46. },
  47. s3: {},
  48. selector: {
  49. display: 'block',
  50. marginBottom: theme.spacing(0),
  51. },
  52. exampleBtn: {
  53. marginRight: theme.spacing(1),
  54. },
  55. paramsWrapper: {
  56. display: 'flex',
  57. flexDirection: 'column',
  58. },
  59. resultsWrapper: {
  60. border: '1px solid #e0e0e0',
  61. background: '#fff',
  62. display: 'flex',
  63. flexDirection: 'column',
  64. flexGrow: 0,
  65. width: `calc(100% - 396px)`,
  66. padding: theme.spacing(1, 2),
  67. },
  68. toolbar: {
  69. display: 'flex',
  70. justifyContent: 'space-between',
  71. alignItems: 'center',
  72. '& .left': {
  73. display: 'flex',
  74. alignItems: 'center',
  75. '& .text': {
  76. },
  77. },
  78. '& .right': {
  79. '& .btn': {
  80. marginRight: theme.spacing(1),
  81. },
  82. '& .icon': {
  83. fontSize: '16px',
  84. },
  85. },
  86. },
  87. menuLabel: {
  88. minWidth: '108px',
  89. padding: theme.spacing(0, 1),
  90. margin: theme.spacing(0, 1),
  91. backgroundColor: '#fff',
  92. color: theme.palette.attuGrey.dark,
  93. },
  94. menuItem: {
  95. fontWeight: 500,
  96. fontSize: '12px',
  97. lineHeight: '16px',
  98. color: theme.palette.attuGrey.dark,
  99. },
  100. error: {
  101. display: 'block',
  102. marginTop: theme.spacing(-1),
  103. padding: '8px 0',
  104. color: theme.palette.error.main,
  105. },
  106. vectorTableCell: {
  107. display: 'flex',
  108. whiteSpace: 'nowrap',
  109. },
  110. }));