-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathstyles.ts
More file actions
123 lines (122 loc) · 3.42 KB
/
Copy pathstyles.ts
File metadata and controls
123 lines (122 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import { makeStyles, createStyles, ITheme } from "@chainsafe/common-theme";
export const useStyles = makeStyles(
({ animation, constants, palette, typography }: ITheme) =>
createStyles({
root: {
width: "100%",
},
inner: {
width: "100% !important",
maxWidth: "unset !important",
display: "flex",
flexDirection: "row",
padding: `${constants.generalUnit * 5}px ${
constants.generalUnit * 3.5
}px`,
bottom: 0,
top: "unset !important",
transform: "unset !important",
left: "0 !important",
border: "none",
borderRadius: 0,
transitionDuration: `${animation.transform}ms`,
},
heading: {
marginBottom: constants.generalUnit,
whiteSpace: "nowrap",
},
stepIndicator: {
...typography.h4,
height: 40,
width: 40,
marginRight: constants.generalUnit * 2,
borderRadius: "50%",
display: "flex",
justifyContent: "center",
alignItems: "center",
border: `1px solid ${palette.additional["transactionModal"][2]}`,
color: palette.additional["transactionModal"][3],
"& svg": {
height: 20,
width: 20,
display: "block",
},
},
content: {
display: "flex",
flexDirection: "column",
},
buttons: {
// display: "flex",
// flexDirection: "row",
marginTop: constants.generalUnit * 5,
"& > *": {
textDecoration: "none",
marginRight: constants.generalUnit,
},
},
button: {
borderColor: `${palette.additional["gray"][8]} !important`,
color: `${palette.additional["gray"][8]} !important`,
textDecoration: "none",
"&:hover": {
borderColor: `${palette.additional["gray"][8]} !important`,
backgroundColor: `${palette.additional["gray"][8]} !important`,
color: `${palette.common.white.main} !important`,
textDecoration: "none",
},
},
initCopy: {
display: "flex",
flexDirection: "column",
justifyContent: "space-between",
"& > *:first-child": {
marginTop: constants.generalUnit * 3.5,
marginBottom: constants.generalUnit * 8,
},
},
sendingCopy: {},
vote: {
display: "flex",
flexDirection: "row",
marginTop: constants.generalUnit,
"& > *": {
"&:first-child": {
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
maxWidth: 240,
},
"&:last-child": {
marginLeft: constants.generalUnit * 3.5,
fontStyle: "italic",
},
},
},
warning: {
marginTop: constants.generalUnit * 3.5,
display: "block",
fontWeight: 600,
},
receipt: {
marginTop: constants.generalUnit * 3.5,
marginBottom: constants.generalUnit * 8,
},
weighted: {
fontWeight: 600,
},
progress: {
position: "absolute",
top: 0,
left: 0,
width: "100%",
"& > *": {
borderRadius: "0 !important",
"& > *": {
borderRadius: "0 !important",
background: `${palette.additional["transactionModal"][1]} !important`,
},
},
},
})
);