-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathstyles.ts
More file actions
60 lines (54 loc) · 1.34 KB
/
styles.ts
File metadata and controls
60 lines (54 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { css } from '@emotion/react';
import { useTheme } from '@mui/material';
const ITEM_HEIGHT_RATIO = 10;
export const useStyles = () => {
const theme = useTheme();
return {
container: css`
position: absolute;
z-index: 2;
left: 0;
right: 0;
top: ${theme.spacing(2)};
border-radius: ${theme.spacing(3)};
background-color: ${theme.palette.background.default};
box-shadow: 0 4px 15px 0 #0d1017;
overflow: hidden;
`,
searchField: css`
margin-bottom: ${theme.spacing(4)};
> div {
background-color: ${theme.palette.secondary.main};
}
`,
commonTokenList: css`
display: flex;
overflow-y: auto;
-ms-overflow-style: none;
scrollbar-width: none;
::-webkit-scrollbar {
display: none;
}
`,
commonTokenButton: css`
:not(:last-of-type) {
margin-right: ${theme.spacing(2)};
}
`,
list: css`
max-height: ${theme.spacing(ITEM_HEIGHT_RATIO * 6)};
overflow-y: auto;
`,
item: css`
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
height: ${theme.spacing(ITEM_HEIGHT_RATIO)};
padding: ${theme.spacing(0, 3)};
:hover {
background-color: ${theme.palette.secondary.light};
}
`,
};
};