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

96 lines
2.2 KiB
React
Raw Normal View History

2024-09-04 12:57:08 -04:00
import { Box, Stack, styled } from "@mui/material";
2024-09-02 18:46:51 -04:00
2024-09-04 12:57:08 -04:00
export const ChartBox = styled(Stack)(({ theme }) => ({
2024-09-02 18:46:51 -04:00
flex: "1 30%",
2024-09-04 12:57:08 -04:00
gap: theme.spacing(8),
2024-09-02 18:46:51 -04:00
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
},
2024-09-04 21:41:16 -04:00
"& .MuiBox-root:not(.area-tooltip) p": {
2024-09-02 18:46:51 -04:00
color: theme.palette.text.tertiary,
fontSize: 13,
},
2024-09-04 21:41:16 -04:00
"& .MuiBox-root > span": {
2024-09-02 18:46:51 -04:00
color: theme.palette.text.primary,
fontSize: 20,
"& span": {
opacity: 0.8,
marginLeft: 2,
fontSize: 15,
},
},
"& .MuiStack-root": {
flexDirection: "row",
gap: theme.spacing(6),
},
2024-09-04 16:41:23 -04:00
"& .MuiStack-root:first-of-type": {
alignItems: "center",
},
2024-09-03 20:00:48 -04:00
"& tspan, & text": {
fill: theme.palette.text.tertiary,
},
2024-09-04 12:57:08 -04:00
"& path": {
2024-09-18 09:41:27 +08:00
transition: "fill 300ms ease, stroke-width 400ms ease",
2024-09-04 12:57:08 -04:00
},
2024-09-02 18:46:51 -04:00
}));
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,
2024-09-02 20:43:27 -04:00
width: 225,
2024-09-02 19:31:20 -04:00
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
2024-09-11 12:46:41 -04:00
background: `linear-gradient(340deg, ${theme.palette.background.accent} 20%, ${theme.palette.background.main} 45%)`,
2024-09-02 19:31:20 -04:00
"& 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,
},
},
}));