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