Skip to content

Commit

Permalink
Merge pull request #714 from rishabhsharma1997/master
Browse files Browse the repository at this point in the history
fix: inline code block in learning-path
  • Loading branch information
captain-Akshay authored Aug 12, 2024
2 parents ffae2f5 + 2926704 commit 52bfc6f
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 52bfc6f

Please sign in to comment.