@material-ui/core/styles#emphasize JavaScript Examples

The following examples show how to use @material-ui/core/styles#emphasize. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Breadcrumbs.js    From medha-STPC with GNU Affero General Public License v3.0 6 votes vote down vote up
StyledBreadcrumb = withStyles(theme => ({
  root: {
    backgroundColor: "#666666",
    height: theme.spacing(3),
    color: "white",
    fontWeight: theme.typography.fontWeightRegular,
    "&:hover, &:focus": {
      backgroundColor: "#f6c80a"
    },
    "&:active": {
      boxShadow: theme.shadows[1],
      backgroundColor: emphasize("#666666", 0.12)
    }
  }
}))(Chip)
Example #2
Source File: AutoSuggest.js    From management-center with Apache License 2.0 5 votes vote down vote up
useStyles = makeStyles((theme) => ({
	root: {
		flexGrow: 1,
		minWidth: 250
	},
	input: {
		display: 'flex',
		padding: 0,
		height: 'auto'
	},
	valueContainer: {
		display: 'flex',
		flexWrap: 'wrap',
		flex: 1,
		alignItems: 'center',
		overflow: 'hidden',
		'& > *': {
			margin: theme.spacing(0.3)
		}
	},
	chip: {
		margin: theme.spacing(1, 1)
	},
	chipFocused: {
		backgroundColor: emphasize(
			theme.palette.type === 'light' ? theme.palette.grey[300] : theme.palette.grey[700],
			0.08
		)
	},
	noOptionsMessage: {
		padding: theme.spacing(1, 2)
	},
	singleValue: {
		fontSize: 14
	},
	placeholder: {
		position: 'absolute',
		left: 2,
		bottom: 6,
		fontSize: 14
	},
	paper: {
		position: 'absolute',
		zIndex: 1,
		marginTop: theme.spacing(1),
		left: 0,
		right: 0
	},
	divider: {
		height: theme.spacing(1)
	}
}))
Example #3
Source File: OnBoardingDialog.js    From management-center with Apache License 2.0 5 votes vote down vote up
useStyles = makeStyles((theme) => ({
	root: {
		flexGrow: 1,
		minWidth: 290,
		width: 550
	},
	input: {
		display: 'flex',
		padding: 0,
		height: 'auto'
	},
	valueContainer: {
		display: 'flex',
		flexWrap: 'wrap',
		flex: 1,
		alignItems: 'center',
		overflow: 'hidden',
		'& > *': {
			margin: theme.spacing(0.3)
		}
	},
	chip: {
		margin: theme.spacing(1, 1)
	},
	chipFocused: {
		backgroundColor: emphasize(
			theme.palette.type === 'light' ? theme.palette.grey[300] : theme.palette.grey[700],
			0.08
		)
	},
	noOptionsMessage: {
		padding: theme.spacing(1, 2)
	},
	singleValue: {
		fontSize: 16
	},
	placeholder: {
		position: 'absolute',
		left: 2,
		bottom: 6,
		fontSize: 16
	},
	paper: {
		position: 'absolute',
		zIndex: 1,
		marginTop: theme.spacing(1),
		left: 0,
		right: 0
	},
	divider: {
		height: theme.spacing(2)
	},
	header: {
		display: 'flex',
		alignItems: 'center',
		height: 50,
		paddingLeft: theme.spacing(4),
		backgroundColor: theme.palette.background.default
	},
	img: {
		height: 255,
		// maxWidth: 400,
		overflow: 'hidden',
		// display: 'block',
		width: '100%'
	}
}))