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 ActiveQueryPanel = 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β
52export const QueryKeys = styled('span', {
53 display: 'inline-block',
54 fontSize: '0.9em',
55})
56β
57export 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 color: 'inherit',
69 background: 'inherit',
70})
71β
72export const Input = styled('input', (_props, theme) => ({
73 backgroundColor: theme.inputBackgroundColor,
74 border: 0,
75 borderRadius: '.2em',
76 color: theme.inputTextColor,
77 fontSize: '.9em',
78 lineHeight: `1.3`,
79 padding: '.3em .4em',
80}))
81β
82export const Select = styled(
83 'select',
84 (_props, theme) => ({
85 display: `inline-block`,
86 fontSize: `.9em`,
87 fontFamily: `sans-serif`,
88 fontWeight: 'normal',
89 lineHeight: `1.3`,
90 padding: `.3em 1.5em .3em .5em`,
91 height: 'auto',
92 border: 0,
93 borderRadius: `.2em`,
94 appearance: `none`,
95 WebkitAppearance: 'none',
96 backgroundColor: theme.inputBackgroundColor,
97 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>")`,
98 backgroundRepeat: `no-repeat`,
99 backgroundPosition: `right .55em center`,
100 backgroundSize: `.65em auto, 100%`,
101 color: theme.inputTextColor,
102 }),
103 {
104 '(max-width: 500px)': {
105 display: 'none',
106 },
107 }
108)