Merge pull request #2557 from bluewave-labs/fix/placeholder-center-align
Fix/placeholder center align
This commit is contained in:
2 files changed
+30
-4
No files matched your search
@@ -1,19 +1,22 @@
|
|||||||
[class*="fallback__"] {
|
[class*="fallback__"] {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 100px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="fallback__"] h1.MuiTypography-root {
|
[class*="fallback__"] h1.MuiTypography-root {
|
||||||
font-size: var(--env-var-font-size-large);
|
font-size: var(--env-var-font-size-large);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="fallback__"] button.MuiButtonBase-root,
|
[class*="fallback__"] button.MuiButtonBase-root,
|
||||||
[class*="fallback__"] .check {
|
[class*="fallback__"] .check {
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="fallback__"] button.MuiButtonBase-root {
|
[class*="fallback__"] button.MuiButtonBase-root {
|
||||||
min-height: 34px;
|
min-height: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="fallback__"] .check span.MuiTypography-root,
|
[class*="fallback__"] .check span.MuiTypography-root,
|
||||||
[class*="fallback__"] button.MuiButtonBase-root {
|
[class*="fallback__"] button.MuiButtonBase-root {
|
||||||
font-size: var(--env-var-font-size-medium);
|
font-size: var(--env-var-font-size-medium);
|
||||||
@@ -35,6 +38,7 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fallback__status > .MuiStack-root {
|
.fallback__status > .MuiStack-root {
|
||||||
margin-left: var(--env-var-spacing-2);
|
margin-left: var(--env-var-spacing-2);
|
||||||
}
|
}
|
||||||
@@ -67,18 +67,38 @@ const Fallback = ({
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
position="relative"
|
position="relative"
|
||||||
|
sx={{
|
||||||
|
height: "100%",
|
||||||
|
width: "100%",
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box
|
||||||
border={1}
|
border={1}
|
||||||
borderColor={theme.palette.primary.lowContrast}
|
borderColor={theme.palette.primary.lowContrast}
|
||||||
borderRadius={theme.shape.borderRadius}
|
borderRadius={theme.shape.borderRadius}
|
||||||
backgroundColor={theme.palette.primary.main}
|
backgroundColor={theme.palette.primary.main}
|
||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
sx={{
|
sx={{
|
||||||
|
display: "flex",
|
||||||
borderStyle: "dashed",
|
borderStyle: "dashed",
|
||||||
minHeight: "calc(100vh - var(--env-var-spacing-2) * 2)",
|
height: {
|
||||||
|
sm: "50vh",
|
||||||
|
md: "70vh",
|
||||||
|
lg: "60vh",
|
||||||
|
xl: "55vh",
|
||||||
|
},
|
||||||
|
width: {
|
||||||
|
sm: "90%",
|
||||||
|
md: "50%",
|
||||||
|
lg: "40%",
|
||||||
|
},
|
||||||
|
padding: theme.spacing(10),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack
|
<Stack
|
||||||
@@ -103,10 +123,11 @@ const Fallback = ({
|
|||||||
</Box>
|
</Box>
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(4)}
|
||||||
maxWidth={"300px"}
|
maxWidth={theme.spacing(180)}
|
||||||
zIndex={1}
|
zIndex={1}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
alignSelf="center"
|
||||||
component="h1"
|
component="h1"
|
||||||
marginY={theme.spacing(4)}
|
marginY={theme.spacing(4)}
|
||||||
color={theme.palette.primary.contrastTextTertiary}
|
color={theme.palette.primary.contrastTextTertiary}
|
||||||
@@ -175,6 +196,7 @@ const Fallback = ({
|
|||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user