You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
921 B

  1. // material-ui
  2. import { styled } from '@mui/material/styles';
  3. import AppBar from '@mui/material/AppBar';
  4. // project import
  5. import { drawerWidth } from 'config';
  6. // ==============================|| HEADER - APP BAR STYLED ||============================== //
  7. const AppBarStyled = styled(AppBar, { shouldForwardProp: (prop) => prop !== 'open' })(({ theme, open }) => ({
  8. zIndex: theme.zIndex.drawer + 1,
  9. transition: theme.transitions.create(['width', 'margin'], {
  10. easing: theme.transitions.easing.sharp,
  11. duration: theme.transitions.duration.leavingScreen
  12. }),
  13. ...(open && {
  14. marginLeft: drawerWidth,
  15. // width: `calc(100% - ${drawerWidth}px)`,
  16. width: "100%",
  17. // height:"100px",
  18. transition: theme.transitions.create(['width', 'margin'], {
  19. easing: theme.transitions.easing.sharp,
  20. duration: theme.transitions.duration.enteringScreen
  21. })
  22. })
  23. }));
  24. export default AppBarStyled;