Skip to content

Commit f9c32cb

Browse files
authored
Merge pull request #3274 from bluewave-labs/fix/css-cleanup
fix: clean up index.css
2 parents a50c257 + b540e48 commit f9c32cb

File tree

12 files changed

+23
-349
lines changed

12 files changed

+23
-349
lines changed

client/src/Components/WalletProvider/index.css

Lines changed: 0 additions & 53 deletions
This file was deleted.

client/src/Components/WalletProvider/index.jsx

Lines changed: 0 additions & 50 deletions
This file was deleted.

client/src/Components/v1/Breadcrumbs/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
min-height: 16px;
77
}
88
.MuiBreadcrumbs-root .MuiBreadcrumbs-li a {
9-
font-size: var(--env-var-font-size-medium);
109
font-weight: 400;
1110
}
1211
.MuiBreadcrumbs-root .MuiBreadcrumbs-li:not(:last-child) {

client/src/Components/v1/Inputs/Select/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const Select = ({
6464
const theme = useTheme();
6565
const getItemValue = (item) => item?._id ?? item?.id;
6666
const itemStyles = {
67-
fontSize: "var(--env-var-font-size-medium)",
6867
color: theme.palette.primary.contrastTextTertiary,
6968
borderRadius: theme.shape.borderRadius,
7069
margin: theme.spacing(2),

client/src/Components/v1/Inputs/TextInput/Adornments/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const HttpAdornment = ({ https }) => {
1818
>
1919
<Typography
2020
component="h5"
21-
paddingRight={"var(--env-var-spacing-1-minus)"}
2221
color={theme.palette.primary.contrastTextSecondary}
2322
sx={{ lineHeight: 1, opacity: 0.8 }}
2423
>

client/src/Components/v2/design-elements/MonitorStatus.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const MonitorStatus = ({ monitor }: { monitor: Monitor }) => {
2323
overflow={"hidden"}
2424
textOverflow={"ellipsis"}
2525
whiteSpace={"nowrap"}
26-
maxWidth={isSmall ? "100%" : "calc((100vw - var(--env-var-width-2)) / 2)"}
2726
>
2827
{monitor.name}
2928
</Typography>
@@ -40,7 +39,6 @@ export const MonitorStatus = ({ monitor }: { monitor: Monitor }) => {
4039
overflow={"hidden"}
4140
textOverflow={"ellipsis"}
4241
whiteSpace={"nowrap"}
43-
maxWidth={isSmall ? "100%" : "calc((100vw - var(--env-var-width-2)) / 2)"}
4442
>
4543
{formatUrl(monitor?.url)}
4644
</Typography>

client/src/Components/v2/design-elements/PulseDot.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
import { Box, Stack, useTheme } from "@mui/material";
1+
import Box from "@mui/material/Box";
2+
import Stack from "@mui/material/Stack";
3+
import { useTheme, keyframes } from "@mui/material";
4+
5+
const ripple = keyframes`
6+
from {
7+
opacity: 1;
8+
transform: scale(0);
9+
}
10+
to {
11+
opacity: 0;
12+
transform: scale(2);
13+
}
14+
`;
215

316
interface PulseDotProps {
417
color: string;
@@ -28,7 +41,7 @@ export const PulseDot = ({ color }: PulseDotProps) => {
2841
height: "100%",
2942
backgroundColor: "inherit",
3043
borderRadius: "50%",
31-
animation: "ripple 1.8s ease-out infinite",
44+
animation: `${ripple} 1.8s ease-out infinite`,
3245
},
3346
"&::after": {
3447
content: `""`,

client/src/Pages/Integrations/index.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

client/src/Pages/Integrations/index.jsx

Lines changed: 0 additions & 156 deletions
This file was deleted.

client/src/Utils/Theme/globalTheme.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const baseTheme = (palette) => ({
3838
fontWeight: 400,
3939
},
4040
label: {
41-
fontSize: "var(--env-var-font-size-medium)",
4241
color: palette.primary.contrastTextSecondary,
4342
fontWeight: 500,
4443
},
@@ -332,8 +331,6 @@ const baseTheme = (palette) => ({
332331

333332
"& .MuiInputBase-input": {
334333
padding: ".75em",
335-
minHeight: "var(--env-var-height-2)",
336-
fontSize: "var(--env-var-font-size-medium)",
337334
fontWeight: 400,
338335
color: palette.primary.contrastTextSecondary,
339336
"&.Mui-disabled": {
@@ -368,13 +365,12 @@ const baseTheme = (palette) => ({
368365
"& .MuiFormHelperText-root": {
369366
color: palette.error.main,
370367
opacity: 0.8,
371-
fontSize: "var(--env-var-font-size-medium)",
368+
fontSize: "var()",
372369
marginLeft: 0,
373370
},
374371

375372
"& .MuiFormHelperText-root.Mui-error": {
376373
opacity: 0.8,
377-
fontSize: "var(--env-var-font-size-medium)",
378374
color: palette.error.main,
379375
whiteSpace: "nowrap",
380376
},
@@ -762,7 +758,6 @@ const baseTheme = (palette) => ({
762758
overflow: "hidden",
763759
textOverflow: "ellipsis",
764760
whiteSpace: "nowrap",
765-
maxWidth: "calc((100vw - var(--env-var-width-2)) / 2)",
766761
},
767762
},
768763
{
@@ -775,7 +770,6 @@ const baseTheme = (palette) => ({
775770
overflow: "hidden",
776771
textOverflow: "ellipsis",
777772
whiteSpace: "nowrap",
778-
maxWidth: "calc((100vw - var(--env-var-width-2)) / 2)",
779773
},
780774
},
781775
],

0 commit comments

Comments
 (0)