2021-03-30 07:40:18 +00:00
|
|
|
import { makeStyles } from "@saleor/theme";
|
2020-08-28 12:45:11 +00:00
|
|
|
|
|
|
|
const useStyles = makeStyles(
|
|
|
|
theme => {
|
|
|
|
const colAction: React.CSSProperties = {
|
|
|
|
textAlign: "right",
|
|
|
|
width: 130
|
|
|
|
};
|
|
|
|
const colName: React.CSSProperties = {
|
|
|
|
width: 220
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
|
|
|
colAction: {
|
|
|
|
"&:last-child": {
|
|
|
|
...colAction,
|
|
|
|
paddingRight: theme.spacing()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
colActionHeader: {
|
|
|
|
...colAction
|
|
|
|
},
|
|
|
|
colName: {
|
|
|
|
...colName,
|
|
|
|
verticalAlign: "top"
|
|
|
|
},
|
|
|
|
colNameHeader: {
|
|
|
|
...colName
|
|
|
|
},
|
|
|
|
colValue: {},
|
|
|
|
content: {
|
|
|
|
paddingBottom: 0,
|
|
|
|
paddingTop: theme.spacing()
|
|
|
|
},
|
|
|
|
emptyContainer: {
|
|
|
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
|
|
paddingBottom: theme.spacing(4),
|
|
|
|
paddingTop: theme.spacing(3),
|
|
|
|
textAlign: "center"
|
|
|
|
},
|
|
|
|
emptyImage: {
|
|
|
|
marginBottom: theme.spacing(2)
|
|
|
|
},
|
|
|
|
input: {
|
|
|
|
padding: theme.spacing(0.5, 2)
|
|
|
|
},
|
|
|
|
nameInput: {
|
|
|
|
padding: `13px 16px`
|
|
|
|
},
|
|
|
|
table: {
|
|
|
|
tableLayout: "fixed"
|
|
|
|
},
|
|
|
|
togglable: {
|
|
|
|
alignItems: "center",
|
|
|
|
display: "flex",
|
|
|
|
justifyContent: "space-between"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Metadata"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export default useStyles;
|