move sx styles to global theme
This commit is contained in:
1 parent
3c1bb55b64
commit
b729214dac
2 files changed
+10
-16
No files matched your search
@@ -69,21 +69,6 @@ const Account = ({ open = "profile" }) => {
|
|||||||
<TabList
|
<TabList
|
||||||
onChange={handleTabChange}
|
onChange={handleTabChange}
|
||||||
aria-label="account tabs"
|
aria-label="account tabs"
|
||||||
sx={{
|
|
||||||
display: 'inline-flex',
|
|
||||||
borderTop: 1,
|
|
||||||
borderLeft: 1,
|
|
||||||
borderRight: 1,
|
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
|
||||||
borderRadius: `${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0 0`,
|
|
||||||
'& .MuiTab-root': {
|
|
||||||
backgroundColor: theme.palette.primary.main,
|
|
||||||
height: '34px',
|
|
||||||
},
|
|
||||||
'& .MuiTab-root.Mui-selected': {
|
|
||||||
borderRadius: 0,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{tabList.map((label, index) => (
|
{tabList.map((label, index) => (
|
||||||
<Tab
|
<Tab
|
||||||
|
|||||||
@@ -359,7 +359,9 @@ const baseTheme = (palette) => ({
|
|||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
fontSize: theme.typography.fontSize - 1,
|
fontSize: theme.typography.fontSize - 1,
|
||||||
color: theme.palette.tertiary.contrastText,
|
color: theme.palette.tertiary.contrastText,
|
||||||
backgroundColor: theme.palette.tertiary.main,
|
backgroundColor: theme.palette.primary.main,
|
||||||
|
height: '34px',
|
||||||
|
borderRadius: 0,
|
||||||
textTransform: "none",
|
textTransform: "none",
|
||||||
minWidth: "fit-content",
|
minWidth: "fit-content",
|
||||||
padding: `${theme.spacing(6)}px ${theme.spacing(4)}px`,
|
padding: `${theme.spacing(6)}px ${theme.spacing(4)}px`,
|
||||||
@@ -378,6 +380,7 @@ const baseTheme = (palette) => ({
|
|||||||
color: theme.palette.secondary.contrastText,
|
color: theme.palette.secondary.contrastText,
|
||||||
borderColor: theme.palette.secondary.contrastText,
|
borderColor: theme.palette.secondary.contrastText,
|
||||||
borderRightColor: theme.palette.primary.lowContrast,
|
borderRightColor: theme.palette.primary.lowContrast,
|
||||||
|
borderRadius: 0,
|
||||||
},
|
},
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
@@ -428,6 +431,12 @@ const baseTheme = (palette) => ({
|
|||||||
MuiTabs: {
|
MuiTabs: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
|
display: 'inline-flex',
|
||||||
|
borderTop: '1px solid',
|
||||||
|
borderLeft: '1px solid',
|
||||||
|
borderRight: '1px solid',
|
||||||
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
|
borderRadius: `${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0 0`,
|
||||||
"& .MuiTabs-indicator": {
|
"& .MuiTabs-indicator": {
|
||||||
backgroundColor: theme.palette.tertiary.contrastText,
|
backgroundColor: theme.palette.tertiary.contrastText,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user