feat: finishing adjusting colors
This commit is contained in:
1 parent
e235279af0
commit
a6eb97050b
5 files changed
+34
-13
No files matched your search
@@ -201,7 +201,27 @@ const BasicTable = ({ data, paginated, reversed, table, emptyMessage = "No data"
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TableContainer component={Paper}>
|
<TableContainer component={Paper}>
|
||||||
<Table>
|
<Table
|
||||||
|
sx={{
|
||||||
|
"&.MuiTable-root :is(.MuiTableHead-root, .MuiTableBody-root) :is(th, td)": {
|
||||||
|
paddingLeft: theme.spacing(12),
|
||||||
|
},
|
||||||
|
"& th": {
|
||||||
|
backgroundColor: theme.palette.secondary.main,
|
||||||
|
color: theme.palette.secondary.contrastText,
|
||||||
|
/*
|
||||||
|
TODO all general styling for th should live here
|
||||||
|
*/
|
||||||
|
},
|
||||||
|
"& td": {
|
||||||
|
backgroundColor: theme.palette.primary.main,
|
||||||
|
color: theme.palette.primary.contrastTextSecondary,
|
||||||
|
/*
|
||||||
|
TODO all general styling for td should live here
|
||||||
|
*/
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
<TableHead>
|
<TableHead>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
{data.cols.map((col) => (
|
{data.cols.map((col) => (
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ const PasswordPanel = () => {
|
|||||||
>
|
>
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="accent"
|
||||||
type="submit"
|
type="submit"
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
loadingIndicator="Saving..."
|
loadingIndicator="Saving..."
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ const ProfilePanel = () => {
|
|||||||
<Box width="fit-content">
|
<Box width="fit-content">
|
||||||
<LoadingButton
|
<LoadingButton
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="accent"
|
||||||
onClick={handleSaveProfile}
|
onClick={handleSaveProfile}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
loadingIndicator="Saving..."
|
loadingIndicator="Saving..."
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ const TeamPanel = () => {
|
|||||||
<LoadingButton
|
<LoadingButton
|
||||||
loading={isSendingInvite}
|
loading={isSendingInvite}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="accent"
|
||||||
onClick={() => setIsOpen(true)}
|
onClick={() => setIsOpen(true)}
|
||||||
>
|
>
|
||||||
Invite a team member
|
Invite a team member
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ const Account = ({ open = "profile" }) => {
|
|||||||
className="account"
|
className="account"
|
||||||
px={theme.spacing(20)}
|
px={theme.spacing(20)}
|
||||||
py={theme.spacing(12)}
|
py={theme.spacing(12)}
|
||||||
border={1}
|
|
||||||
borderColor={theme.palette.primary.lowContrast}
|
|
||||||
borderRadius={theme.shape.borderRadius}
|
|
||||||
backgroundColor={theme.palette.primary.main}
|
backgroundColor={theme.palette.primary.main}
|
||||||
|
borderColor={theme.palette.primary.lowContrast}
|
||||||
|
border={1}
|
||||||
|
borderRadius={theme.shape.borderRadius}
|
||||||
>
|
>
|
||||||
<TabContext value={tab}>
|
<TabContext value={tab}>
|
||||||
<Box
|
<Box
|
||||||
@@ -88,17 +88,18 @@ const Account = ({ open = "profile" }) => {
|
|||||||
textTransform: "none",
|
textTransform: "none",
|
||||||
minWidth: "fit-content",
|
minWidth: "fit-content",
|
||||||
minHeight: 0,
|
minHeight: 0,
|
||||||
paddingLeft: 0,
|
|
||||||
paddingY: theme.spacing(4),
|
paddingY: theme.spacing(4),
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
marginRight: theme.spacing(8),
|
/* marginRight: theme.spacing(8), */
|
||||||
borderBottom: "2px solid transparent",
|
borderBottom: "2px solid transparent",
|
||||||
"&:focus": {
|
"&:focus, &.Mui-selected": {
|
||||||
borderBottom: `2px solid ${theme.palette.primary.lowContrast}`,
|
/* TODO this appears and disapears. Investigate */
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
borderColor: theme.palette.primary.contrastText,
|
||||||
|
fontWeight: 700,
|
||||||
},
|
},
|
||||||
|
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
borderBottom: `2px solid ${theme.palette.primary.lowContrast}`,
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user