mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-21 14:48:43 +00:00
78 lines
1.9 KiB
TypeScript
78 lines
1.9 KiB
TypeScript
/**
|
|
=========================================================
|
|
* Material Dashboard 2 PRO React TS - v1.0.0
|
|
=========================================================
|
|
|
|
* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
|
|
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
|
|
|
|
Coded by www.creative-tim.com
|
|
|
|
=========================================================
|
|
|
|
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
*/
|
|
|
|
// Material Dashboard 2 PRO React TS Base Styles
|
|
import breakpoints from "assets/theme/base/breakpoints";
|
|
|
|
// Material Dashboard 2 PRO React TS Helper Functions
|
|
import pxToRem from "assets/theme/functions/pxToRem";
|
|
|
|
// types
|
|
type Types = any;
|
|
|
|
const {
|
|
values: { sm, md, lg, xl, xxl },
|
|
} = breakpoints;
|
|
|
|
const SM = `@media (min-width: ${sm}px)`;
|
|
const MD = `@media (min-width: ${md}px)`;
|
|
const LG = `@media (min-width: ${lg}px)`;
|
|
const XL = `@media (min-width: ${xl}px)`;
|
|
const XXL = `@media (min-width: ${xxl}px)`;
|
|
|
|
const sharedClasses = {
|
|
paddingRight: `${pxToRem(24)} !important`,
|
|
paddingLeft: `${pxToRem(24)} !important`,
|
|
marginRight: "auto !important",
|
|
marginLeft: "auto !important",
|
|
width: "100% !important",
|
|
position: "relative",
|
|
};
|
|
|
|
const container: Types = {
|
|
[SM]: {
|
|
".MuiContainer-root": {
|
|
...sharedClasses,
|
|
maxWidth: "540px !important",
|
|
},
|
|
},
|
|
[MD]: {
|
|
".MuiContainer-root": {
|
|
...sharedClasses,
|
|
maxWidth: "720px !important",
|
|
},
|
|
},
|
|
[LG]: {
|
|
".MuiContainer-root": {
|
|
...sharedClasses,
|
|
maxWidth: "960px !important",
|
|
},
|
|
},
|
|
[XL]: {
|
|
".MuiContainer-root": {
|
|
...sharedClasses,
|
|
maxWidth: "1140px !important",
|
|
},
|
|
},
|
|
[XXL]: {
|
|
".MuiContainer-root": {
|
|
...sharedClasses,
|
|
maxWidth: "1320px !important",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default container;
|