Skip to content

Commit

Permalink
Merge pull request #709 from rishabhsharma1997/master
Browse files Browse the repository at this point in the history
chore: added styling for code block in Learning-path and chapter
  • Loading branch information
captain-Akshay committed Aug 8, 2024
2 parents 7755428 + a1a1353 commit a247841
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/custom/StyledChapter/StyledChapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ 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.secondary,
borderRadius: '.25rem'
}
}));
export default StyledChapter;

0 comments on commit a247841

Please sign in to comment.