Open History to see the last commit
1// @ts-nocheck
2β
3import { styled } from './utils'
4β
5export const Panel = styled(
6 'div',
7 (props, theme) => ({
8 fontSize: 'clamp(12px, 1.5vw, 14px)',
9 fontFamily: `sans-serif`,
10 display: 'flex',
11 backgroundColor: theme.background,
12 color: theme.foreground,
13 }),
14 {
15 '(max-width: 700px)': {
16 flexDirection: 'column',
17 },
18 '(max-width: 600px)': {
19 fontSize: '.9rem',
20 // flexDirection: 'column',
21 },
22 }
23)
24β
25export const ActiveQueryPanel = styled(
26 'div',
27 (props, theme) => ({
28 flex: '1 1 500px',
29 display: 'flex',
30 flexDirection: 'column',
31 overflow: 'auto',
32 height: '100%',
33 }),
34 {
35 '(max-width: 700px)': (props, theme) => ({
36 borderTop: `2px solid ${theme.gray}`,
37 }),
38 }
39)
40β
41export const Button = styled('button', (props, theme) => ({
42 appearance: 'none',
43 fontSize: '.9em',
44 fontWeight: 'bold',
45 background: theme.gray,
46 border: '0',
47 borderRadius: '.3em',
48 color: 'white',
49 padding: '.5em',
50 opacity: props.disabled ? '.5' : undefined,
51 cursor: 'pointer',
52}))
53β
54export const QueryKeys = styled('span', {
55 display: 'inline-block',
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})
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)