All files / src/theme/components cssBaseline.tsx

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44      484x                                                                                
import { Components } from "@mui/material";
import { palette } from "@palette";
 
export const cssBaseline: Components["MuiCssBaseline"] = {
  styleOverrides: {
    "*": {
      scrollbarWidth: "thin",
      scrollbarColor: `${palette.neutral["200"]} transparent`,
      "&::-webkit-scrollbar-track": {
        backgroundColor: palette.liftedWhite.main,
      },
      "&::-webkit-scrollbar": {
        width: 10,
        height: 10,
        backgroundColor: "transparent",
      },
      "&::-webkit-scrollbar-thumb": {
        border: "2px solid #F9FCFF",
        borderOpacity: 0.3,
        borderRadius: 6,
        minWidth: 24,
        minHeight: 24,
        backgroundColor: palette.neutral["200"],
      },
      "&::-webkit-scrollbar-thumb:focus": {
        backgroundColor: palette.neutral["300"],
      },
      "&::-webkit-scrollbar-thumb:active": {
        backgroundColor: palette.neutral["300"],
      },
      "&::-webkit-scrollbar-thumb:hover": {
        backgroundColor: palette.neutral["300"],
      },
      "&::-webkit-scrollbar-corner": {
        backgroundColor: "transparent",
      },
    },
    body: {
      backgroundColor: palette.primary.background,
      overscrollBehavior: "none",
    },
  },
};