Open History to see the last commit
1import { styled } from './utils'
2β
3export const Panel = styled(
4 'div',
5 (_props, theme) => ({
6 fontSize: 'clamp(12px, 1.5vw, 14px)',
7 fontFamily: `sans-serif`,
8 display: 'flex',
9 backgroundColor: theme.background,
10 color: theme.foreground,
11 }),
12 {
13 '(max-width: 700px)': {
14 flexDirection: 'column',
15 },
16 '(max-width: 600px)': {
17 fontSize: '.9em',
18 // flexDirection: 'column',
19 },
20 },
21)
22β
23export const ActivePanel = styled(
24 'div',
25 () => ({
26 flex: '1 1 500px',
27 display: 'flex',
28 flexDirection: 'column',
29 overflow: 'auto',
30 height: '100%',
31 }),
32 {
33 '(max-width: 700px)': (_props, theme) => ({
34 borderTop: `2px solid ${theme.gray}`,
35 }),
36 },
37)
38β
39export const Button = styled('button', (props, theme) => ({
40 appearance: 'none',
41 fontSize: '.9em',
42 fontWeight: 'bold',
43 background: theme.gray,
44 border: '0',
45 borderRadius: '.3em',
46 color: 'white',
47 padding: '.5em',
48 opacity: props.disabled ? '.5' : undefined,
49 cursor: 'pointer',
50}))
51β
52// export const QueryKeys = styled('span', {
53// display: 'inline-block',
54// fontSize: '0.9em',
55// })
56β
57// export const QueryKey = styled('span', {
58// display: 'inline-flex',
59// alignItems: 'center',
60// padding: '.2em .4em',
61// fontWeight: 'bold',
62// textShadow: '0 0 10px black',
63// borderRadius: '.2em',
64// })
65β
66export const Code = styled('code', {
67 fontSize: '.9em',
68})
69β
70export const Input = styled('input', (_props, theme) => ({
71 backgroundColor: theme.inputBackgroundColor,
72 border: 0,
73 borderRadius: '.2em',
74 color: theme.inputTextColor,
75 fontSize: '.9em',
76 lineHeight: `1.3`,
77 padding: '.3em .4em',
78}))
79β
80export const Select = styled(
81 'select',
82 (_props, theme) => ({
83 display: `inline-block`,
84 fontSize: `.9em`,
85 fontFamily: `sans-serif`,
86 fontWeight: 'normal',
87 lineHeight: `1.3`,
88 padding: `.3em 1.5em .3em .5em`,
89 height: 'auto',
90 border: 0,
91 borderRadius: `.2em`,
92 appearance: `none`,
93 WebkitAppearance: 'none',
94 backgroundColor: theme.inputBackgroundColor,
95 backgroundImage: `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23444444'><polygon points='0,25 100,25 50,75'/></svg>")`,
96 backgroundRepeat: `no-repeat`,
97 backgroundPosition: `right .55em center`,
98 backgroundSize: `.65em auto, 100%`,
99 color: theme.inputTextColor,
100 }),
101 {
102 '(max-width: 500px)': {
103 display: 'none',
104 },
105 },
106)