UNPKG

1.39 kBJavaScriptView Raw
1const baseStyle = {
2 height: '50px',
3 width: '240px',
4 border: 'none',
5 textAlign: 'center',
6 verticalAlign: 'center',
7 boxShadow: '0 2px 4px 0 rgba(0,0,0,.25)',
8 fontSize: '16px',
9 lineHeight: '48px',
10 display: 'block',
11 borderRadius: '1px',
12 transition: 'background-color .218s, border-color .218s, box-shadow .218s',
13 fontFamily: 'Roboto,arial,sans-serif',
14 cursor: 'pointer',
15 userSelect: 'none'
16}
17
18export const darkStyle = {
19 backgroundColor: '#4285f4',
20 color: '#fff',
21 ...baseStyle
22}
23
24export const lightStyle = {
25 backgroundColor: '#fff',
26 color: 'rgba(0,0,0,.54)',
27 ...baseStyle
28}
29
30export const iconStyle = {
31 width: '48px',
32 height: '48px',
33 textAlign: 'center',
34 verticalAlign: 'center',
35 display: 'block',
36 marginTop: '1px',
37 marginLeft: '1px',
38 float: 'left',
39 backgroundColor: '#fff',
40 borderRadius: '1px',
41 whiteSpace: 'nowrap'
42}
43
44export const svgStyle = {
45 width: '48px',
46 height: '48px',
47 display: 'block'
48}
49
50export const hoverStyle = {
51 boxShadow: '0 0 3px 3px rgba(66,133,244,.3)',
52 transition: 'background-color .218s, border-color .218s, box-shadow .218s'
53}
54
55// export const pressedStyle = {
56// backgroundColor: '#3367D6'
57// }
58
59export const disabledStyle = {
60 backgroundColor: 'rgba(37, 5, 5, .08)',
61 color: 'rgba(0, 0, 0, .40)',
62 cursor: 'not-allowed'
63}
64
65export const disabledIconStyle = {
66 backgroundColor: 'transparent'
67}