All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.layout.common.LogoContainer.js Maven / Gradle / Ivy

There is a newer version: 0.80.3
Show newest version
import { useMediaQuery } from '@mui/material';
import { styled }        from '@mui/material/styles';

const LogoContainer = styled('div')(({theme}) => {
  const large        = useMediaQuery(theme => theme.breakpoints.up('lg'));
  const largePadding = theme.components.toolbar.paddingRight
  const smallPadding = `${parseInt(largePadding) - 5}px`
  const paddingLeft  = large ? largePadding : smallPadding

  return {
      height     : theme.components.banner.height,
      minWidth   : theme.components.sidebar.width,
      paddingLeft: paddingLeft,
      overflow   : 'hidden',
      display    : 'flex',
      alignItems : 'center',
    }
  }
);

export default LogoContainer




© 2015 - 2024 Weber Informatics LLC | Privacy Policy