|
1 | | -const component = { |
2 | | - marginTop: '5rem', |
3 | | - marginBottom: '5rem', |
4 | | - backgroundColor:'#f1f1f141', |
| 1 | +const component = { |
| 2 | + marginTop: 'var(--multistep-spacing-lg, 5rem)', |
| 3 | + marginBottom: 'var(--multistep-spacing-lg, 5rem)', |
| 4 | + backgroundColor:'var(--multistep-bg, #f1f1f141)', |
5 | 5 | maxWidth: '960px', |
| 6 | + width: '100%', |
6 | 7 | } |
7 | | -const section = { |
| 8 | +const section = { |
8 | 9 | display: 'block', |
9 | | - justifyContent: 'space-around', |
10 | | - margin: '4rem', |
11 | | -} |
| 10 | + margin: 'var(--multistep-spacing-md, 4rem)', |
| 11 | +} |
12 | 12 | const topNav = { |
13 | 13 | display: 'flex', |
14 | 14 | flexDirection: 'row', |
| 15 | + flexWrap: 'nowrap', |
15 | 16 | margin: '0', |
16 | | - paddingBottom: '2.2rem', |
| 17 | + paddingBottom: 'var(--multistep-spacing-sm, 2rem)', |
17 | 18 | listStyleType: 'none', |
| 19 | + overflowX: 'auto', |
| 20 | + scrollbarWidth: 'thin', |
| 21 | + gap: 0, |
18 | 22 | } |
19 | 23 | const topNavStep = { |
20 | | - color: 'silver', |
| 24 | + color: 'var(--multistep-inactive, silver)', |
21 | 25 | cursor: 'pointer', |
22 | | - width: '25%', |
23 | | - paddingTop: '4rem', |
24 | | - paddingRight: '4rem', |
25 | | - borderBottom: '1px solid silver', |
| 26 | + flex: '1 1 25%', |
| 27 | + minWidth: '80px', |
| 28 | + paddingTop: 'var(--multistep-spacing-md, 4rem)', |
| 29 | + paddingRight: 'var(--multistep-spacing-md, 4rem)', |
| 30 | + borderBottom: '2px solid var(--multistep-border, silver)', |
26 | 31 | } |
27 | 32 | const todo = { |
28 | | - color: 'gray', |
| 33 | + color: 'var(--multistep-inactive-light, gray)', |
29 | 34 | } |
30 | 35 | const doing = { |
31 | | - color: '#1EAEDB', |
| 36 | + color: 'var(--multistep-primary, #1EAEDB)', |
32 | 37 | } |
33 | 38 | const prevButton = { |
34 | | - color: '#1EAEDB', |
35 | | - backgroundColor: '#f7f7f7', |
| 39 | + color: 'var(--multistep-primary, #1EAEDB)', |
| 40 | + backgroundColor: 'var(--multistep-button-bg, #f7f7f7)', |
36 | 41 | border: '0', |
37 | | - fontSize: '4rem', |
| 42 | + fontSize: 'var(--multistep-button-size, 4rem)', |
38 | 43 | fontWeight: '500', |
39 | 44 | padding: '0', |
| 45 | + width: 'var(--multistep-tap-target, 44px)', |
| 46 | + height: 'var(--multistep-tap-target, 44px)', |
| 47 | + display: 'inline-flex', |
| 48 | + alignItems: 'center', |
| 49 | + justifyContent: 'center', |
| 50 | + borderRadius: '4px', |
40 | 51 | } |
41 | 52 | const nextButton = { |
42 | | - color: '#1EAEDB', |
43 | | - backgroundColor: '#f7f7f7', |
| 53 | + color: 'var(--multistep-primary, #1EAEDB)', |
| 54 | + backgroundColor: 'var(--multistep-button-bg, #f7f7f7)', |
44 | 55 | border: '0', |
45 | | - fontSize: '4rem', |
| 56 | + fontSize: 'var(--multistep-button-size, 4rem)', |
46 | 57 | fontWeight: '500', |
47 | 58 | padding: '0', |
48 | | - float: 'right', // only difference |
| 59 | + width: 'var(--multistep-tap-target, 44px)', |
| 60 | + height: 'var(--multistep-tap-target, 44px)', |
| 61 | + display: 'inline-flex', |
| 62 | + alignItems: 'center', |
| 63 | + justifyContent: 'center', |
| 64 | + borderRadius: '4px', |
49 | 65 | } |
50 | 66 |
|
51 | 67 | export const multiStepStyles = { |
|
0 commit comments