2021-07-21 08:59:52 +00:00
|
|
|
import { makeStyles } from "@saleor/macaw-ui";
|
2020-07-22 10:54:15 +00:00
|
|
|
|
|
|
|
export const useStyles = makeStyles(
|
|
|
|
theme => ({
|
|
|
|
appSettingsHeader: {
|
|
|
|
"& > button, & > a": {
|
|
|
|
"&:last-child": {
|
2022-06-21 09:36:55 +00:00
|
|
|
marginRight: 0,
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
2022-06-21 09:36:55 +00:00
|
|
|
marginRight: theme.spacing(2),
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
display: "flex",
|
2022-06-21 09:36:55 +00:00
|
|
|
justifyContent: "flex-end",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
breadcrumb: {
|
|
|
|
"&:not(:last-child)": {
|
|
|
|
"&:after": {
|
|
|
|
content: "'/'",
|
|
|
|
display: "block",
|
|
|
|
position: "absolute",
|
2021-07-21 08:59:52 +00:00
|
|
|
right: theme.spacing(-2),
|
2022-06-21 09:36:55 +00:00
|
|
|
top: 0,
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
"&:not(:first-child):hover": {
|
|
|
|
cursor: "pointer",
|
2022-06-21 09:36:55 +00:00
|
|
|
textDecoration: "underline",
|
|
|
|
},
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
marginRight: theme.spacing(3),
|
2022-06-21 09:36:55 +00:00
|
|
|
position: "relative",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
breadcrumbContainer: {
|
|
|
|
alignItems: "center",
|
2022-06-21 09:36:55 +00:00
|
|
|
display: "flex",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
breadcrumbDisabled: {
|
|
|
|
"&:hover": {
|
2022-06-21 09:36:55 +00:00
|
|
|
textDecoration: "none",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
2022-06-21 09:36:55 +00:00
|
|
|
color: theme.palette.text.disabled,
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
breadcrumbs: {
|
2022-06-21 09:36:55 +00:00
|
|
|
display: "flex",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
hr: {
|
|
|
|
border: "none",
|
|
|
|
borderTop: `1px solid ${theme.palette.divider}`,
|
|
|
|
height: 0,
|
|
|
|
marginBottom: 0,
|
|
|
|
marginTop: 0,
|
2022-06-21 09:36:55 +00:00
|
|
|
width: "100%",
|
2020-07-22 10:54:15 +00:00
|
|
|
},
|
|
|
|
iframeContainer: {
|
2022-06-30 09:05:09 +00:00
|
|
|
lineHeight: 0, // It removes extra space between iframe and container
|
2020-07-22 10:54:15 +00:00
|
|
|
"& > iframe": {
|
|
|
|
border: "none",
|
2022-06-30 09:05:09 +00:00
|
|
|
minHeight: "60vh",
|
|
|
|
height: `calc(100vh - 27.8rem)`,
|
2022-06-21 09:36:55 +00:00
|
|
|
width: "100%",
|
2022-06-30 09:05:09 +00:00
|
|
|
[theme.breakpoints.up("md")]: {
|
|
|
|
height: `calc(100vh - 23.4rem)`,
|
|
|
|
},
|
2022-06-21 09:36:55 +00:00
|
|
|
},
|
|
|
|
},
|
2020-07-22 10:54:15 +00:00
|
|
|
}),
|
2022-06-21 09:36:55 +00:00
|
|
|
{ name: "AppPage" },
|
2020-07-22 10:54:15 +00:00
|
|
|
);
|