UNPKG

@krowdy-ui/core

Version:

React components that implement Google's Material Design.

56 lines (54 loc) 1.44 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import withStyles from '../styles/withStyles'; const styles = ({ palette, typography }) => ({ '@global': { '*, *::before, *::after': { boxSizing: 'inherit' }, '::-webkit-scrollbar': { height: 6, width: 7 }, '::-webkit-scrollbar-thumb': { backgroundColor: 'rgba(0, 0, 0, 0.3)', borderRadius: '10px' }, '::-webkit-scrollbar-track': { borderRadius: '10px' }, body: _extends({ '&::backdrop': { backgroundColor: palette.background.default }, // Remove the margin in all browsers. '@media print': { // Save printer ink. backgroundColor: palette.common.white } }, typography.body2, { backgroundColor: palette.background.default, color: palette.text.primary, // Add support for document.body.requestFullScreen(). // Other elements, if background transparent, are not supported. margin: 0 }), html: { MozOsxFontSmoothing: 'grayscale', // Antialiasing. WebkitFontSmoothing: 'antialiased', // Antialiasing. // Change from `box-sizing: content-box` so that `width` // is not affected by `padding` or `border`. boxSizing: 'border-box' }, 'strong, b': { fontWeight: 'bolder' } } }); export default withStyles(styles, { name: 'CssGlobal' })(() => null);