@@ -3,7 +3,7 @@ import { styled } from './utils'
3
3
export const Panel = styled (
4
4
'div' ,
5
5
( props , theme ) => ( {
6
- fontSize : '1rem ' ,
6
+ fontSize : 'clamp(12px, 1.5vw, 16px) ' ,
7
7
display : 'flex' ,
8
8
backgroundColor : theme . background ,
9
9
color : theme . foreground ,
@@ -18,57 +18,57 @@ export const Panel = styled(
18
18
19
19
export const Button = styled ( 'button' , ( props , theme ) => ( {
20
20
appearance : 'none' ,
21
- fontSize : '.9rem ' ,
21
+ fontSize : '.9em ' ,
22
22
fontWeight : 'bold' ,
23
23
background : theme . gray ,
24
24
border : '0' ,
25
- borderRadius : '.3rem ' ,
25
+ borderRadius : '.3em ' ,
26
26
color : 'white' ,
27
- padding : '.5rem ' ,
27
+ padding : '.5em ' ,
28
28
opacity : props . disabled ? '.5' : undefined ,
29
29
cursor : 'pointer' ,
30
30
} ) )
31
31
32
32
export const QueryKeys = styled ( 'span' , {
33
33
display : 'inline-block' ,
34
- fontSize : '0.9rem ' ,
34
+ fontSize : '0.9em ' ,
35
35
} )
36
36
37
37
export const QueryKey = styled ( 'span' , {
38
38
display : 'inline-flex' ,
39
39
alignItems : 'center' ,
40
- padding : '.2rem .4rem ' ,
40
+ padding : '.2em .4em ' ,
41
41
fontWeight : 'bold' ,
42
42
textShadow : '0 0 10px black' ,
43
- borderRadius : '.2rem ' ,
43
+ borderRadius : '.2em ' ,
44
44
} )
45
45
46
46
export const Code = styled ( 'code' , {
47
- fontSize : '.9rem ' ,
47
+ fontSize : '.9em ' ,
48
48
} )
49
49
50
50
export const Input = styled ( 'input' , {
51
51
border : 0 ,
52
- borderRadius : '.2rem ' ,
53
- fontSize : '.9rem ' ,
54
- padding : '.3rem .4rem ' ,
52
+ borderRadius : '.2em ' ,
53
+ fontSize : '.9em ' ,
54
+ padding : '.3em .4em ' ,
55
55
} )
56
56
57
57
export const Select = styled ( 'select' , {
58
58
display : `inline-block` ,
59
- fontSize : `.9rem ` ,
59
+ fontSize : `.9em ` ,
60
60
fontFamily : `sans-serif` ,
61
61
fontWeight : 'normal' ,
62
62
lineHeight : `1.3` ,
63
- padding : `.3rem 1.5rem .3rem .5rem ` ,
63
+ padding : `.3em 1.5em .3em .5em ` ,
64
64
height : 'auto' ,
65
65
border : 0 ,
66
- borderRadius : `.2rem ` ,
66
+ borderRadius : `.2em ` ,
67
67
appearance : `none` ,
68
68
WebkitAppearance : 'none' ,
69
69
backgroundColor : `#fff` ,
70
70
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>")` ,
71
71
backgroundRepeat : `no-repeat` ,
72
- backgroundPosition : `right .55rem center` ,
72
+ backgroundPosition : `right .55em center` ,
73
73
backgroundSize : `.65em auto, 100%` ,
74
74
} )
0 commit comments