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.
55 lines (46 loc) • 1.49 kB
text/typescript
// ThreeD Garden Base Styles
import colors from "~/themes/theme-dark/base/colors"
// ThreeD Garden Helper Functions
import rgba from "~/themes/theme-dark/functions/rgba"
import pxToRem from "~/themes/theme-dark/functions/pxToRem"
const { dark, transparent, white } = colors
// types
type Types = any
const divider: Types = {
styleOverrides: {
root: {
backgroundColor: transparent.main,
backgroundImage: `linear-gradient(to right, ${rgba(dark.main, 0)}, ${
white.main
}, ${rgba(dark.main, 0)}) !important`,
height: pxToRem(1),
margin: `${pxToRem(16)} 0`,
borderBottom: "none",
opacity: 0.25,
},
vertical: {
backgroundColor: transparent.main,
backgroundImage: `linear-gradient(to bottom, ${rgba(dark.main, 0)}, ${
white.main
}, ${rgba(dark.main, 0)}) !important`,
width: pxToRem(1),
height: "100%",
margin: `0 ${pxToRem(16)}`,
borderRight: "none",
},
light: {
backgroundColor: transparent.main,
backgroundImage: `linear-gradient(to right, ${rgba(
white.main,
0
)}, ${rgba(dark.main, 0.4)}, ${rgba(white.main, 0)}) !important`,
"&.MuiDivider-vertical": {
backgroundImage: `linear-gradient(to bottom, ${rgba(
white.main,
0
)}, ${rgba(dark.main, 0.4)}, ${rgba(white.main, 0)}) !important`,
},
},
},
}
export default divider