UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

28 lines (25 loc) 781 B
import { createStyles, getSize, rem } from '@mantine/styles'; const sizes = { xs: rem(320), sm: rem(380), md: rem(440), lg: rem(620), xl: rem(780) }; var useStyles = createStyles((theme, { position }, { size }) => ({ content: { flex: position === "right" || position === "left" ? `0 0 ${getSize({ size, sizes })}` : "0 0 100%", maxWidth: "100%", maxHeight: "100%", height: position === "right" || position === "left" ? "100%" : getSize({ size, sizes }), borderRadius: 0, overflowY: "auto" }, inner: { display: "flex", justifyContent: position === "right" ? "flex-end" : "flex-start", alignItems: position === "bottom" ? "flex-end" : "flex-start" } })); export default useStyles; //# sourceMappingURL=DrawerRoot.styles.js.map