mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
CE-740 font sizes, colors, and padding
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import {Theme} from "@mui/material/styles";
|
import {Theme} from "@mui/material/styles";
|
||||||
import {ReactNode} from "react";
|
import {ReactNode} from "react";
|
||||||
|
import colors from "qqq/assets/theme/base/colors";
|
||||||
|
|
||||||
// Declaring prop types for DataTableBodyCell
|
// Declaring prop types for DataTableBodyCell
|
||||||
interface Props
|
interface Props
|
||||||
@ -40,14 +41,26 @@ function DataTableBodyCell({noBorder, align, children}: Props): JSX.Element
|
|||||||
py={1.5}
|
py={1.5}
|
||||||
px={3}
|
px={3}
|
||||||
sx={({palette: {light}, typography: {size}, borders: {borderWidth}}: Theme) => ({
|
sx={({palette: {light}, typography: {size}, borders: {borderWidth}}: Theme) => ({
|
||||||
fontSize: size.sm,
|
borderBottom: noBorder ? "none" : `${borderWidth[1]} solid ${colors.grayLines.main}`,
|
||||||
borderBottom: noBorder ? "none" : `${borderWidth[1]} solid ${light.main}`,
|
fontSize: "0.875rem",
|
||||||
|
"@media (min-width: 1440px)": {
|
||||||
|
fontSize: "1rem"
|
||||||
|
},
|
||||||
|
"@media (max-width: 1440px)": {
|
||||||
|
fontSize: "0.875rem"
|
||||||
|
},
|
||||||
|
"&:nth-child(1)": {
|
||||||
|
paddingLeft: "1rem"
|
||||||
|
},
|
||||||
|
"&:last-child": {
|
||||||
|
paddingRight: "1rem"
|
||||||
|
}
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
display="initial"
|
display="initial"
|
||||||
width="max-content"
|
width="max-content"
|
||||||
color="text"
|
color={colors.dark.main}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -23,6 +23,7 @@ import Box from "@mui/material/Box";
|
|||||||
import Icon from "@mui/material/Icon";
|
import Icon from "@mui/material/Icon";
|
||||||
import {Theme} from "@mui/material/styles";
|
import {Theme} from "@mui/material/styles";
|
||||||
import {ReactNode} from "react";
|
import {ReactNode} from "react";
|
||||||
|
import colors from "qqq/assets/theme/base/colors";
|
||||||
import {useMaterialUIController} from "qqq/context";
|
import {useMaterialUIController} from "qqq/context";
|
||||||
|
|
||||||
// Declaring props types for DataTableHeadCell
|
// Declaring props types for DataTableHeadCell
|
||||||
@ -46,18 +47,28 @@ function DataTableHeadCell({width, children, sorted, align, ...rest}: Props): JS
|
|||||||
py={1.5}
|
py={1.5}
|
||||||
px={3}
|
px={3}
|
||||||
sx={({palette: {light}, borders: {borderWidth}}: Theme) => ({
|
sx={({palette: {light}, borders: {borderWidth}}: Theme) => ({
|
||||||
borderBottom: `${borderWidth[1]} solid ${light.main}`,
|
borderBottom: `${borderWidth[1]} solid ${colors.grayLines.main}`,
|
||||||
|
"&:nth-child(1)": {
|
||||||
|
paddingLeft: "1rem"
|
||||||
|
},
|
||||||
|
"&:last-child": {
|
||||||
|
paddingRight: "1rem"
|
||||||
|
},
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
{...rest}
|
{...rest}
|
||||||
sx={({typography: {size, fontWeightBold}}: Theme) => ({
|
sx={({typography: {size, fontWeightBold}}: Theme) => ({
|
||||||
position: "relative",
|
position: "relative",
|
||||||
opacity: "0.7",
|
color: colors.grey[700],
|
||||||
textAlign: align,
|
textAlign: align,
|
||||||
fontSize: size.xxs,
|
"@media (min-width: 1440px)": {
|
||||||
fontWeight: fontWeightBold,
|
fontSize: "1rem"
|
||||||
textTransform: "uppercase",
|
},
|
||||||
|
"@media (max-width: 1440px)": {
|
||||||
|
fontSize: "0.875rem"
|
||||||
|
},
|
||||||
|
fontWeight: 600,
|
||||||
cursor: sorted && "pointer",
|
cursor: sorted && "pointer",
|
||||||
userSelect: sorted && "none",
|
userSelect: sorted && "none",
|
||||||
})}
|
})}
|
||||||
|
@ -14,12 +14,24 @@ Coded by www.creative-tim.com
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {ReactNode} from "react";
|
import {ReactNode} from "react";
|
||||||
|
import colors from "qqq/assets/theme/base/colors";
|
||||||
import MDTypography from "qqq/components/legacy/MDTypography";
|
import MDTypography from "qqq/components/legacy/MDTypography";
|
||||||
|
|
||||||
function DefaultCell({children}: { children: ReactNode }): JSX.Element
|
function DefaultCell({children}: { children: ReactNode }): JSX.Element
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
<MDTypography variant="button" fontWeight="regular" color="text">
|
<MDTypography variant="button" color={colors.dark.main} sx={{
|
||||||
|
fontWeight: 600,
|
||||||
|
"@media (min-width: 1440px)": {
|
||||||
|
fontSize: "1rem"
|
||||||
|
},
|
||||||
|
"@media (max-width: 1440px)": {
|
||||||
|
fontSize: "0.875rem"
|
||||||
|
},
|
||||||
|
"& a": {
|
||||||
|
color: colors.blueGray.main
|
||||||
|
}
|
||||||
|
}}>
|
||||||
{children}
|
{children}
|
||||||
</MDTypography>
|
</MDTypography>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user