Skip to content

Commit

Permalink
fix: inline code block in learning-path
Browse files Browse the repository at this point in the history
Signed-off-by: rishabhsharma1997 <[email protected]>
  • Loading branch information
rishabhsharma1997 committed Aug 12, 2024
1 parent b3dcbfa commit 2926704
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/custom/StyledChapter/StyledChapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ const StyledChapter = styled('div')(({ theme }) => ({
color: theme.palette.background.brand?.default,
textDecoration: 'none'
},
'& p > code': {
color: 'inherit',
padding: '.2em .4em',
margin: '0',
fontSize: '85%',
wordBreak: 'normal',
backgroundColor: theme.palette.background.code,
borderRadius: '.25rem'
},
'& pre': {
backgroundColor: '#011627',
padding: '1em',
Expand All @@ -29,15 +38,6 @@ const StyledChapter = styled('div')(({ theme }) => ({
width: '100%',
margin: '1rem auto autocompleteClasses',
fontFamily: 'Courier New, Courier, monospace'
},
'& code': {
color: 'inherit',
padding: '.2em .4em',
margin: '0',
fontSize: '85%',
wordBreak: 'normal',
backgroundColor: theme.palette.background.code,
borderRadius: '.25rem'
}
}));
export default StyledChapter;

0 comments on commit 2926704

Please sign in to comment.