Fixed panels darkmode styles
This commit is contained in:
1 parent
ee55394719
commit
ce66bd6d3c
6 files changed
+59
-38
No files matched your search
@@ -64,10 +64,10 @@ const Avatar = ({ src, small, sx }) => {
|
|||||||
"&::before": {
|
"&::before": {
|
||||||
content: `""`,
|
content: `""`,
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: "0",
|
top: 0,
|
||||||
left: "0",
|
left: 0,
|
||||||
width: `calc(100% - ${border * 2}px)`,
|
width: `100%`,
|
||||||
height: `calc(100% - ${border * 2}px)`,
|
height: `100%`,
|
||||||
border: `${border}px solid rgba(255,255,255,0.2)`,
|
border: `${border}px solid rgba(255,255,255,0.2)`,
|
||||||
borderRadius: "50%",
|
borderRadius: "50%",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const ProgressUpload = ({
|
|||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
border: 1,
|
border: 1,
|
||||||
borderColor: theme.palette.border.light,
|
borderColor: theme.palette.border.light,
|
||||||
backgroundColor: "#fafafa",
|
backgroundColor: theme.palette.background.fill,
|
||||||
"&:has(.input-error)": {
|
"&:has(.input-error)": {
|
||||||
borderColor: theme.palette.error.main,
|
borderColor: theme.palette.error.main,
|
||||||
backgroundColor: theme.palette.error.bg,
|
backgroundColor: theme.palette.error.bg,
|
||||||
@@ -62,23 +62,35 @@ const ProgressUpload = ({
|
|||||||
direction="row"
|
direction="row"
|
||||||
mb={error ? 0 : theme.spacing(5)}
|
mb={error ? 0 : theme.spacing(5)}
|
||||||
gap={theme.spacing(5)}
|
gap={theme.spacing(5)}
|
||||||
alignItems={error ? "center" : "flex-end"}
|
alignItems={error ? "center" : "flex-start"}
|
||||||
>
|
>
|
||||||
{error ? (
|
{error ? (
|
||||||
<ErrorOutlineOutlinedIcon />
|
<ErrorOutlineOutlinedIcon />
|
||||||
) : icon ? (
|
) : icon ? (
|
||||||
<IconButton
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
position: "relative",
|
||||||
|
height: 30,
|
||||||
|
minWidth: 30,
|
||||||
|
border: 1,
|
||||||
|
borderColor: theme.palette.border.dark,
|
||||||
|
borderRadius: 2,
|
||||||
backgroundColor: theme.palette.background.main,
|
backgroundColor: theme.palette.background.main,
|
||||||
pointerEvents: "none",
|
"& svg": {
|
||||||
borderRadius: theme.shape.borderRadius,
|
position: "absolute",
|
||||||
border: 2,
|
top: "50%",
|
||||||
borderColor: theme.palette.border.light,
|
left: "50%",
|
||||||
boxShadow: theme.shape.boxShadow,
|
transform: "translate(-50%, -50%)",
|
||||||
|
width: 23,
|
||||||
|
height: 23,
|
||||||
|
"& path": {
|
||||||
|
fill: theme.palette.other.icon,
|
||||||
|
},
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
</IconButton>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -414,12 +414,12 @@ const ProfilePanel = () => {
|
|||||||
top: "50%",
|
top: "50%",
|
||||||
left: "50%",
|
left: "50%",
|
||||||
transform: "translate(-50%, -50%)",
|
transform: "translate(-50%, -50%)",
|
||||||
width: 450,
|
width: 475,
|
||||||
bgcolor: theme.palette.background.main,
|
bgcolor: theme.palette.background.main,
|
||||||
border: 1,
|
border: 1,
|
||||||
borderColor: theme.palette.border.light,
|
borderColor: theme.palette.border.light,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
boxShadow: 24,
|
boxShadow: theme.shape.boxShadow,
|
||||||
p: theme.spacing(15),
|
p: theme.spacing(15),
|
||||||
"&:focus": {
|
"&:focus": {
|
||||||
outline: "none",
|
outline: "none",
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import TabPanel from "@mui/lab/TabPanel";
|
import TabPanel from "@mui/lab/TabPanel";
|
||||||
import { Button, ButtonGroup, Modal, Stack, Typography } from "@mui/material";
|
import {
|
||||||
|
Box,
|
||||||
|
Button,
|
||||||
|
ButtonGroup,
|
||||||
|
Modal,
|
||||||
|
Stack,
|
||||||
|
Typography,
|
||||||
|
} from "@mui/material";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Field from "../../Inputs/Field";
|
import Field from "../../Inputs/Field";
|
||||||
import { credentials } from "../../../Validation/validation";
|
import { credentials } from "../../../Validation/validation";
|
||||||
@@ -88,7 +95,7 @@ const TeamPanel = () => {
|
|||||||
id: idx,
|
id: idx,
|
||||||
data: (
|
data: (
|
||||||
<Stack>
|
<Stack>
|
||||||
<Typography style={{ color: theme.palette.text.secondary }}>
|
<Typography color={theme.palette.text.secondary}>
|
||||||
{member.firstName + " " + member.lastName}
|
{member.firstName + " " + member.lastName}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
@@ -322,7 +329,6 @@ const TeamPanel = () => {
|
|||||||
aria-describedby="invite-member-to-team"
|
aria-describedby="invite-member-to-team"
|
||||||
open={isOpen}
|
open={isOpen}
|
||||||
onClose={closeInviteModal}
|
onClose={closeInviteModal}
|
||||||
disablePortal
|
|
||||||
>
|
>
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(5)}
|
gap={theme.spacing(5)}
|
||||||
@@ -331,29 +337,38 @@ const TeamPanel = () => {
|
|||||||
top: "50%",
|
top: "50%",
|
||||||
left: "50%",
|
left: "50%",
|
||||||
transform: "translate(-50%, -50%)",
|
transform: "translate(-50%, -50%)",
|
||||||
width: 400,
|
width: 450,
|
||||||
bgcolor: theme.palette.background.main,
|
bgcolor: theme.palette.background.main,
|
||||||
border: 1,
|
border: 1,
|
||||||
borderColor: theme.palette.border.light,
|
borderColor: theme.palette.border.light,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
boxShadow: 24,
|
boxShadow: theme.shape.boxShadow,
|
||||||
p: theme.spacing(15),
|
p: theme.spacing(15),
|
||||||
"&:focus": {
|
"&:focus": {
|
||||||
outline: "none",
|
outline: "none",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography id="modal-invite-member" component="h1">
|
<Box>
|
||||||
Invite new team member
|
<Typography
|
||||||
</Typography>
|
id="modal-invite-member"
|
||||||
<Typography
|
component="h1"
|
||||||
id="invite-member-to-team"
|
fontWeight={600}
|
||||||
component="p"
|
fontColor={theme.palette.text.secondary}
|
||||||
sx={{ mb: theme.spacing(6) }}
|
>
|
||||||
>
|
Invite new team member
|
||||||
When you add a new team member, they will get access to all
|
</Typography>
|
||||||
monitors.
|
<Typography
|
||||||
</Typography>
|
id="invite-member-to-team"
|
||||||
|
component="p"
|
||||||
|
fontSize={13}
|
||||||
|
color={theme.palette.text.accent}
|
||||||
|
sx={{ mt: theme.spacing(1), mb: theme.spacing(4) }}
|
||||||
|
>
|
||||||
|
When you add a new team member, they will get access to all
|
||||||
|
monitors.
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
<Field
|
<Field
|
||||||
type="email"
|
type="email"
|
||||||
id="input-team-member"
|
id="input-team-member"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const border = { light: "#27272a", dark: "#36363e" };
|
|||||||
const fontFamilyDefault =
|
const fontFamilyDefault =
|
||||||
'"Inter","system-ui", "Avenir", "Helvetica", "Arial", sans-serif';
|
'"Inter","system-ui", "Avenir", "Helvetica", "Arial", sans-serif';
|
||||||
const shadow =
|
const shadow =
|
||||||
"0px 4px 24px -4px rgba(16, 24, 40, 0.08), 0px 3px 3px -3px rgba(16, 24, 40, 0.03)";
|
"0px 4px 24px -4px rgba(255, 255, 255, 0.03), 0px 3px 3px -3px rgba(255, 255, 255, 0.01)";
|
||||||
|
|
||||||
const darkTheme = createTheme({
|
const darkTheme = createTheme({
|
||||||
typography: { fontFamily: fontFamilyDefault, fontSize: 13 },
|
typography: { fontFamily: fontFamilyDefault, fontSize: 13 },
|
||||||
|
|||||||
@@ -56,12 +56,6 @@ html {
|
|||||||
0px 3px 3px -3px rgba(16, 24, 40, 0.03);
|
0px 3px 3px -3px rgba(16, 24, 40, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
min-width: 320px;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.MuiInputBase-root.Mui-disabled input {
|
.MuiInputBase-root.Mui-disabled input {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user