Skip to content

Commit a247841

Browse files
Merge pull request #709 from rishabhsharma1997/master
chore: added styling for code block in Learning-path and chapter
2 parents 7755428 + a1a1353 commit a247841

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/custom/StyledChapter/StyledChapter.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ const StyledChapter = styled('div')(({ theme }) => ({
2929
width: '100%',
3030
margin: '1rem auto autocompleteClasses',
3131
fontFamily: 'Courier New, Courier, monospace'
32+
},
33+
'& code': {
34+
color: 'inherit',
35+
padding: '.2em .4em',
36+
margin: '0',
37+
fontSize: '85%',
38+
wordBreak: 'normal',
39+
backgroundColor: theme.palette.background.secondary,
40+
borderRadius: '.25rem'
3241
}
3342
}));
3443
export default StyledChapter;

0 commit comments

Comments
 (0)