From 2bf0f0fd1d3d13aa1eea470c25c8ddc40c7aa66b Mon Sep 17 00:00:00 2001 From: Hossein Dehnokhalaji Date: Sun, 8 Mar 2020 16:52:58 +0000 Subject: [PATCH] Move snackbar item styles to component file --- src/SnackbarItem/SnackbarItem.styles.js | 56 ------------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/SnackbarItem/SnackbarItem.styles.js diff --git a/src/SnackbarItem/SnackbarItem.styles.js b/src/SnackbarItem/SnackbarItem.styles.js deleted file mode 100644 index 671b27e4..00000000 --- a/src/SnackbarItem/SnackbarItem.styles.js +++ /dev/null @@ -1,56 +0,0 @@ -import { SNACKBAR_INDENTS, allClasses } from '../utils/constants'; - -const styles = theme => ({ - ...allClasses.mui, - base: { - fontSize: '0.875rem', - lineHeight: '1.46429em', - fontWeight: theme.typography.fontWeightRegular, - fontFamily: theme.typography.fontFamily, - borderRadius: theme.shape.borderRadius, - }, - lessPadding: { - paddingLeft: 8 * 2.5, - }, - variantSuccess: { - backgroundColor: '#43a047', // green - }, - variantError: { - backgroundColor: '#d32f2f', // dark red - }, - variantInfo: { - backgroundColor: '#2979ff', // nice blue - }, - variantWarning: { - backgroundColor: '#ffa000', // amber - }, - message: { - display: 'flex', - alignItems: 'center', - }, - wrappedRoot: { - position: 'relative', - transform: 'translateX(0)', - top: 0, - right: 0, - bottom: 0, - left: 0, - }, - collapseContainer: { - [theme.breakpoints.down('xs')]: { - paddingLeft: typeof theme.spacing === 'function' ? theme.spacing(1) : theme.spacing.unit, - paddingRight: typeof theme.spacing === 'function' ? theme.spacing(1) : theme.spacing.unit, - }, - }, - collapseWrapper: { - transition: theme.transitions.create(['margin-bottom'], { easing: 'ease' }), - marginTop: SNACKBAR_INDENTS.snackbar.default, - marginBottom: SNACKBAR_INDENTS.snackbar.default, - }, - collapseWrapperDense: { - marginTop: SNACKBAR_INDENTS.snackbar.dense, - marginBottom: SNACKBAR_INDENTS.snackbar.dense, - }, -}); - -export default styles;