-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootcamp: Details page #157: Add BootcampViewSection component and re…
…lated styles
- Loading branch information
1 parent
aeeade7
commit 6fc4e09
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { styled } from '@mui/material/styles' | ||
import { m } from 'framer-motion' | ||
import { TableRow, TableContainer, TableCell, Collapse } from '@mui/material' | ||
|
||
export const SRoot = styled(m.div)({ | ||
maxWidth: '100vw', | ||
margin: '0 auto' | ||
}) | ||
|
||
export const STableContainer = styled(TableContainer)({ | ||
boxShadow: '0 0 20px rgba(0, 0, 0, 0.1)', | ||
borderRadius: 2, | ||
overflow: 'hidden' | ||
}) | ||
|
||
export const STableHeader = styled(TableRow)(({ theme }) => ({ | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.common.white, | ||
paddingRight: '1rem', | ||
paddingLeft: '1rem' | ||
})) | ||
|
||
export const STableRow = styled(TableRow)(({ theme }) => ({ | ||
'&:nth-of-type(odd)': { | ||
backgroundColor: theme.palette.action.hover | ||
} | ||
})) | ||
|
||
export const SCollapse = styled(Collapse)(({ theme }) => ({ | ||
'& .MuiTableCell-root': { | ||
padding: '1rem', | ||
backgroundColor: 'transparent' | ||
} | ||
})) | ||
|
||
export const STableHeadCell = styled(TableCell)(({ theme }) => ({ | ||
fontWeight: 'bold', | ||
fontSize: '1rem', | ||
backgroundColor: 'transparent' | ||
})) |