UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

39 lines (36 loc) 1.18 kB
// ** Util Import import { hexToRGBA } from '~/@core/utils/hex-to-rgba' const Pagination = theme => { return { MuiPaginationItem: { styleOverrides: { root: { '&.Mui-selected:not(.Mui-disabled):not(.MuiPaginationItem-textPrimary):not(.MuiPaginationItem-textSecondary):hover': { backgroundColor: `rgba(${theme.palette.customColors.main}, 0.12)` } }, outlined: { borderColor: `rgba(${theme.palette.customColors.main}, 0.22)` }, outlinedPrimary: { '&.Mui-selected': { backgroundColor: hexToRGBA(theme.palette.primary.main, 0.12), '&:hover': { backgroundColor: `${hexToRGBA(theme.palette.primary.main, 0.2)} !important` } } }, outlinedSecondary: { '&.Mui-selected': { backgroundColor: hexToRGBA(theme.palette.secondary.main, 0.12), '&:hover': { backgroundColor: `${hexToRGBA(theme.palette.secondary.main, 0.2)} !important` } } } } } } } export default Pagination