Files
Checkmate/Client/src/Pages/Monitors/Details/styled.jsx
T

89 lines
1.9 KiB
React
Raw Normal View History

2024-09-02 18:46:51 -04:00
import { Box, styled } from "@mui/material";
export const ChartBox = styled(Box)(({ theme }) => ({
flex: "1 30%",
height: 300,
minWidth: 250,
padding: theme.spacing(8),
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
"& h2": {
color: theme.palette.text.secondary,
fontSize: 15,
2024-09-02 19:31:20 -04:00
fontWeight: 500,
2024-09-02 18:46:51 -04:00
},
"& p": {
color: theme.palette.text.tertiary,
fontSize: 13,
},
"& span": {
color: theme.palette.text.primary,
fontSize: 20,
"& span": {
opacity: 0.8,
marginLeft: 2,
fontSize: 15,
},
},
"& .MuiStack-root": {
flexDirection: "row",
alignItems: "center",
gap: theme.spacing(6),
},
"& > .MuiBox-root:not(:first-of-type)": {
marginTop: theme.spacing(8),
},
}));
export const IconBox = styled(Box)(({ theme }) => ({
height: 34,
minWidth: 34,
width: 34,
position: "relative",
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.dark,
borderRadius: 4,
backgroundColor: theme.palette.background.accent,
"& svg": {
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
width: 20,
height: 20,
"& path": {
stroke: theme.palette.text.tertiary,
},
},
}));
2024-09-02 19:31:20 -04:00
export const StatBox = styled(Box)(({ theme }) => ({
2024-09-02 19:31:20 -04:00
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
minWidth: 200,
flex: 1,
2024-09-02 19:31:20 -04:00
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
"& h2": {
fontSize: 13,
fontWeight: 500,
color: theme.palette.text.secondary,
textTransform: "uppercase",
},
"& p": {
fontSize: 18,
color: theme.palette.text.primary,
marginTop: theme.spacing(2),
"& span": {
color: theme.palette.text.tertiary,
marginLeft: theme.spacing(2),
2024-09-02 19:31:20 -04:00
fontSize: 15,
},
},
}));