UNPKG

@selfcommunity/react-theme-default

Version:

Default theme to use with SelfCommunity TS library

35 lines (34 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const material_1 = require("@mui/material"); const Component = { styleOverrides: { root: () => ({}), containerRoot: ({ theme, open }) => (Object.assign(Object.assign({ display: 'flex', flexDirection: 'column', paddingBottom: theme.mixins.toolbar.minHeight, //overflow: 'hidden', transition: theme.transitions.create('margin', { easing: theme.transitions.easing.sharp, duration: theme.transitions.duration.leavingScreen }), marginRight: 0 }, (open && { [theme.breakpoints.down('md')]: { width: '100%' }, width: `calc(100% - 300px)` })), { '& .SCLessonTemplate-contrast-color': { color: (0, material_1.getContrastRatio)(theme.palette.background.paper, theme.palette.common.white) > 4.5 ? (0, material_1.lighten)(theme.palette.common.white, 0.5) : (0, material_1.darken)(theme.palette.common.white, 0.5) }, '& .SCLessonTemplate-navigation-title': { display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: theme.spacing(1) }, '& .SCLessonTemplate-preview-info': { justifyContent: 'center', borderRadius: 5, marginBottom: theme.spacing(1) }, '& .SCLessonTemplate-button': { alignSelf: 'center', marginTop: 'auto' } })) } }; exports.default = Component;